|
112 | 112 |
|
113 | 113 | "ns-operators": { |
114 | 114 | "patterns": [ |
115 | | - { |
116 | | - "comment": "^3 capitalize modifier - highlights ^3 + next char + rest of identifier", |
117 | | - "name": "keyword.operator.capitalize.noshift", |
118 | | - "match": "\\^3.[a-zA-Z0-9_$]*" |
119 | | - }, |
120 | 115 | { |
121 | 116 | "comment": "NoShift sequences for shift-required symbols (excludes string/bracket delimiters: ^2 ^7 ^@ ^8 ^9 ^[ ^])", |
122 | 117 | "name": "keyword.operator.noshift", |
|
271 | 266 | "patterns": [ |
272 | 267 | { |
273 | 268 | "name": "meta.function-call.noshift", |
274 | | - "match": "(?:\\b|(?<=\\^\\d))([a-zA-Z_$][a-zA-Z0-9_$]*)(?=\\s*\\^8)", |
| 269 | + "match": "(?:\\b|(?<=\\^\\d)|(?=\\^3))((?:\\^3)?[a-zA-Z_$](?:(?:\\^3)?[a-zA-Z0-9_$])*)(?=\\s*\\^8)", |
275 | 270 | "captures": { |
276 | 271 | "1": { "name": "entity.name.function.noshift" } |
277 | 272 | } |
278 | 273 | }, |
279 | 274 | { |
280 | | - "comment": "Function/method definition: function name or method name followed by ^8", |
281 | | - "match": "(?<=\\bfunction\\s)([a-zA-Z_$][a-zA-Z0-9_$]*)", |
| 275 | + "comment": "Function/method definition: function name followed by space", |
| 276 | + "match": "(?<=\\bfunction\\s)((?:\\^3)?[a-zA-Z_$](?:(?:\\^3)?[a-zA-Z0-9_$])*)", |
282 | 277 | "captures": { |
283 | 278 | "1": { "name": "entity.name.function.definition.noshift" } |
284 | 279 | } |
|
297 | 292 | "match": "(?:\\b|(?<=\\^\\d))[A-Z][A-Z0-9_]{2,}\\b" |
298 | 293 | }, |
299 | 294 | { |
| 295 | + "comment": "PascalCase: starts with ^3 (= uppercase first letter) or raw [A-Z]", |
300 | 296 | "name": "entity.name.type.noshift", |
301 | | - "match": "(?:\\b|(?<=\\^\\d))[A-Z][a-zA-Z0-9_$]*\\b" |
| 297 | + "match": "(?:\\b|(?<=\\^\\d)|(?=\\^3))(?:\\^3[a-zA-Z](?:(?:\\^3)?[a-zA-Z0-9_$])*|[A-Z][a-zA-Z0-9_$]*)" |
302 | 298 | }, |
303 | 299 | { |
304 | 300 | "name": "variable.other.noshift", |
305 | | - "match": "(?:\\b|(?<=\\^\\d))[a-zA-Z_$][a-zA-Z0-9_$]*\\b" |
| 301 | + "match": "(?:\\b|(?<=\\^\\d))[a-zA-Z_$](?:(?:\\^3)?[a-zA-Z0-9_$])*" |
306 | 302 | } |
307 | 303 | ] |
308 | 304 | } |
|
0 commit comments