-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnimble.tmLanguage.json
64 lines (64 loc) · 1.83 KB
/
nimble.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
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Nimble",
"scopeName": "source.nimble",
"patterns": [
{"include": "#strings"},
{"include": "#keywords"},
{"include": "#comments"}
],
"repository": {
"keywords": {
"patterns": [
{
"name": "markup.bold.nimble",
"match": "\\b(name|version|author|description|license|requires)\\b"
}, {
"name": "keyword.control.nimble",
"match": "(?<=:\\s*).*?$"
}, {
"name": "markup.changed.nimble",
"match": "\\b(skipDirs|skipFiles|installDirs|installFiles|installExt|bin|namedBin|srcDir|binDir|backend)\\b"
}, {
"name": "keyword.control.nimble",
"match": "\\b(exec|echo|task|taskRequires|before|when|import|if|elif|else)\\b"
}, {
"name": "keyword.control.nimble",
"match": "\\b(case|of|proc|func|iterator|method|template|converter|macro|type|from|as|for|while)\\b"
}, {
"name": "markup.heading.nimble",
"match": "(?<=(task|before)\\s*)[a-zA-Z][a-zA-Z0-9_]*"
}, {
"name": "entity.name.function.nimble",
"match": "[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=\\()"
}, {
"name": "keyword.control.nimble",
"match": "[~`!@№$%^&\\*?\\/\\-\\+=_:]+"
}
]
},
"comments": {
"patterns": [
{
"name": "comment.block.documentation.nimble",
"begin": "#\\[",
"end": "\\]#"
}, {
"name": "comment.line.number-sign.nimble",
"match": "#.?*$"
}
]
},
"strings": {
"name": "string.quoted.double.nimble",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.nimble",
"match": "\\\\."
}
]
}
}
}