Skip to content

Commit 5a4b286

Browse files
committed
Add Locomotor and Rank classes to ini syntax
1 parent 633ef1c commit 5a4b286

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
{
99
"include": "#ObjectRelated-Class"
1010
},
11+
{
12+
"include": "#Locomotor-Class"
13+
},
14+
{
15+
"include": "#Rank-Class"
16+
},
1117
{
1218
"include": "#Science-Class"
1319
},
@@ -38,6 +44,108 @@
3844
}
3945
],
4046
"repository": {
47+
"Locomotor-Class": {
48+
"begin": "(^[ \\t]+)?([Ll]ocomotor)[ \\t]+([a-zA-Z_0-9][\\w%]*)",
49+
"beginCaptures": {
50+
"1": {
51+
"name": "punctuation.whitespace.ini"
52+
},
53+
"2": {
54+
"name": "keyword.control.ini"
55+
},
56+
"3": {
57+
"name": "entity.name.type.class.ini"
58+
}
59+
},
60+
"end": "(^[ \\t]+)?([Ee]nd|END)",
61+
"endCaptures": {
62+
"1": {
63+
"name": "punctuation.whitespace.ini"
64+
},
65+
"2": {
66+
"name": "keyword.control.ini"
67+
}
68+
},
69+
"patterns": [
70+
{
71+
"include": "#Inline-Comment"
72+
},
73+
{
74+
"include": "#Locomotor-Surface-Assignment"
75+
},
76+
{
77+
"include": "#General-Assignment"
78+
},
79+
{
80+
"include": "#Invalid-Assignment"
81+
}
82+
]
83+
},
84+
"Locomotor-Surface-Assignment": {
85+
"begin": "(^[ \\t]+)?([Ss]urfaces)[ \\t]*(=)[ \\t]*",
86+
"beginCaptures": {
87+
"1": {
88+
"name": "punctuation.whitespace.ini"
89+
},
90+
"2": {
91+
"name": "variable.name.ini"
92+
},
93+
"3": {
94+
"name": "keyword.operator.assignment.ini"
95+
}
96+
},
97+
"end": "$",
98+
"patterns": [
99+
{
100+
"include": "#Inline-Comment"
101+
},
102+
{
103+
"include": "#Locomotor-Surface-Assignment-value01"
104+
},
105+
{
106+
"match": "[^a-zA-Z_]+",
107+
"name": "invalid.illegal.surface.ini"
108+
}
109+
]
110+
},
111+
"Locomotor-Surface-Assignment-value01": {
112+
"match": "\\b(GROUND|ground|RUBBLE|rubble|CLIFF|cliff|AIR|air|WATER|water)\\b",
113+
"name": "variable.other.constant.ini"
114+
},
115+
"Rank-Class": {
116+
"begin": "(^[ \\t]+)?([Rr]ank)[ \\t]+([0-8])",
117+
"beginCaptures": {
118+
"1": {
119+
"name": "punctuation.whitespace.ini"
120+
},
121+
"2": {
122+
"name": "keyword.control.ini"
123+
},
124+
"3": {
125+
"name": "entity.name.type.class.ini"
126+
}
127+
},
128+
"end": "(^[ \\t]+)?([Ee]nd|END)",
129+
"endCaptures": {
130+
"1": {
131+
"name": "punctuation.whitespace.ini"
132+
},
133+
"2": {
134+
"name": "keyword.control.ini"
135+
}
136+
},
137+
"patterns": [
138+
{
139+
"include": "#Inline-Comment"
140+
},
141+
{
142+
"include": "#General-Assignment"
143+
},
144+
{
145+
"include": "#Invalid-Assignment"
146+
}
147+
]
148+
},
41149
"Science-Class": {
42150
"begin": "(^[ \\t]+)?([Ss]cience)[ \\t]+([a-zA-Z_][\\w%]*)",
43151
"beginCaptures": {

0 commit comments

Comments
 (0)