Skip to content

Commit ef28839

Browse files
committed
Add object-class and locomotor-class patterns to ini.tmLanguage.json
1 parent b58af75 commit ef28839

File tree

1 file changed

+63
-29
lines changed

1 file changed

+63
-29
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 63 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,76 @@
66
"include": "#inline-comment"
77
},
88
{
9-
"include": "#keyword"
9+
"include": "#object-class"
10+
},
11+
{
12+
"include": "#locomotor-class"
1013
}
1114
],
1215
"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+
}
1927
},
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+
}
3333
},
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+
}
3656
},
37-
{
38-
"include": "#assignment"
57+
"end": "\\s*\\b(End)\\b",
58+
"endCaptures": {
59+
"1": {
60+
"name": "keyword.control.ini"
61+
}
3962
},
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+
]
4579
},
4680
"addmodule-block": {
4781
"begin": "\\s*\\b(AddModule)\\b",

0 commit comments

Comments
 (0)