|
863 | 863 | "bashpp-keyword": { |
864 | 864 | "patterns": [ |
865 | 865 | { |
866 | | - "match": "(?<!\\\\)(?:@new|@delete|@nullptr|@include_once|@include|@this|@super)(?=\\s|\\(|$)", |
| 866 | + "match": "(?<!\\\\)(?:@new|@delete|@nullptr|@include_once|@include|@this|@super|@typeof)(?=\\s|\\(|$)", |
867 | 867 | "name": "keyword.other.bashpp" |
868 | 868 | }, |
869 | 869 | { |
|
918 | 918 | "comment": "Matches the class name after '@new'" |
919 | 919 | }, |
920 | 920 | { |
921 | | - "match": "(?<!\\\\)(@(?!class\\b)(?!public\\b)(?!private\\b)(?!protected\\b)(?!virtual\\b)(?!method\\b)(?!constructor\\b)(?!destructor\\b)(?!new\\b)(?!delete\\b)(?!nullptr\\b)(?!include_once\\b)(?!include\\b)(?!.*__)[a-zA-Z_][a-zA-Z0-9_]*)\\*?\\s+((?!.*__)[a-zA-Z_][a-zA-Z0-9_]*)", |
| 921 | + "match": "(?<!\\\\)(@(?!class\\b)(?!public\\b)(?!private\\b)(?!protected\\b)(?!virtual\\b)(?!method\\b)(?!constructor\\b)(?!destructor\\b)(?!new\\b)(?!delete\\b)(?!nullptr\\b)(?!include_once\\b)(?!include\\b)(?!typeof\\b)(?!.*__)[a-zA-Z_][a-zA-Z0-9_]*)\\*?\\s+((?!.*__)[a-zA-Z_][a-zA-Z0-9_]*)", |
922 | 922 | "captures": { |
923 | 923 | "1": { |
924 | 924 | "name": "entity.name.type.class.bashpp", |
925 | | - "comment": "Matches the class name in an object instantiation, e.g. @ClassName object" |
| 925 | + "comment": "Matches the class name in an object instantiation or pointer declaration, e.g. @ClassName object or @ClassName* pointer" |
926 | 926 | }, |
927 | 927 | "2": { |
928 | 928 | "name": "variable.other.normal.bashpp", |
929 | | - "comment": "Matches te object name in an object instantiation, e.g @type ObjectName" |
| 929 | + "comment": "Matches the object name in an object instantiation or pointer declaration, e.g @type ObjectName or @type* PointerName" |
930 | 930 | } |
931 | 931 | } |
932 | 932 | } |
|
1386 | 1386 | "name": "punctuation.definition.variable.bashpp" |
1387 | 1387 | } |
1388 | 1388 | }, |
1389 | | - "match": "(?<!\\\\)(@)(?!class\\b)(?!public\\b)(?!private\\b)(?!protected\\b)(?!virtual\\b)(?!method\\b)(?!constructor\\b)(?!destructor\\b)(?!new\\b)(?!delete\\b)(?!nullptr\\b)(?!include_once\\b)(?!include\\b)((?!__)[a-zA-Z_]([a-zA-Z0-9_]*\\.?)*)", |
| 1389 | + "match": "(?<!\\\\)(@)(?!class\\b)(?!public\\b)(?!private\\b)(?!protected\\b)(?!virtual\\b)(?!method\\b)(?!constructor\\b)(?!destructor\\b)(?!new\\b)(?!delete\\b)(?!nullptr\\b)(?!include_once\\b)(?!include\\b)(?!typeof\\b)((?!__)[a-zA-Z_]([a-zA-Z0-9_]*\\.?)*)", |
1390 | 1390 | "name": "variable.other.normal.bashpp", |
1391 | 1391 | "comment": "Matches a full object reference, as in @object.innerObject.method" |
1392 | 1392 | }, |
|
0 commit comments