Skip to content

Commit

Permalink
Add operators to erg.tmLanguage.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Nov 15, 2022
1 parent dd28d47 commit 9ed7af2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "vscode-erg",
"description": "Erg language support for Visual Studio Code",
"publisher": "erg-lang",
"version": "0.1.3",
"version": "0.1.4",
"engines": {
"vscode": "^1.70.0"
},
Expand Down
10 changes: 9 additions & 1 deletion syntaxes/erg.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,14 @@
"match": "(?: and | or | not )",
"name": "keyword.operator.relation.erg"
},
{
"match": "(?: cross | dot )",
"name": "keyword.operator.vector.erg"
},
{
"match": "(?: is | isnot | in | notin )",
"name": "keyword.operator.other.erg"
},
{
"match": "(?:\\.(?=(?:@|_|\\p{L}))|\\.\\.+)",
"name": "keyword.operator.dots.erg"
Expand Down Expand Up @@ -956,7 +964,7 @@
"patterns": [
{
"name": "support.function.builtin.erg",
"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"
"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"
},
{
"name": "variable.legacy.builtin.erg",
Expand Down

0 comments on commit 9ed7af2

Please sign in to comment.