Skip to content

Commit cd463b4

Browse files
committed
Add audio and dialog classes to ini.tmLanguage.json
1 parent df45a68 commit cd463b4

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"repository": {
1313
"class": {
1414
"patterns": [
15+
{"include": "#audio-class"},
16+
{"include": "#dialog-class"},
1517
{"include": "#commandbutton-class"},
1618
{"include": "#weather-class"},
1719
{"include": "#armor-class"},
@@ -53,6 +55,56 @@
5355
}
5456
]
5557
},
58+
"dialog-class": {
59+
"begin": "\\s*\\b(DialogEvent)\\s+([a-zA-Z]\\w+)",
60+
"beginCaptures": {
61+
"1": {
62+
"name": "keyword.control.ini"
63+
},
64+
"2": {
65+
"name": "entity.name.type.ini"
66+
}
67+
},
68+
"end": "\\b([Ee]nd|END)\\s*",
69+
"endCaptures": {
70+
"1": {
71+
"name": "keyword.control.ini"
72+
}
73+
},
74+
"patterns": [
75+
{
76+
"include": "#assignment"
77+
},
78+
{
79+
"include": "#inline-comment"
80+
}
81+
]
82+
},
83+
"audio-class": {
84+
"begin": "\\s*\\b(AudioEvent)\\s+([a-zA-Z]\\w+)",
85+
"beginCaptures": {
86+
"1": {
87+
"name": "keyword.control.ini"
88+
},
89+
"2": {
90+
"name": "entity.name.type.ini"
91+
}
92+
},
93+
"end": "\\b([Ee]nd|END)\\s*",
94+
"endCaptures": {
95+
"1": {
96+
"name": "keyword.control.ini"
97+
}
98+
},
99+
"patterns": [
100+
{
101+
"include": "#assignment"
102+
},
103+
{
104+
"include": "#inline-comment"
105+
}
106+
]
107+
},
56108
"weather-class": {
57109
"begin": "\\s*\\b(Weather)",
58110
"beginCaptures": {

0 commit comments

Comments
 (0)