Skip to content

Commit dabef53

Browse files
committed
Update AudioEvent type and priority in ini.tmLanguage.json
1 parent 5f59258 commit dabef53

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
"include": "#DialogEvent-priority"
276276
},
277277
{
278-
"include": "#AudioEvent-type"
278+
"include": "#AudioEvent-Type"
279279
},
280280
{
281281
"include": "#General-Assignment"
@@ -343,7 +343,10 @@
343343
"include": "#Inline-Comment"
344344
},
345345
{
346-
"include": "#AudioEvent-type"
346+
"include": "#AudioEvent-Type"
347+
},
348+
{
349+
"include": "#AudioEvent-Priority"
347350
},
348351
{
349352
"include": "#General-Assignment"
@@ -353,7 +356,38 @@
353356
}
354357
]
355358
},
356-
"AudioEvent-type": {
359+
"AudioEvent-Priority": {
360+
"begin": "(^[ \\t]+)?([Pp]riority)[ \\t]*(=)[ \\t]*",
361+
"beginCaptures": {
362+
"1": {
363+
"name": "punctuation.whitespace.ini"
364+
},
365+
"2": {
366+
"name": "variable.name.ini"
367+
},
368+
"3": {
369+
"name": "keyword.operator.assignment.ini"
370+
}
371+
},
372+
"end": "$",
373+
"patterns": [
374+
{
375+
"include": "#Inline-Comment"
376+
},
377+
{
378+
"include": "#AudioEvent-priority-value"
379+
},
380+
{
381+
"match": "[^a-zA-Z]+",
382+
"name": "invalid.illegal.priority.ini"
383+
}
384+
]
385+
},
386+
"AudioEvent-priority-value": {
387+
"match": "\\b(lowest|LOWEST|low|LOW|normal|NORMAL|high|HIGH|critical|CRITICAL)\\b",
388+
"name": "variable.other.constant.ini"
389+
},
390+
"AudioEvent-Type": {
357391
"begin": "(^[ \\t]+)?([Tt]ype)[ \\t]*(=)[ \\t]*",
358392
"beginCaptures": {
359393
"1": {
@@ -381,7 +415,7 @@
381415
]
382416
},
383417
"AudioEvent-type-value": {
384-
"match": "(^[ \\t]+)?\\b(ui|voice|player|world|global|shrouded|everyone)\\b",
418+
"match": "(^[ \\t]+)?\\b(ui|UI|voice|VOICE|player|PLAYER|world|WORLD|global|GLOBAL|shrouded|SHROUDED|everyone|EVERYONE)\\b",
385419
"name": "variable.other.constant.ini"
386420
},
387421
"ObjectRelated-Class": {

0 commit comments

Comments
 (0)