|
92 | 92 | ], |
93 | 93 | "repository": { |
94 | 94 | "arithmetic_operators": { |
95 | | - "match": "(\\+|-|/|%|(?<!:)\\*)", |
| 95 | + "match": "(\\+|\\-|/|%|(?<!:)\\*)", |
96 | 96 | "name": "keyword.operator.actionscript.3" |
97 | 97 | }, |
98 | 98 | "array_access_operators": { |
|
358 | 358 | ] |
359 | 359 | }, |
360 | 360 | "functions": { |
361 | | - "begin": "\\b(function)\\b(?:\\s+\\b(get|set)\\b\\s+)?\\s*([a-zA-Z0-9_$]+\\b)?", |
| 361 | + "begin": "\\b(function)\\b(?:\\s+\\b(get|set)\\b\\s+)?\\s*([a-zA-Z0-9_\\$]+\\b)?", |
362 | 362 | "beginCaptures": { |
363 | 363 | "1": { |
364 | 364 | "name": "storage.type.function.actionscript.3" |
|
391 | 391 | } |
392 | 392 | }, |
393 | 393 | "comment": "Following convention, let's guess that anything in all caps/digits (possible underscores) is a constant.", |
394 | | - "match": "\\b([A-Z$][A-Z0-9_]+)\\b" |
| 394 | + "match": "\\b([A-Z\\$][A-Z0-9_]+)\\b" |
395 | 395 | }, |
396 | 396 | "guess_type": { |
397 | 397 | "captures": { |
|
400 | 400 | } |
401 | 401 | }, |
402 | 402 | "comment": "Following convention, let's guess that any word starting with one or more capital letters (that contains at least some lower-case letters so that constants aren't detected) refers to a class/type. May be fully-qualified.", |
403 | | - "match": "\\b((?:[A-Za-z0-9_$]+\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_$]*)\\b" |
| 403 | + "match": "\\b((?:[A-Za-z0-9_\\$]+\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_\\$]*)\\b" |
404 | 404 | }, |
405 | 405 | "implements": { |
406 | 406 | "captures": { |
|
426 | 426 | "name": "support.type.actionscript.3" |
427 | 427 | } |
428 | 428 | }, |
429 | | - "match": "(^|\\s+|;)\\b(import)\\b\\s+([A-Za-z0-9$_\\.]+(?:\\.\\*)?)\\s*(?=;|$)", |
| 429 | + "match": "(^|\\s+|;)\\b(import)\\b\\s+([A-Za-z0-9\\$_\\.]+(?:\\.\\*)?)\\s*(?=;|$)", |
430 | 430 | "name": "meta.import.actionscript.3" |
431 | 431 | }, |
432 | 432 | "interface": { |
|
642 | 642 | "name": "storage.modifier.actionscript.3" |
643 | 643 | } |
644 | 644 | }, |
645 | | - "match": "((\\w+)\\s+)?(namespace)\\s+(?:[A-Za-z0-9_$]+)", |
| 645 | + "match": "((\\w+)\\s+)?(namespace)\\s+(?:[A-Za-z0-9_\\$]+)", |
646 | 646 | "name": "meta.namespace_declaration.actionscript.3" |
647 | 647 | }, |
648 | 648 | "numbers": { |
649 | | - "match": "\\b((0(x|X)[0-9a-fA-F]*)|((\\d+\\.?\\d*)|(\\.\\d+))((e|E)(\\+|-)?\\d+)?)(L|l|UL|ul|u|U|F|f)?\\b", |
| 649 | + "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b", |
650 | 650 | "name": "constant.numeric.actionscript.3" |
651 | 651 | }, |
652 | 652 | "object_literal": { |
|
772 | 772 | "name": "meta.package_name.actionscript.3" |
773 | 773 | }, |
774 | 774 | "parameters": { |
775 | | - "begin": "(\\.\\.\\.)?\\s*([A-Za-z_$][A-Za-z0-9_$]*)(?:\\s*(:)\\s*(?:(?:([A-Za-z$][A-Za-z0-9_$]+(?:\\.[A-Za-z$][A-Za-z0-9_$]+)*)(?:\\.<([A-Za-z$][A-Za-z0-9_$]+(?:\\.[A-Za-z$][A-Za-z0-9_$]+)*)>)?)|(\\*)))?(?:\\s*(=))?", |
| 775 | + "begin": "(\\.\\.\\.)?\\s*([A-Za-z\\_\\$][A-Za-z0-9_\\$]*)(?:\\s*(\\:)\\s*(?:(?:([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)(?:\\.<([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)>)?)|(\\*)))?(?:\\s*(=))?", |
776 | 776 | "beginCaptures": { |
777 | 777 | "1": { |
778 | 778 | "name": "keyword.operator.actionscript.3" |
|
881 | 881 | "name": "support.type.actionscript.3" |
882 | 882 | } |
883 | 883 | }, |
884 | | - "match": "(:)\\s*(?:([A-Za-z$][A-Za-z0-9_$]+(?:\\.[A-Za-z$][A-Za-z0-9_$]+)*)(?:\\.<([A-Za-z$][A-Za-z0-9_$]+(?:\\.[A-Za-z$][A-Za-z0-9_$]+)*)>)?)|(\\*)" |
| 884 | + "match": "(\\:)\\s*(?:([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)(?:\\.<([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)>)?)|(\\*)" |
885 | 885 | }, |
886 | 886 | "strings": { |
887 | 887 | "patterns": [ |
|
944 | 944 | "name": "keyword.operator.actionscript.3" |
945 | 945 | } |
946 | 946 | }, |
947 | | - "match": "((static)\\s+)?((\\w+)\\s+)?((static)\\s+)?(const|var)\\s+(?:[A-Za-z0-9_$]+)(?:\\s*(:))?", |
| 947 | + "match": "((static)\\s+)?((\\w+)\\s+)?((static)\\s+)?(const|var)\\s+(?:[A-Za-z0-9_\\$]+)(?:\\s*(:))?", |
948 | 948 | "name": "meta.variable_declaration.actionscript.3" |
949 | 949 | }, |
950 | 950 | "vector_creation_operators": { |
|
0 commit comments