|
30 | 30 | { "include": "#DialogEvent-Class" }, |
31 | 31 | { "include": "#AudioEvent-Class" }, |
32 | 32 | { "include": "#Weather-Class" }, |
33 | | - { "include": "#WaterTransparency-Class" } |
| 33 | + { "include": "#WaterTransparency-Class" }, |
| 34 | + { "include": "#CommandSet" } |
34 | 35 | ] |
35 | 36 | }, |
| 37 | + "CommandSet": { |
| 38 | + "begin": "(^[ \\t]+)?([Cc]ommandSet)[ \\t]+([a-zA-Z_][\\w%]*)", |
| 39 | + "beginCaptures": { |
| 40 | + "1": { |
| 41 | + "name": "punctuation.whitespace.ini" |
| 42 | + }, |
| 43 | + "2": { |
| 44 | + "name": "keyword.control.ini" |
| 45 | + }, |
| 46 | + "3": { |
| 47 | + "name": "entity.name.type.class.ini" |
| 48 | + } |
| 49 | + }, |
| 50 | + "end": "(^[ \\t]+)?([Ee]nd|END)", |
| 51 | + "endCaptures": { |
| 52 | + "1": { |
| 53 | + "name": "punctuation.whitespace.ini" |
| 54 | + }, |
| 55 | + "2": { |
| 56 | + "name": "keyword.control.ini" |
| 57 | + } |
| 58 | + }, |
| 59 | + "patterns": [ |
| 60 | + { |
| 61 | + "include": "#Inline-Comment" |
| 62 | + }, |
| 63 | + { |
| 64 | + "include": "#CommandSet-Assignment" |
| 65 | + }, |
| 66 | + { |
| 67 | + "include": "#CommandSet-Invalid-Assignment" |
| 68 | + } |
| 69 | + ] |
| 70 | + }, |
| 71 | + "CommandSet-Assignment": { |
| 72 | + "begin": "(^[ \\t]+)?\\b((1[0-8])|([1-9]))\\b", |
| 73 | + "beginCaptures": { |
| 74 | + "1": { |
| 75 | + "name": "punctuation.whitespace.ini" |
| 76 | + }, |
| 77 | + "2": { |
| 78 | + "name": "entity.name.type.class.ini" |
| 79 | + } |
| 80 | + }, |
| 81 | + "end": "$", |
| 82 | + "patterns": [ |
| 83 | + { |
| 84 | + "include": "#Inline-Comment" |
| 85 | + }, |
| 86 | + { |
| 87 | + "include": "#WhiteSpace" |
| 88 | + }, |
| 89 | + { |
| 90 | + "include": "#Equals" |
| 91 | + }, |
| 92 | + { |
| 93 | + "include": "#String" |
| 94 | + } |
| 95 | + ] |
| 96 | + }, |
| 97 | + "CommandSet-Invalid-Assignment": { |
| 98 | + "match": "(^[ \\t]+)?([^\\d]|0|19|[2-9]\\d+|\\d{2,})", |
| 99 | + "name": "invalid.illegal.commandset.ini" |
| 100 | + }, |
36 | 101 | "WaterTransparency-Class": { |
37 | 102 | "begin": "(^[ \\t]+)?([Ww]ater[Tt]ransparency)", |
38 | 103 | "beginCaptures": { |
|
0 commit comments