Skip to content

Commit 01ecff3

Browse files
committed
Add some builtin idents
1 parent a055a56 commit 01ecff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxes/erg.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@
956956
"patterns": [
957957
{
958958
"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 | Structural\n )\\b\n"
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"
960960
},
961961
{
962962
"name": "variable.legacy.builtin.erg",
@@ -966,7 +966,7 @@
966966
},
967967
"builtin-types": {
968968
"name": "support.type.erg",
969-
"match": "(?x)\n (?<!\\.) \\b(\n Array | Bool | ByteArray | Bytes | ClassType | ClassMethod | Complex | Dict\n | Float | FrozenSet | Int | Object | Property\n | Set | Slice | StaticMethod | Str | Tuple | TraitType | Type\n\n (?# Although 'super' is not a type, it's related to types,\n and is special enough to be highlighted differently from\n other built-ins)\n | super\n )\\b\n"
969+
"match": "(?x)\n (?<!\\.) \\b(\n Array | Bool | ByteArray | Bytes | ClassType | ClassMethod | Complex | Dict\n | Float | FrozenSet | Int | Nat | NoneType | Object | Property | Ratio\n | Set | Slice | StaticMethod | Str | Tuple | TraitType | Type\n\n (?# Although 'super' is not a type, it's related to types,\n and is special enough to be highlighted differently from\n other built-ins)\n | super\n )\\b\n"
970970
}
971971
},
972972
"scopeName": "source.erg"

0 commit comments

Comments
 (0)