-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsub.tmLanguage.json
70 lines (70 loc) · 1.77 KB
/
sub.tmLanguage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "EPICS substitution files syntax",
"scopeName": "source.epics.sub",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
},
{
"include": "#filename"
},
{
"include": "#macros"
},
{
"include": "#comments"
}
],
"repository": {
"keywords": {
"patterns": [
{
"name": "keyword.control.epics",
"match": "\\b(file)\\b"
},
{
"name": "constant.character.epics",
"match": "\\b(pattern)\\b"
}
]
},
"strings": {
"name": "string.quoted.double.epics",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.epics",
"match": "\\\\."
}
]
},
"filename": {
"patterns": [{
"name": "entity.name.type.epics",
"match": "(\\w+)(.template)"
}]
},
"macros": {
"patterns": [{
"name": "variable.parameter",
"match": "\\b(\\S\\w+)\\b"
}]
},
"comments": {
"name":"comment.line.number-sign.epics",
"begin": "#",
"end": "^",
"patterns": [
{
"name":"constant.character.escape.epics",
"match": "\\\\."
}
]
}
}
}