|
148 | 148 | "comment_block": { |
149 | 149 | "patterns": [ |
150 | 150 | { |
151 | | - "begin": "#=", |
| 151 | + "begin": "#\\[", |
152 | 152 | "beginCaptures": { |
153 | 153 | "0": { |
154 | 154 | "name": "punctuation.definition.comment.begin.erg" |
155 | 155 | } |
156 | 156 | }, |
157 | | - "end": "=#", |
| 157 | + "end": "\\]#", |
158 | 158 | "endCaptures": { |
159 | 159 | "0": { |
160 | 160 | "name": "punctuation.definition.comment.end.erg" |
|
292 | 292 | "name": "constant.global.erg" |
293 | 293 | }, |
294 | 294 | { |
295 | | - "match": "\\btrue\\b|\\bfalse\\b|\\bnothing\\b|\\bmissing\\b", |
| 295 | + "match": "\\bTrue\\b|\\bFalse\\b|\\bNone\\b|\\bNotImplemented\\b|\\bEllipsis\\b", |
296 | 296 | "name": "constant.language.erg" |
297 | 297 | } |
298 | 298 | ] |
|
359 | 359 | "name": "keyword.operator.bitwise.erg" |
360 | 360 | }, |
361 | 361 | { |
362 | | - "match": "(?:\\+\\+|--|\\+|\\.\\+|-|\\.\\-|\\*|\\.\\*|//(?!=)|\\.//(?!=)|/|\\./|%|\\.%|\\\\|\\.\\\\|\\^|\\.\\^|÷|\\.÷|⋅|\\.⋅|∩|\\.∩|∪|\\.∪|×|√|∛)", |
| 362 | + "match": "(?:\\+\\+|\\+|\\.\\+|-|\\.\\-|\\*|\\.\\*|//(?!=)|\\.//(?!=)|/|\\./|%|\\.%)", |
363 | 363 | "name": "keyword.operator.arithmetic.erg" |
364 | 364 | }, |
365 | 365 | { |
366 | | - "match": "(?:(?<=\\s)in(?=\\s))", |
367 | | - "name": "keyword.operator.relation.in.erg" |
| 366 | + "match": "(?:(?<=\\s)in|and|or|not(?=\\s))", |
| 367 | + "name": "keyword.operator.relation.erg" |
368 | 368 | }, |
369 | 369 | { |
370 | 370 | "match": "(?:\\.(?=(?:@|_|\\p{L}))|\\.\\.+)", |
|
966 | 966 | }, |
967 | 967 | "builtin-types": { |
968 | 968 | "name": "support.type.erg", |
969 | | - "match": "(?x)\n (?<!\\.) \\b(\n Array | Bool | ByteArray | Bytes | ClassMethod | Complex | Dict\n | Float | FrozenSet | Int | Object | Property\n | Set | Slice | StaticMethod | Str | Tuple | 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 | 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" |
970 | 970 | } |
971 | 971 | }, |
972 | 972 | "scopeName": "source.erg" |
|
0 commit comments