forked from illnr/vscode-fanuc-karel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathetx.tmLanguage.json
50 lines (49 loc) · 872 Bytes
/
etx.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
{
"name": "ETX Visual Studio",
"scopeName": "source.etx",
"fileType": ["etx"],
"patterns": [
{
"comment": "Karel operator",
"match": ",",
"captures": {
"1": { "name": "string.regexp.dic" }
}
},
{
"comment": "Comment",
"match":"(\\*.*)",
"captures": {
"1": { "name": "keyword.comment.dic"}
}
},
{
"comment": "Reversed Word",
"match": "(&[a-zA-Z_]*)",
"captures": {
"1": { "name": "keyword.reversed.dic"}
}
},
{
"comment": "String",
"match": "(\"([^\"])*\")",
"captures": {
"1": { "name": "type.string.dic"}
}
},
{
"comment": "Constant 1",
"match": "(\\$[0-9a-zA-Z\\+_,-]*)",
"captures": {
"1": { "name": "type.constant.dic"}
}
},
{
"comment": "Constant 2",
"match": "(@[0-9,]*)",
"captures": {
"1": { "name": "type.constant.dic"}
}
}
]
}