Skip to content

Commit 872d8f1

Browse files
committed
Add DialogEvent and AudioEvent classes to ini.tmLanguage.json
1 parent 6be6c3a commit 872d8f1

File tree

1 file changed

+145
-0
lines changed

1 file changed

+145
-0
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,157 @@
88
{
99
"include": "#ObjectRelated-class"
1010
},
11+
{
12+
"include": "#AudioEvent-Class"
13+
},
14+
{
15+
"include": "#DialogEvent-Class"
16+
},
1117
{
1218
"match": "([Ee]nd|END)",
1319
"name": "invalid.illegal.ini"
1420
}
1521
],
1622
"repository": {
23+
"DialogEvent-Class": {
24+
"begin": "(^[ \\t]+)?(DialogEvent)[ \\t]+([a-zA-Z_][\\w%]*)",
25+
"beginCaptures": {
26+
"1": {
27+
"name": "punctuation.whitespace.ini"
28+
},
29+
"2": {
30+
"name": "keyword.control.ini"
31+
},
32+
"3": {
33+
"name": "entity.name.type.class.ini"
34+
}
35+
},
36+
"end": "(^[ \\t]+)?([Ee]nd|END)",
37+
"endCaptures": {
38+
"1": {
39+
"name": "punctuation.whitespace.ini"
40+
},
41+
"2": {
42+
"name": "keyword.control.ini"
43+
}
44+
},
45+
"patterns": [
46+
{
47+
"include": "#Inline-Comment"
48+
},
49+
{
50+
"include": "#DialogEvent-priority"
51+
},
52+
{
53+
"include": "#AudioEvent-type"
54+
},
55+
{
56+
"include": "#General-Assignment"
57+
},
58+
{
59+
"include": "#Invalid-Assignment"
60+
}
61+
]
62+
},
63+
"DialogEvent-priority": {
64+
"begin": "(^[ \\t]+)?([Pp]riority)[ \\t]*(=)[ \\t]*",
65+
"beginCaptures": {
66+
"1": {
67+
"name": "punctuation.whitespace.ini"
68+
},
69+
"2": {
70+
"name": "variable.name.ini"
71+
},
72+
"3": {
73+
"name": "keyword.operator.assignment.ini"
74+
}
75+
},
76+
"end": "$",
77+
"patterns": [
78+
{
79+
"include": "#Inline-Comment"
80+
},
81+
{
82+
"include": "#DialogEvent-priority-value"
83+
},
84+
{
85+
"match": "[^0-9]+",
86+
"name": "invalid.illegal.priority.ini"
87+
}
88+
]
89+
},
90+
"DialogEvent-priority-value": {
91+
"match": "\\b(high|medium|low|critical)\\b",
92+
"name": "variable.other.constant.ini"
93+
},
94+
"AudioEvent-Class": {
95+
"begin": "(^[ \\t]+)?(AudioEvent)[ \\t]+([a-zA-Z_][\\w%]*)",
96+
"beginCaptures": {
97+
"1": {
98+
"name": "punctuation.whitespace.ini"
99+
},
100+
"2": {
101+
"name": "keyword.control.ini"
102+
},
103+
"3": {
104+
"name": "entity.name.type.class.ini"
105+
}
106+
},
107+
"end": "(^[ \\t]+)?([Ee]nd|END)",
108+
"endCaptures": {
109+
"1": {
110+
"name": "punctuation.whitespace.ini"
111+
},
112+
"2": {
113+
"name": "keyword.control.ini"
114+
}
115+
},
116+
"patterns": [
117+
{
118+
"include": "#Inline-Comment"
119+
},
120+
{
121+
"include": "#AudioEvent-type"
122+
},
123+
{
124+
"include": "#General-Assignment"
125+
},
126+
{
127+
"include": "#Invalid-Assignment"
128+
}
129+
]
130+
},
131+
"AudioEvent-type": {
132+
"begin": "(^[ \\t]+)?([Tt]ype)[ \\t]*(=)[ \\t]*",
133+
"beginCaptures": {
134+
"1": {
135+
"name": "punctuation.whitespace.ini"
136+
},
137+
"2": {
138+
"name": "variable.name.ini"
139+
},
140+
"3": {
141+
"name": "keyword.operator.assignment.ini"
142+
}
143+
},
144+
"end": "$",
145+
"patterns": [
146+
{
147+
"include": "#Inline-Comment"
148+
},
149+
{
150+
"include": "#AudioEvent-type-value"
151+
},
152+
{
153+
"match": "[^a-zA-Z]+",
154+
"name": "invalid.illegal.audiotype.ini"
155+
}
156+
]
157+
},
158+
"AudioEvent-type-value": {
159+
"match": "(^[ \\t]+)?\\b(ui|voice|player|world|global|shrouded|everyone)\\b",
160+
"name": "variable.other.constant.ini"
161+
},
17162
"ObjectRelated-class": {
18163
"patterns": [
19164
{

0 commit comments

Comments
 (0)