|
36 | 36 | { |
37 | 37 | "include": "#keywords" |
38 | 38 | }, |
| 39 | + { |
| 40 | + "include": "#variables" |
| 41 | + }, |
| 42 | + { |
| 43 | + "include": "#punctuation" |
| 44 | + }, |
39 | 45 | { |
40 | 46 | "include": "#comment" |
41 | 47 | } |
|
133 | 139 | "match": "\\b([0-9][0-9_]*)\\b", |
134 | 140 | "name": "constant.numeric.decimal.andy-cpp" |
135 | 141 | }, |
| 142 | + { |
| 143 | + "comment": "Infinity", |
| 144 | + "match": "\\bInf\\b", |
| 145 | + "name": "constant.numeric.infinity.andy-cpp" |
| 146 | + }, |
136 | 147 | { |
137 | 148 | "comment": "booleans", |
138 | 149 | "name": "constant.language.bool.andy-cpp", |
|
216 | 227 | { |
217 | 228 | "comment": "augmented assignment operators", |
218 | 229 | "name": "keyword.operator.assignment.andy-cpp", |
219 | | - "match": "((\\+\\+?|-|\\*|/|\\|\\^|&|\\||<<|>>|~|<>)=)" |
| 230 | + "match": "((\\+\\+?|-|\\*|/|\\|\\^|&|\\||%%?|<<|>>|~|<>)=)" |
220 | 231 | }, |
221 | 232 | { |
222 | 233 | "comment": "function augmented assignment opreators", |
|
229 | 240 | "match": "(?<![<>])=(?!=|>)" |
230 | 241 | }, |
231 | 242 | { |
232 | | - "comment": "comparison operators", |
233 | | - "name": "keyword.operator.comparison.andy-cpp", |
234 | | - "match": "(>=<|<=>|=(=)?(?!>)|!=|<=|(?<!=)>=)" |
235 | | - }, |
236 | | - { |
237 | | - "comment": "math operators", |
| 243 | + "comment": "concatenation operators", |
238 | 244 | "name": "keyword.operator.other.andy-cpp", |
239 | 245 | "match": "(\\+\\+|<>)" |
240 | 246 | }, |
241 | 247 | { |
242 | | - "comment": "math operators", |
| 248 | + "comment": "binary operators", |
243 | 249 | "name": "keyword.operator.arithmetic.andy-cpp", |
244 | 250 | "match": "(\\+|\\-|\\*|/(?!\\/)|\\\\|\\^|\\%%?|>>|<<|&(?!&)|\\|(?!\\|)|~)" |
245 | 251 | }, |
| 252 | + { |
| 253 | + "comment": "comparison operators", |
| 254 | + "name": "keyword.operator.comparison.andy-cpp", |
| 255 | + "match": "(>=<|<=>|=(=)?(?!>)|!=|<=|(?<!=)>=|>|<)" |
| 256 | + }, |
246 | 257 | { |
247 | 258 | "name": "punctuation.semicolon.andy-cpp", |
248 | 259 | "match": ";" |
|
282 | 293 | } |
283 | 294 | }, |
284 | 295 | "patterns": [ |
| 296 | + { |
| 297 | + "comment": "Key value separator", |
| 298 | + "name": "punctuation.separator.dictionary.andy-cpp", |
| 299 | + "match": ":" |
| 300 | + }, |
285 | 301 | { |
286 | 302 | "include": "#expression" |
287 | 303 | } |
|
345 | 361 | "name": "constant.character.escape.andy-cpp" |
346 | 362 | } |
347 | 363 | } |
| 364 | + }, |
| 365 | + "variables": { |
| 366 | + "patterns": [ |
| 367 | + { |
| 368 | + "comment": "variables", |
| 369 | + "name": "variable.other.andy-cpp", |
| 370 | + "match": "\\b[a-z_][a-z0-9_]*\\b" |
| 371 | + } |
| 372 | + ] |
| 373 | + }, |
| 374 | + "punctuation": { |
| 375 | + "patterns": [ |
| 376 | + { |
| 377 | + "comment": "comma", |
| 378 | + "name": "punctuation.comma.andy-cpp", |
| 379 | + "match": "," |
| 380 | + } |
| 381 | + ] |
348 | 382 | } |
349 | 383 | }, |
350 | 384 | "scopeName": "source.andy-cpp" |
|
0 commit comments