Skip to content

Commit a2f367f

Browse files
authored
Merge pull request #21 from ViTeXFTW/Development_ViTeX
Fine tuning weapon types and comments
2 parents fe6f385 + b113c16 commit a2f367f

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@
350350
{
351351
"include": "#behavior-targetingreticledecal"
352352
},
353+
{
354+
"include": "#behavior-griddecaltempalte"
355+
},
353356
{
354357
"include": "#assignment"
355358
},
@@ -412,7 +415,29 @@
412415
"name": "keyword.control.ini"
413416
}
414417
},
415-
"end": "\\s*\\b(End)\\b",
418+
"end": "\\s*\\b(End)",
419+
"endCaptures": {
420+
"1": {
421+
"name": "keyword.control.ini"
422+
}
423+
},
424+
"patterns": [
425+
{
426+
"include": "#assignment"
427+
},
428+
{
429+
"include": "#inline-comment"
430+
}
431+
]
432+
},
433+
"behavior-griddecaltempalte": {
434+
"begin": "\\s*\\b(GridDecalTemplate)",
435+
"beginCaptures": {
436+
"1": {
437+
"name": "keyword.control.ini"
438+
}
439+
},
440+
"end": "\\s*\\b(End)",
416441
"endCaptures": {
417442
"1": {
418443
"name": "keyword.control.ini"
@@ -677,21 +702,19 @@
677702
]
678703
},
679704
"locomotor-types": {
680-
"begin": "\\s*\\b(SET_NORMAL|SET_SUPERSONIC|SET_SLUGGISH|SET_TAXIING|SET_PANIC|SET_WANDER|SET_FREEFALL|SET_NORMAL_UPGRADED)\\s*",
705+
"begin": "\\s*\\b(SET_NORMAL|SET_SUPERSONIC|SET_SLUGGISH|SET_TAXIING|SET_PANIC|SET_WANDER|SET_FREEFALL|SET_NORMAL_UPGRADED)\\s*([a-zA-Z][\\w_]+)?$",
681706
"beginCaptures": {
682707
"1": {
683708
"name": "variable.other.constant.ini"
684709
},
685710
"2": {
686711
"name": "string.unquoted.ini"
712+
},
713+
"3": {
714+
"name": "string.unquoted.ini"
687715
}
688716
},
689-
"end": "(?!\\G)",
690-
"patterns": [
691-
{
692-
"include": "#string"
693-
}
694-
]
717+
"end": "(?!\\G)"
695718
},
696719
"weapon-types-turret": {
697720
"match": "\\s*([a-zA-Z][\\w%]+)\\s*(\\=)(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))+",
@@ -706,7 +729,7 @@
706729
"name": "variable.other.constant.ini"
707730
},
708731
"weapon-types": {
709-
"begin": "(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))+\\s*",
732+
"begin": "(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))\\s*",
710733
"beginCaptures": {
711734
"1": {
712735
"name": "variable.other.constant.ini"
@@ -773,7 +796,7 @@
773796
]
774797
},
775798
"inline-comment": {
776-
"begin": "(^[ \\t]+)?(?=;)",
799+
"begin": "(^[ \\t]+)?(?=(;|//))",
777800
"beginCaptures": {
778801
"1": {
779802
"name": "punctuation.whitespace.ini"
@@ -790,6 +813,16 @@
790813
},
791814
"end": "\\n",
792815
"name": "comment.line.ini"
816+
},
817+
{
818+
"begin": "//",
819+
"beginCaptures": {
820+
"0": {
821+
"name": "punctuation.definition.comment.ini"
822+
}
823+
},
824+
"end": "\\n",
825+
"name": "comment.line.ini"
793826
}
794827
]
795828
}

0 commit comments

Comments
 (0)