Skip to content

Commit ba25e36

Browse files
committed
Add basic smd file syntax highlighting
1 parent 10e1235 commit ba25e36

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@
196196
"npc_sounds_*.txt",
197197
"level_sounds_*.txt"
198198
]
199+
},
200+
{
201+
"id": "smd",
202+
"aliases": [
203+
"Valve SMD",
204+
"Source SMD"
205+
],
206+
"extensions": [
207+
".smd"
208+
]
199209
}
200210
],
201211
"grammars": [
@@ -243,6 +253,11 @@
243253
"language": "rad",
244254
"scopeName": "source.rad",
245255
"path": "./syntaxes/rad.tmLanguage.json"
256+
},
257+
{
258+
"language": "smd",
259+
"scopeName": "source.smd",
260+
"path": "./syntaxes/smd.tmLanguage.json"
246261
}
247262
],
248263
"commands": [

syntaxes/smd.tmLanguage.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "SMD",
4+
"scopeName": "source.smd",
5+
"patterns": [
6+
{
7+
"include": "source.kv#comment"
8+
},
9+
{
10+
"include": "source.kv#number"
11+
},
12+
{
13+
"include": "#keywords"
14+
},
15+
{
16+
"include": "source.kv#stringUnquoted"
17+
},
18+
{
19+
"include": "source.kv#stringQuoted"
20+
}
21+
],
22+
"repository": {
23+
"keywords": {
24+
"match": "(version|nodes|end|triangles|skeleton|time)",
25+
"name": "keyword.smd"
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)