Skip to content

Commit 3b6a4f2

Browse files
committed
Added WaterSet, Animation2D, AudioSettings and GameData
1 parent 836229a commit 3b6a4f2

File tree

1 file changed

+144
-4
lines changed

1 file changed

+144
-4
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 144 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
{
99
"include": "#INI-Classes"
1010
},
11+
{
12+
"include": "#General-Assignment"
13+
},
14+
{
15+
"include": "#Invalid-Assignment"
16+
},
1117
{
1218
"match": "\\b([Ee]nd|END)\\b",
1319
"name": "invalid.illegal.ini"
@@ -31,6 +37,7 @@
3137
{ "include": "#AudioEvent-Class" },
3238
{ "include": "#Weather-Class" },
3339
{ "include": "#WaterTransparency-Class" },
40+
{ "include": "#WaterSet-Class" },
3441
{ "include": "#CommandSet-Class" },
3542
{ "include": "#CommandButton-Class" },
3643
{ "include": "#FXList-Class" },
@@ -39,7 +46,106 @@
3946
{ "include": "#MouseCursor-Class" },
4047
{ "include": "#Mouse-Class" },
4148
{ "include": "#InGameUI-Class" },
42-
{ "include": "#AIData-Class" }
49+
{ "include": "#AIData-Class" },
50+
{ "include": "#Animation2D-Class" },
51+
{ "include": "#AudioSettings-Class" },
52+
{ "include": "#GameData-Class" }
53+
]
54+
},
55+
"GameData-Class": {
56+
"begin": "(^[ \\t]+)?\\b(GameData)\\b",
57+
"beginCaptures": {
58+
"1": {
59+
"name": "punctuation.whitespace.ini"
60+
},
61+
"2": {
62+
"name": "keyword.control.ini"
63+
}
64+
},
65+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
66+
"endCaptures": {
67+
"1": {
68+
"name": "punctuation.whitespace.ini"
69+
},
70+
"2": {
71+
"name": "keyword.control.ini"
72+
}
73+
},
74+
"patterns": [
75+
{
76+
"include": "#Inline-Comment"
77+
},
78+
{
79+
"include": "#General-Assignment"
80+
},
81+
{
82+
"include": "#Invalid-Assignment"
83+
}
84+
]
85+
},
86+
"AudioSettings-Class": {
87+
"begin": "(^[ \\t]+)?\\b([Aa]udio[Ss]ettings)\\b",
88+
"beginCaptures": {
89+
"1": {
90+
"name": "punctuation.whitespace.ini"
91+
},
92+
"2": {
93+
"name": "keyword.control.ini"
94+
}
95+
},
96+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
97+
"endCaptures": {
98+
"1": {
99+
"name": "punctuation.whitespace.ini"
100+
},
101+
"2": {
102+
"name": "keyword.control.ini"
103+
}
104+
},
105+
"patterns": [
106+
{
107+
"include": "#Inline-Comment"
108+
},
109+
{
110+
"include": "#General-Assignment"
111+
},
112+
{
113+
"include": "#Invalid-Assignment"
114+
}
115+
]
116+
},
117+
"Animation2D-Class": {
118+
"begin": "(^[ \\t]+)?\\b([Aa]nimation2D)\\b[ \\t]+([a-zA-Z_][\\w%]*)",
119+
"beginCaptures": {
120+
"1": {
121+
"name": "punctuation.whitespace.ini"
122+
},
123+
"2": {
124+
"name": "keyword.control.ini"
125+
},
126+
"3": {
127+
"name": "entity.name.type.class.ini"
128+
}
129+
},
130+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
131+
"endCaptures": {
132+
"1": {
133+
"name": "punctuation.whitespace.ini"
134+
},
135+
"2": {
136+
"name": "keyword.control.ini"
137+
}
138+
},
139+
"patterns": [
140+
{
141+
"include": "#Inline-Comment"
142+
},
143+
{
144+
"include": "#General-Assignment"
145+
},
146+
{
147+
"include": "#Invalid-Assignment"
148+
}
43149
]
44150
},
45151
"AIData-Class": {
@@ -1108,14 +1214,48 @@
11081214
"match": "(^[ \\t]+)?([^\\d]|0|19|[2-9]\\d+|\\d{2,})",
11091215
"name": "invalid.illegal.commandset.ini"
11101216
},
1217+
"WaterSet-Class": {
1218+
"begin": "(^[ \\t]+)?([Ww]ater[Ss]et)[ \\t]+([a-zA-Z_][\\w%]*)",
1219+
"beginCaptures": {
1220+
"1": {
1221+
"name": "punctuation.whitespace.ini"
1222+
},
1223+
"2": {
1224+
"name": "keyword.control.ini"
1225+
},
1226+
"3": {
1227+
"name": "entity.name.type.class.ini"
1228+
}
1229+
},
1230+
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
1231+
"endCaptures": {
1232+
"1": {
1233+
"name": "punctuation.whitespace.ini"
1234+
},
1235+
"2": {
1236+
"name": "keyword.control.ini"
1237+
}
1238+
},
1239+
"patterns": [
1240+
{
1241+
"include": "#Inline-Comment"
1242+
},
1243+
{
1244+
"include": "#General-Assignment"
1245+
},
1246+
{
1247+
"include": "#Invalid-Assignment"
1248+
}
1249+
]
1250+
},
11111251
"WaterTransparency-Class": {
1112-
"begin": "(^[ \\t]+)?([Ww]ater[Tt]ransparency)",
1252+
"begin": "(^[ \\t]+)?\\b(WaterTransparency)\\b",
11131253
"beginCaptures": {
11141254
"1": {
11151255
"name": "punctuation.whitespace.ini"
11161256
},
11171257
"2": {
1118-
"name": "variable.name.ini"
1258+
"name": "keyword.control.ini"
11191259
}
11201260
},
11211261
"end": "(^[ \\t]+)?\\b([Ee]nd|END)\\b",
@@ -2892,7 +3032,7 @@
28923032
"name": "string.quoted.single.ini"
28933033
},
28943034
{
2895-
"match": "[a-zA-Z_:\\.+]\\w*",
3035+
"match": "[a-zA-Z_:\\.+][\\w\\\\]*",
28963036
"name": "string.unquoted.ini"
28973037
}
28983038
]

0 commit comments

Comments
 (0)