|
9 | 9 | "include": "#keyword" |
10 | 10 | }, |
11 | 11 | { |
12 | | - "include": "#strings" |
| 12 | + "include": "#doublequoted-strings" |
13 | 13 | } |
14 | 14 | ], |
15 | 15 | "repository": { |
16 | 16 | "keyword": { |
17 | 17 | "patterns": [{ |
18 | | - "begin": "\\b(MappedImage|Object|Locomotor|Armor|CommandButton|CommandSet|FXList|AudioEvent|ObjectCreationList|ParticleSystem|PlayerTemplate|Rank|Science|SpecialPower|DialogEvent|Upgrade|Weapon|Weather)\\b\\s(\\w+)", |
| 18 | + "begin": "\\b(MappedImage|Object|Locomotor|Armor|CommandButton|CommandSet|FXList|AudioEvent|ObjectCreationList|ParticleSystem|PlayerTemplate|Rank|Science|SpecialPower|DialogEvent|Upgrade|Weapon|Weather)\\s([a-zA-Z]\\w+)", |
19 | 19 | "beginCaptures": { |
20 | 20 | "1": { |
21 | 21 | "name": "keyword.control.ini" |
|
30 | 30 | "name": "keyword.control.ini" |
31 | 31 | } |
32 | 32 | }, |
33 | | - "patterns": [{ |
| 33 | + "patterns": [ |
| 34 | + { |
| 35 | + "include": "#assignment" |
| 36 | + }, |
| 37 | + { |
34 | 38 | "include": "#inline-comment" |
35 | | - }] |
| 39 | + } |
| 40 | + ] |
36 | 41 | }] |
37 | 42 | }, |
38 | | - "objectConditionStates": { |
39 | | - "name": "meta.object-condition-state.ini", |
40 | | - "match": "\\b(NONE|None|none|DAMAGED|Damaged|damaged|REALLYDAMAGED|Reallydamaged|reallydamaged|ReallyDamaged|RUBBLE|Rubble|rubble)\\b" |
| 43 | + "assignment": { |
| 44 | + "begin": "(^[ \\t]+)?([a-zA-Z]\\w+)\\s*(\\=)\\s*", |
| 45 | + "beginCaptures": { |
| 46 | + "2": { |
| 47 | + "name": "variable.parameter" |
| 48 | + }, |
| 49 | + "3": { |
| 50 | + "name": "punctuation.whitespace.ini" |
| 51 | + } |
| 52 | + }, |
| 53 | + "end": "(?!\\G)", |
| 54 | + "patterns": [ |
| 55 | + { |
| 56 | + "include": "#string" |
| 57 | + }, |
| 58 | + { |
| 59 | + "include": "#numbers" |
| 60 | + }, |
| 61 | + { |
| 62 | + "include": "#inline-comment" |
| 63 | + } |
| 64 | + ] |
| 65 | + }, |
| 66 | + "string": { |
| 67 | + "begin": "(^[ \\t]+)?(?=[a-zA-Z])", |
| 68 | + "beginCaptures": { |
| 69 | + "1": { |
| 70 | + "name": "punctuation.whitespace.ini" |
| 71 | + } |
| 72 | + }, |
| 73 | + "end": "(?!\\G)", |
| 74 | + "patterns": [ |
| 75 | + { |
| 76 | + "match": "[a-zA-Z][\\w]*", |
| 77 | + "name": "string.unquoted.ini" |
| 78 | + } |
| 79 | + ] |
41 | 80 | }, |
42 | | - "strings": { |
| 81 | + "doublequoted-strings": { |
43 | 82 | "name": "string.quoted.double.ini", |
44 | 83 | "begin": "\"", |
45 | 84 | "end": "\"", |
|
50 | 89 | } |
51 | 90 | ] |
52 | 91 | }, |
| 92 | + "numbers": { |
| 93 | + "begin": "(^[ \\t]+)?(?=\\d)", |
| 94 | + "beginCaptures": { |
| 95 | + "1": { |
| 96 | + "name": "punctuation.whitespace.ini" |
| 97 | + } |
| 98 | + }, |
| 99 | + "end": "(?!\\G)", |
| 100 | + "patterns": [ |
| 101 | + { |
| 102 | + "match": "\\d[\\.\\d]*", |
| 103 | + "name": "constant.numeric.ini" |
| 104 | + } |
| 105 | + ] |
| 106 | + }, |
53 | 107 | "inline-comment": { |
54 | 108 | "begin": "(^[ \\t]+)?(?=;)", |
55 | 109 | "beginCaptures": { |
|
0 commit comments