Skip to content

Commit 926bc3a

Browse files
committed
Update ini.tmLanguage.json syntax file
1 parent 19ce9ff commit 926bc3a

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -470,19 +470,35 @@
470470
]
471471
},
472472
"locomotor-types": {
473-
"match": "\\s*\\b(SET_NORMAL|SET_SUPERSONIC|SET_SLUGGISH|SET_TAXIING|SET_PANIC|SET_WANDER|SET_FREEFALL|SET_NORMAL_UPGRADED)\\s*([a-zA-Z]\\w+)",
474-
"captures": {
473+
"begin": "\\s*\\b(SET_NORMAL|SET_SUPERSONIC|SET_SLUGGISH|SET_TAXIING|SET_PANIC|SET_WANDER|SET_FREEFALL|SET_NORMAL_UPGRADED)\\s*",
474+
"beginCaptures": {
475475
"1": {
476476
"name": "variable.other.constant.ini"
477477
},
478478
"2": {
479479
"name": "string.unquoted.ini"
480480
}
481-
}
481+
},
482+
"end": "(?!\\G)",
483+
"patterns": [
484+
{
485+
"include": "#string"
486+
}
487+
]
482488
},
483489
"weapon-types": {
484-
"match": "\\b(PRIMARY|SECONDARY|TERTIARY)(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))*",
485-
"name": "variable.other.constant.ini"
490+
"begin": "(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))+\\s*",
491+
"beginCaptures": {
492+
"1": {
493+
"name": "variable.other.constant.ini"
494+
}
495+
},
496+
"end": "(?!\\G)",
497+
"patterns": [
498+
{
499+
"include": "#string"
500+
}
501+
]
486502
},
487503
"string": {
488504
"begin": "(^[ \\t]+)?(?=[a-zA-Z])",

0 commit comments

Comments
 (0)