Skip to content

Commit 9ed7af2

Browse files
committed
Add operators to erg.tmLanguage.json
1 parent dd28d47 commit 9ed7af2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "vscode-erg",
44
"description": "Erg language support for Visual Studio Code",
55
"publisher": "erg-lang",
6-
"version": "0.1.3",
6+
"version": "0.1.4",
77
"engines": {
88
"vscode": "^1.70.0"
99
},

syntaxes/erg.tmLanguage.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,14 @@
366366
"match": "(?: and | or | not )",
367367
"name": "keyword.operator.relation.erg"
368368
},
369+
{
370+
"match": "(?: cross | dot )",
371+
"name": "keyword.operator.vector.erg"
372+
},
373+
{
374+
"match": "(?: is | isnot | in | notin )",
375+
"name": "keyword.operator.other.erg"
376+
},
369377
{
370378
"match": "(?:\\.(?=(?:@|_|\\p{L}))|\\.\\.+)",
371379
"name": "keyword.operator.dots.erg"
@@ -956,7 +964,7 @@
956964
"patterns": [
957965
{
958966
"name": "support.function.builtin.erg",
959-
"match": "(?x)\n (?<!\\.) \\b(\n __import__ | abs | all | any | ascii | assert | bin | breakpoint | callable\n | chr | compile | copyright | credits | delattr | dir | discard | divmod\n | enumerate | eval | exec | exit | filter | format | getattr\n | globals | hasattr | hash | help | hex | id | import\n | isinstance | issubclass | iter | len | license | locals | log | map\n | max | memoryview | min | next | oct | open | ord | pow | pyimport\n | quit | range | reload | repr | reversed | round\n | setattr | sorted | sum | vars | zip | Class | Trait | Inheritable | Inherit | Patch | Structural | Subsume\n )\\b\n"
967+
"match": "(?x)\n (?<!\\.) \\b(\n __import__ | abs | all | any | ascii | assert | bin | breakpoint | callable\n | chr | compile | copyright | credits | delattr | dir | discard | divmod\n | enumerate | eval | exec | exit | filter | format | getattr\n | globals | hasattr | hash | help | hex | id | import\n | isinstance | issubclass | iter | len | license | locals | log | map\n | max | memoryview | min | next | not | oct | open | ord | pow | pyimport\n | quit | range | reload | repr | reversed | round\n | setattr | sorted | sum | vars | zip | Class | Trait | Inheritable | Inherit | Patch | Structural | Subsume\n )\\b\n"
960968
},
961969
{
962970
"name": "variable.legacy.builtin.erg",

0 commit comments

Comments
 (0)