|
17 | 17 | "include": "#comments"
|
18 | 18 | },
|
19 | 19 | {
|
20 |
| - "match": "(?i)^(\\Include\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*(?:\\.[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)*)", |
| 20 | + "match": "(?i)^(\\Include\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
21 | 21 | "captures": {
|
22 | 22 | "1": {
|
23 | 23 | "name": "keyword.objectscript_class"
|
|
31 | 31 | }
|
32 | 32 | },
|
33 | 33 | {
|
34 |
| - "match": "(?i)^(\\bClass\\b)(\\s)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*(?:\\.[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)*)", |
| 34 | + "match": "(?i)^(\\bClass\\b)(\\s)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
35 | 35 | "captures": {
|
36 | 36 | "1": {
|
37 | 37 | "name": "keyword.objectscript_class"
|
|
45 | 45 | }
|
46 | 46 | },
|
47 | 47 | {
|
48 |
| - "match": "(?i)(\\bExtends\\b)(\\s)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*(?:\\.[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)*)", |
| 48 | + "match": "(?i)(\\bExtends\\b)(\\s)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
49 | 49 | "captures": {
|
50 | 50 | "1": {
|
51 | 51 | "name": "keyword.objectscript_class"
|
|
73 | 73 | },
|
74 | 74 | "patterns": [
|
75 | 75 | {
|
76 |
| - "match": "(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*(?:\\.[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)*)", |
| 76 | + "match": "(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
77 | 77 | "captures": {
|
78 | 78 | "1": {
|
79 | 79 | "name": "entity.name.class.objectscript_class"
|
|
112 | 112 | "as": {
|
113 | 113 | "patterns": [
|
114 | 114 | {
|
115 |
| - "match": "(?i)(\\bAs\\b(?:\\slist of)?)(\\s+)(%?[a-z][0-9a-z]*(?:_[0-9a-z]+)*(?:\\.[a-z][0-9a-z]*(?:_[0-9a-z]+)*)*)", |
| 115 | + "match": "(?i)(\\bAs\\b(?:\\slist of)?)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
116 | 116 | "captures": {
|
117 | 117 | "1": {
|
118 | 118 | "name": "keyword.objectscript_class"
|
|
155 | 155 | "include": "#comments"
|
156 | 156 | },
|
157 | 157 | {
|
158 |
| - "begin": "(?i)(^\\bIndex\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 158 | + "begin": "(?i)(^\\bIndex\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
159 | 159 | "beginCaptures": {
|
160 | 160 | "1": {
|
161 | 161 | "name": "keyword.objectscript_class"
|
|
180 | 180 | }
|
181 | 181 | },
|
182 | 182 | {
|
183 |
| - "match": "(?i)^(\\bForeignKey\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 183 | + "match": "(?i)^(\\bForeignKey\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
184 | 184 | "captures": {
|
185 | 185 | "1": {
|
186 | 186 | "name": "keyword.objectscript_class"
|
|
194 | 194 | }
|
195 | 195 | },
|
196 | 196 | {
|
197 |
| - "begin": "(?i)^(\\bParameter\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 197 | + "begin": "(?i)^(\\bParameter\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
198 | 198 | "beginCaptures": {
|
199 | 199 | "1": {
|
200 | 200 | "name": "keyword.objectscript_class"
|
|
219 | 219 | }
|
220 | 220 | },
|
221 | 221 | {
|
222 |
| - "match": "(?i)^(\\Projection\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 222 | + "match": "(?i)^(\\Projection\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
223 | 223 | "captures": {
|
224 | 224 | "1": {
|
225 | 225 | "name": "keyword.objectscript_class"
|
|
233 | 233 | }
|
234 | 234 | },
|
235 | 235 | {
|
236 |
| - "begin": "(?i)^(\\bProperty\\b)(\\s+)((?:%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\"[^\".]+\"))", |
| 236 | + "begin": "(?i)^(\\bProperty\\b)(\\s+)((?:%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)|(?:\"[^\".]+\"))", |
237 | 237 | "beginCaptures": {
|
238 | 238 | "1": {
|
239 | 239 | "name": "keyword.objectscript_class"
|
|
258 | 258 | }
|
259 | 259 | },
|
260 | 260 | {
|
261 |
| - "begin": "(?i)^(\\bRelationship\\b)(\\s+)((?:%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\"[^\".]+\"))", |
| 261 | + "begin": "(?i)^(\\bRelationship\\b)(\\s+)((?:%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)|(?:\"[^\".]+\"))", |
262 | 262 | "beginCaptures": {
|
263 | 263 | "1": {
|
264 | 264 | "name": "keyword.objectscript_class"
|
|
283 | 283 | }
|
284 | 284 | },
|
285 | 285 | {
|
286 |
| - "begin": "(?i)^(\\bClient(?:Class)?Method\\b)(\\s+)((?:%|%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\"[^\".]+\"))", |
| 286 | + "begin": "(?i)^(\\bClient(?:Class)?Method\\b)(\\s+)((?:%|%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)|(?:\"[^\".]+\"))", |
287 | 287 | "beginCaptures": {
|
288 | 288 | "1": {
|
289 | 289 | "name": "keyword.objectscript_class"
|
|
308 | 308 | }
|
309 | 309 | },
|
310 | 310 | {
|
311 |
| - "begin": "(?i)^(\\b(?:Class)?Method\\b)(\\s+)((?:%|%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\"[^\".]+\"))", |
| 311 | + "begin": "(?i)^(\\b(?:Class)?Method\\b)(\\s+)((?:%|%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)|(?:\"[^\".]+\"))", |
312 | 312 | "beginCaptures": {
|
313 | 313 | "1": {
|
314 | 314 | "name": "keyword.objectscript_class"
|
|
333 | 333 | }
|
334 | 334 | },
|
335 | 335 | {
|
336 |
| - "begin": "(?i)^(\\Query\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 336 | + "begin": "(?i)^(\\Query\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
337 | 337 | "beginCaptures": {
|
338 | 338 | "1": {
|
339 | 339 | "name": "keyword.objectscript_class"
|
|
358 | 358 | }
|
359 | 359 | },
|
360 | 360 | {
|
361 |
| - "begin": "(?i)^(\\bTrigger\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 361 | + "begin": "(?i)^(\\bTrigger\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
362 | 362 | "beginCaptures": {
|
363 | 363 | "1": {
|
364 | 364 | "name": "keyword.objectscript_class"
|
|
411 | 411 | }
|
412 | 412 | },
|
413 | 413 | {
|
414 |
| - "begin": "(?i)^(\\XData\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 414 | + "begin": "(?i)^(\\XData\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
415 | 415 | "beginCaptures": {
|
416 | 416 | "1": {
|
417 | 417 | "name": "keyword.objectscript_class"
|
|
439 | 439 | }
|
440 | 440 | },
|
441 | 441 | {
|
442 |
| - "begin": "(?i)^(\\Storage\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)", |
| 442 | + "begin": "(?i)^(\\Storage\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)", |
443 | 443 | "beginCaptures": {
|
444 | 444 | "1": {
|
445 | 445 | "name": "keyword.objectscript_class"
|
|
572 | 572 | "include": "#as"
|
573 | 573 | },
|
574 | 574 | {
|
575 |
| - "match": "[a-zA-Z][a-zA-Z0-9]*", |
| 575 | + "match": "[\\p{Alpha}][\\p{Alnum}]*", |
576 | 576 | "name": "variable.name.objectscript"
|
577 | 577 | },
|
578 | 578 | {
|
|
585 | 585 | "index": {
|
586 | 586 | "patterns": [
|
587 | 587 | {
|
588 |
| - "match": "(\\bOn\\b)(\\s+)(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*(?:\\.[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)*)", |
| 588 | + "match": "(\\bOn\\b)(\\s+)(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
589 | 589 | "captures": {
|
590 | 590 | "1": {
|
591 | 591 | "name": "keyword.objectscript_class"
|
|
613 | 613 | },
|
614 | 614 | "patterns": [
|
615 | 615 | {
|
616 |
| - "match": "(%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*(?:\\.[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)*)", |
| 616 | + "match": "(%?[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*(?:\\.[\\p{Alpha}][\\p{Alnum}]*(?:_[\\p{Alnum}]+)*)*)", |
617 | 617 | "captures": {
|
618 | 618 | "1": {
|
619 | 619 | "name": "entity.other.attribute-name.objectscript_class"
|
|
0 commit comments