Skip to content

Commit c9ebc6b

Browse files
committed
Add DamageFX class to ini syntax
1 parent 573a6e5 commit c9ebc6b

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,77 @@
3434
{ "include": "#CommandSet-Class" },
3535
{ "include": "#CommandButton-Class" },
3636
{ "include": "#FXList-Class" },
37-
{ "include": "#ObjectCreationList-Class" }
37+
{ "include": "#ObjectCreationList-Class" },
38+
{ "include": "#DamageFX-Class" }
3839
]
3940
},
41+
"DamageFX-Class": {
42+
"begin": "(^[ \\t]+)?([Dd]amage[Ff][Xx])[ \\t]+([a-zA-Z_][\\w%]*)",
43+
"beginCaptures": {
44+
"1": {
45+
"name": "punctuation.whitespace.ini"
46+
},
47+
"2": {
48+
"name": "keyword.control.ini"
49+
},
50+
"3": {
51+
"name": "entity.name.type.class.ini"
52+
}
53+
},
54+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
55+
"endCaptures": {
56+
"1": {
57+
"name": "punctuation.whitespace.ini"
58+
},
59+
"2": {
60+
"name": "keyword.control.ini"
61+
}
62+
},
63+
"patterns": [
64+
{
65+
"include": "#Inline-Comment"
66+
},
67+
{
68+
"include": "#DamageFX-Assignemnt"
69+
},
70+
{
71+
"include": "#General-Assignment"
72+
},
73+
{
74+
"include": "#Invalid-Assignment"
75+
}
76+
]
77+
},
78+
"DamageFX-Assignemnt": {
79+
"begin": "(^[ \\t]+)?([a-zA-Z_][\\w%]*)",
80+
"captures": {
81+
"1": {
82+
"name": "punctuation.whitespace.ini"
83+
},
84+
"2": {
85+
"name": "variable.name.ini"
86+
}
87+
},
88+
"end": "$",
89+
"patterns": [
90+
{
91+
"include": "#WhiteSpace"
92+
},
93+
{
94+
"include": "#Equals"
95+
},
96+
{
97+
"include": "#DamageFX-Assignemnt-DamageCategories"
98+
},
99+
{
100+
"include": "#Value"
101+
}
102+
]
103+
},
104+
"DamageFX-Assignemnt-DamageCategories": {
105+
"match": "\\b(HEROIC|PARTICLE_BEAM|EXPLOSION|CRUSH|ARMOR_PIERCING|SMALL_ARMS|GATTLING|RADIATION|FLAME|LASER|SNIPER|POISON|HEALING|UNRESISTABLE|WATER|DEPLOY|SURRENDER|HACK|KILL_PILOT|PENALTY|FALLING|MELEE|DISARM|HAZARD_CLEANUP|INFANTRY_MISSILE|AURORA_BOMB|LAND_MINE|JET_MISSILES|STEALTHJET_MISSILES|MOLOTOV_COCKTAIL|COMANCHE_VULCAN|SUBDUAL_MISSILE|SUBDUAL_VEHICLE|SUBDUAL_BUILDING|SUBDUAL_UNRESISTABLE|MICROWAVE|KILL_GARRISONED|STATUS|DEFAULT)\\b",
106+
"name": "variable.other.constant.ini"
107+
},
40108
"ObjectCreationList-Class": {
41109
"begin": "(^[ \\t]+)?([Oo]bjectCreationList)[ \\t]+([a-zA-Z_][\\w%]*)",
42110
"beginCaptures": {
@@ -793,7 +861,7 @@
793861
]
794862
},
795863
"Weather-Class": {
796-
"begin": "(^[ \\t]+)?([Ww]eather)",
864+
"begin": "(^[ \\t]+)?\\b([Ww]eather)\\b",
797865
"beginCaptures": {
798866
"1": {
799867
"name": "punctuation.whitespace.ini"

0 commit comments

Comments
 (0)