Skip to content

Commit 836229a

Browse files
committed
Add AIData class
1 parent 9956870 commit 836229a

File tree

1 file changed

+187
-7
lines changed

1 file changed

+187
-7
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 187 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,187 @@
3838
{ "include": "#DamageFX-Class" },
3939
{ "include": "#MouseCursor-Class" },
4040
{ "include": "#Mouse-Class" },
41-
{ "include": "#InGameUI-Class" }
41+
{ "include": "#InGameUI-Class" },
42+
{ "include": "#AIData-Class" }
43+
]
44+
},
45+
"AIData-Class": {
46+
"begin": "(^[ \\t]+)?\\b(AIData)\\b",
47+
"beginCaptures": {
48+
"1": {
49+
"name": "punctuation.whitespace.ini"
50+
},
51+
"2": {
52+
"name": "keyword.control.ini"
53+
}
54+
},
55+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
56+
"endCaptures": {
57+
"1": {
58+
"name": "punctuation.whitespace.ini"
59+
},
60+
"2": {
61+
"name": "keyword.control.ini"
62+
}
63+
},
64+
"patterns": [
65+
{
66+
"include": "#Inline-Comment"
67+
},
68+
{
69+
"include": "#SideInfo-AIData-Class"
70+
},
71+
{
72+
"include": "#SkirmishBuildList-AIData-Class"
73+
},
74+
{
75+
"include": "#General-Assignment"
76+
},
77+
{
78+
"include": "#Invalid-Assignment"
79+
}
80+
]
81+
},
82+
"SideInfo-AIData-Class": {
83+
"begin": "(^[ \\t]+)?(SideInfo)([ \\t]+)([a-zA-Z_][\\w%]*)",
84+
"beginCaptures": {
85+
"1": {
86+
"name": "punctuation.whitespace.ini"
87+
},
88+
"2": {
89+
"name": "keyword.control.ini"
90+
},
91+
"3": {
92+
"name": "punctuation.whitespace.ini"
93+
},
94+
"4": {
95+
"name": "entity.name.type.class.ini"
96+
}
97+
},
98+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
99+
"endCaptures": {
100+
"1": {
101+
"name": "punctuation.whitespace.ini"
102+
},
103+
"2": {
104+
"name": "keyword.control.ini"
105+
}
106+
},
107+
"patterns": [
108+
{
109+
"include": "#Inline-Comment"
110+
},
111+
{
112+
"include": "#SkillSet-SideInfo-Class"
113+
},
114+
{
115+
"include": "#General-Assignment"
116+
},
117+
{
118+
"include": "#Invalid-Assignment"
119+
}
120+
]
121+
},
122+
"SkirmishBuildList-AIData-Class": {
123+
"begin": "(^[ \\t]+)?\\b(SkirmishBuildList)[ \\t]+([a-zA-Z_][\\w%]*)",
124+
"beginCaptures": {
125+
"1": {
126+
"name": "punctuation.whitespace.ini"
127+
},
128+
"2": {
129+
"name": "keyword.control.ini"
130+
},
131+
"3": {
132+
"name": "entity.name.type.class.ini"
133+
}
134+
},
135+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
136+
"endCaptures": {
137+
"1": {
138+
"name": "punctuation.whitespace.ini"
139+
},
140+
"2": {
141+
"name": "keyword.control.ini"
142+
}
143+
},
144+
"patterns": [
145+
{
146+
"include": "#Inline-Comment"
147+
},
148+
{
149+
"include": "#Structure-SkirmishBuildList-Class"
150+
},
151+
{
152+
"include": "#General-Assignment"
153+
},
154+
{
155+
"include": "#Invalid-Assignment"
156+
}
157+
]
158+
},
159+
"Structure-SkirmishBuildList-Class": {
160+
"begin": "(^[ \\t]+)?\\b(Structure)[ \\t]+([a-zA-Z_][\\w%]*)",
161+
"beginCaptures": {
162+
"1": {
163+
"name": "punctuation.whitespace.ini"
164+
},
165+
"2": {
166+
"name": "keyword.control.ini"
167+
},
168+
"3": {
169+
"name": "entity.name.type.class.ini"
170+
}
171+
},
172+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
173+
"endCaptures": {
174+
"1": {
175+
"name": "punctuation.whitespace.ini"
176+
},
177+
"2": {
178+
"name": "keyword.control.ini"
179+
}
180+
},
181+
"patterns": [
182+
{
183+
"include": "#Inline-Comment"
184+
},
185+
{
186+
"include": "#General-Assignment"
187+
},
188+
{
189+
"include": "#Invalid-Assignment"
190+
}
191+
]
192+
},
193+
"SkillSet-SideInfo-Class": {
194+
"begin": "(^[ \\t]+)?\\b(SkillSet[1-2])\\b",
195+
"beginCaptures": {
196+
"1": {
197+
"name": "punctuation.whitespace.ini"
198+
},
199+
"2": {
200+
"name": "keyword.control.ini"
201+
}
202+
},
203+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
204+
"endCaptures": {
205+
"1": {
206+
"name": "punctuation.whitespace.ini"
207+
},
208+
"2": {
209+
"name": "keyword.control.ini"
210+
}
211+
},
212+
"patterns": [
213+
{
214+
"include": "#Inline-Comment"
215+
},
216+
{
217+
"include": "#General-Assignment"
218+
},
219+
{
220+
"include": "#Invalid-Assignment"
221+
}
42222
]
43223
},
44224
"InGameUI-Class": {
@@ -99,7 +279,7 @@
99279
"include": "#General-Assignment"
100280
},
101281
{
102-
"include": "#Invalid-Assignemnt"
282+
"include": "#Invalid-Assignment"
103283
}
104284
]
105285
},
@@ -133,7 +313,7 @@
133313
"include": "#General-Assignment"
134314
},
135315
{
136-
"include": "#Invalid-Assignemnt"
316+
"include": "#Invalid-Assignment"
137317
}
138318
]
139319
},
@@ -164,7 +344,7 @@
164344
"include": "#Inline-Comment"
165345
},
166346
{
167-
"include": "#DamageFX-Assignemnt"
347+
"include": "#DamageFX-Assignment"
168348
},
169349
{
170350
"include": "#General-Assignment"
@@ -174,7 +354,7 @@
174354
}
175355
]
176356
},
177-
"DamageFX-Assignemnt": {
357+
"DamageFX-Assignment": {
178358
"begin": "(^[ \\t]+)?([a-zA-Z_][\\w%]*)",
179359
"captures": {
180360
"1": {
@@ -193,14 +373,14 @@
193373
"include": "#Equals"
194374
},
195375
{
196-
"include": "#DamageFX-Assignemnt-DamageCategories"
376+
"include": "#DamageFX-Assignment-DamageCategories"
197377
},
198378
{
199379
"include": "#Value"
200380
}
201381
]
202382
},
203-
"DamageFX-Assignemnt-DamageCategories": {
383+
"DamageFX-Assignment-DamageCategories": {
204384
"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",
205385
"name": "variable.other.constant.ini"
206386
},

0 commit comments

Comments
 (0)