|
6 | 6 | "include": "#inline-comment" |
7 | 7 | }, |
8 | 8 | { |
9 | | - "include": "#keyword" |
| 9 | + "include": "#object-class" |
| 10 | + }, |
| 11 | + { |
| 12 | + "include": "#locomotor-class" |
10 | 13 | } |
11 | 14 | ], |
12 | 15 | "repository": { |
13 | | - "keyword": { |
14 | | - "patterns": [{ |
15 | | - "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+)", |
16 | | - "beginCaptures": { |
17 | | - "1": { |
18 | | - "name": "keyword.control.ini" |
| 16 | + "locomotor-class": { |
| 17 | + "patterns": [ |
| 18 | + { |
| 19 | + "begin": "\\b(Locomotor)\\s([a-zA-Z]\\w+)", |
| 20 | + "beginCaptures": { |
| 21 | + "1": { |
| 22 | + "name": "keyword.control.ini" |
| 23 | + }, |
| 24 | + "2": { |
| 25 | + "name": "entity.name.type.ini" |
| 26 | + } |
19 | 27 | }, |
20 | | - "2": { |
21 | | - "name": "entity.name.type.ini" |
22 | | - } |
23 | | - }, |
24 | | - "end": "\\s*\\b(End)\\b", |
25 | | - "endCaptures": { |
26 | | - "1": { |
27 | | - "name": "keyword.control.ini" |
28 | | - } |
29 | | - }, |
30 | | - "patterns": [ |
31 | | - { |
32 | | - "include": "#addmodule-block" |
| 28 | + "end": "\\s*\\b(End)\\b", |
| 29 | + "endCaptures": { |
| 30 | + "1": { |
| 31 | + "name": "keyword.control.ini" |
| 32 | + } |
33 | 33 | }, |
34 | | - { |
35 | | - "include": "#inline-removemodule" |
| 34 | + "patterns": [ |
| 35 | + { |
| 36 | + "include": "#assignment" |
| 37 | + }, |
| 38 | + { |
| 39 | + "include": "#inline-comment" |
| 40 | + } |
| 41 | + ] |
| 42 | + } |
| 43 | + ] |
| 44 | + }, |
| 45 | + "object-class": { |
| 46 | + "patterns": [ |
| 47 | + { |
| 48 | + "begin": "\\b(Object)\\s([a-zA-Z]\\w+)", |
| 49 | + "beginCaptures": { |
| 50 | + "1": { |
| 51 | + "name": "keyword.control.ini" |
| 52 | + }, |
| 53 | + "2": { |
| 54 | + "name": "entity.name.type.ini" |
| 55 | + } |
36 | 56 | }, |
37 | | - { |
38 | | - "include": "#assignment" |
| 57 | + "end": "\\s*\\b(End)\\b", |
| 58 | + "endCaptures": { |
| 59 | + "1": { |
| 60 | + "name": "keyword.control.ini" |
| 61 | + } |
39 | 62 | }, |
40 | | - { |
41 | | - "include": "#inline-comment" |
42 | | - } |
43 | | - ] |
44 | | - }] |
| 63 | + "patterns": [ |
| 64 | + { |
| 65 | + "include": "#addmodule-block" |
| 66 | + }, |
| 67 | + { |
| 68 | + "include": "#inline-removemodule" |
| 69 | + }, |
| 70 | + { |
| 71 | + "include": "#assignment" |
| 72 | + }, |
| 73 | + { |
| 74 | + "include": "#inline-comment" |
| 75 | + } |
| 76 | + ] |
| 77 | + } |
| 78 | + ] |
45 | 79 | }, |
46 | 80 | "addmodule-block": { |
47 | 81 | "begin": "\\s*\\b(AddModule)\\b", |
|
0 commit comments