Skip to content

Commit df45a68

Browse files
committed
Add commandbutton-class and weather-class to ini.tmLanguage.json
1 parent be238ed commit df45a68

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"repository": {
1313
"class": {
1414
"patterns": [
15+
{"include": "#commandbutton-class"},
16+
{"include": "#weather-class"},
1517
{"include": "#armor-class"},
1618
{"include": "#weapon-class"},
1719
{"include": "#upgrade-class"},
@@ -26,6 +28,53 @@
2628
{"include": "#object-class"}
2729
]
2830
},
31+
"commandbutton-class": {
32+
"begin": "\\s*\\b(CommandButton)\\s+([a-zA-Z]\\w+)",
33+
"beginCaptures": {
34+
"1": {
35+
"name": "keyword.control.ini"
36+
},
37+
"2": {
38+
"name": "entity.name.type.ini"
39+
}
40+
},
41+
"end": "\\b([Ee]nd|END)\\s*",
42+
"endCaptures": {
43+
"1": {
44+
"name": "keyword.control.ini"
45+
}
46+
},
47+
"patterns": [
48+
{
49+
"include": "#assignment"
50+
},
51+
{
52+
"include": "#inline-comment"
53+
}
54+
]
55+
},
56+
"weather-class": {
57+
"begin": "\\s*\\b(Weather)",
58+
"beginCaptures": {
59+
"1": {
60+
"name": "keyword.control.ini"
61+
}
62+
},
63+
"end": "\\b([Ee]nd|END)\\s*",
64+
"endCaptures": {
65+
"1": {
66+
"name": "keyword.control.ini"
67+
}
68+
},
69+
"patterns": [
70+
{
71+
"include": "#assignment"
72+
},
73+
{
74+
"include": "#inline-comment"
75+
}
76+
]
77+
},
2978
"armor-class": {
3079
"begin": "\\s*\\b(Armor)\\s+([a-zA-Z]\\w+)",
3180
"beginCaptures": {

0 commit comments

Comments
 (0)