tm-grammars 1.6.10 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +909 -96
- package/README.md +18 -11
- package/grammars/common-lisp.json +565 -0
- package/grammars/dart.json +30 -14
- package/grammars/desktop.json +106 -0
- package/grammars/fennel.json +233 -0
- package/grammars/go.json +12 -2
- package/grammars/hy.json +88 -0
- package/grammars/julia.json +1 -1
- package/grammars/latex.json +35 -0
- package/grammars/less.json +1 -1
- package/grammars/log.json +127 -0
- package/grammars/lua.json +27 -27
- package/grammars/mermaid.json +243 -5
- package/grammars/po.json +230 -0
- package/grammars/racket.json +1661 -0
- package/grammars/shellscript.json +84 -10
- package/grammars/systemd.json +460 -0
- package/grammars/tex.json +9 -9
- package/index.d.ts +10 -1
- package/index.js +158 -42
- package/package.json +1 -1
- package/grammars/lisp.json +0 -121
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Desktop",
|
|
3
|
+
"name": "desktop",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#layout"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"include": "#keywords"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#values"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#inCommands"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"include": "#inCategories"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"inCategories": {
|
|
23
|
+
"patterns": [
|
|
24
|
+
{
|
|
25
|
+
"match": "(?<=^Categories.*)AudioVideo|(?<=^Categories.*)Audio|(?<=^Categories.*)Video|(?<=^Categories.*)Development|(?<=^Categories.*)Education|(?<=^Categories.*)Game|(?<=^Categories.*)Graphics|(?<=^Categories.*)Network|(?<=^Categories.*)Office|(?<=^Categories.*)Science|(?<=^Categories.*)Settings|(?<=^Categories.*)System|(?<=^Categories.*)Utility",
|
|
26
|
+
"name": "markup.bold"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"inCommands": {
|
|
31
|
+
"patterns": [
|
|
32
|
+
{
|
|
33
|
+
"match": "(?<=^Exec.*\\s)-+\\S+",
|
|
34
|
+
"name": "variable.parameter"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"match": "(?<=^Exec.*)\\s\\%[fFuUick]\\s",
|
|
38
|
+
"name": "variable.language"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"match": "\".*\"",
|
|
42
|
+
"name": "string"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"keywords": {
|
|
47
|
+
"patterns": [
|
|
48
|
+
{
|
|
49
|
+
"match": "^Type\\b|^Version\\b|^Name\\b|^GenericName\\b|^NoDisplay\\b|^Comment\\b|^Icon\\b|^Hidden\\b|^OnlyShowIn\\b|^NotShowIn\\b|^DBusActivatable\\b|^TryExec\\b|^Exec\\b|^Path\\b|^Terminal\\b|^Actions\\b|^MimeType\\b|^Categories\\b|^Implements\\b|^Keywords\\b|^StartupNotify\\b|^StartupWMClass\\b|^URL\\b|^PrefersNonDefaultGPU\\b|^Encoding\\b",
|
|
50
|
+
"name": "keyword"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"match": "^X-[A-z 0-9 -]*",
|
|
54
|
+
"name": "keyword.other"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"match": "(?<!^)\\[.+\\]",
|
|
58
|
+
"name": "constant.language"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"match": "^GtkTheme\\b|^MetacityTheme\\b|^IconTheme\\b|^CursorTheme\\b|^ButtonLayout\\b|^ApplicationFont\\b",
|
|
62
|
+
"name": "keyword"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"layout": {
|
|
67
|
+
"patterns": [
|
|
68
|
+
{
|
|
69
|
+
"begin": "^\\[Desktop",
|
|
70
|
+
"end": "\\]",
|
|
71
|
+
"name": "markup.heading"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"begin": "^\\[X-\\w*",
|
|
75
|
+
"end": "\\]",
|
|
76
|
+
"name": "markup.heading"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"match": "^\\s*#.*",
|
|
80
|
+
"name": "comment"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"match": ";",
|
|
84
|
+
"name": "strong"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"values": {
|
|
89
|
+
"patterns": [
|
|
90
|
+
{
|
|
91
|
+
"match": "(?<=^\\S+)=",
|
|
92
|
+
"name": "keyword.operator"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"match": "\\btrue\\b|\\bfalse\\b",
|
|
96
|
+
"name": "variable.other"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"match": "(?<=^Version.*)\\d+(\\.{0,1}\\d*)",
|
|
100
|
+
"name": "variable.other"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"scopeName": "source.desktop"
|
|
106
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Fennel",
|
|
3
|
+
"name": "fennel",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#expression"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"comment": {
|
|
11
|
+
"patterns": [
|
|
12
|
+
{
|
|
13
|
+
"begin": ";",
|
|
14
|
+
"end": "$",
|
|
15
|
+
"name": "comment.line.semicolon.fennel"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"constants": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": "nil",
|
|
23
|
+
"name": "constant.language.nil.fennel"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"match": "false|true",
|
|
27
|
+
"name": "constant.language.boolean.fennel"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"match": "(-?\\d+\\.\\d+([eE][+-]?\\d+)?)",
|
|
31
|
+
"name": "constant.numeric.double.fennel"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"match": "(-?\\d+)",
|
|
35
|
+
"name": "constant.numeric.integer.fennel"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"expression": {
|
|
40
|
+
"patterns": [
|
|
41
|
+
{
|
|
42
|
+
"include": "#comment"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"include": "#constants"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"include": "#sexp"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"include": "#table"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"include": "#vector"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"include": "#keywords"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"include": "#special"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"include": "#lua"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"include": "#strings"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"include": "#methods"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"include": "#symbols"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"keywords": {
|
|
77
|
+
"match": ":[^ ]+",
|
|
78
|
+
"name": "constant.keyword.fennel"
|
|
79
|
+
},
|
|
80
|
+
"lua": {
|
|
81
|
+
"patterns": [
|
|
82
|
+
{
|
|
83
|
+
"match": "\\b(assert|collectgarbage|dofile|error|getmetatable|ipairs|load|loadfile|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setmetatable|tonumber|tostring|type|xpcall)\\b",
|
|
84
|
+
"name": "support.function.fennel"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"match": "\\b(coroutine|coroutine.create|coroutine.isyieldable|coroutine.resume|coroutine.running|coroutine.status|coroutine.wrap|coroutine.yield|debug|debug.debug|debug.gethook|debug.getinfo|debug.getlocal|debug.getmetatable|debug.getregistry|debug.getupvalue|debug.getuservalue|debug.sethook|debug.setlocal|debug.setmetatable|debug.setupvalue|debug.setuservalue|debug.traceback|debug.upvalueid|debug.upvaluejoin|io|io.close|io.flush|io.input|io.lines|io.open|io.output|io.popen|io.read|io.stderr|io.stdin|io.stdout|io.tmpfile|io.type|io.write|math|math.abs|math.acos|math.asin|math.atan|math.ceil|math.cos|math.deg|math.exp|math.floor|math.fmod|math.huge|math.log|math.max|math.maxinteger|math.min|math.mininteger|math.modf|math.pi|math.rad|math.random|math.randomseed|math.sin|math.sqrt|math.tan|math.tointeger|math.type|math.ult|os|os.clock|os.date|os.difftime|os.execute|os.exit|os.getenv|os.remove|os.rename|os.setlocale|os.time|os.tmpname|package|package.config|package.cpath|package.loaded|package.loadlib|package.path|package.preload|package.searchers|package.searchpath|string|string.byte|string.char|string.dump|string.find|string.format|string.gmatch|string.gsub|string.len|string.lower|string.match|string.pack|string.packsize|string.rep|string.reverse|string.sub|string.unpack|string.upper|table|table.concat|table.insert|table.move|table.pack|table.remove|table.sort|table.unpack|utf8|utf8.char|utf8.charpattern|utf8.codepoint|utf8.codes|utf8.len|utf8.offset)\\b",
|
|
88
|
+
"name": "support.function.library.fennel"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"match": "\\b(_G|_VERSION)\\b",
|
|
92
|
+
"name": "constant.language.fennel"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"methods": {
|
|
97
|
+
"patterns": [
|
|
98
|
+
{
|
|
99
|
+
"match": "\\w+\\:\\w+",
|
|
100
|
+
"name": "entity.name.function.method.fennel"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"sexp": {
|
|
105
|
+
"begin": "\\(",
|
|
106
|
+
"beginCaptures": {
|
|
107
|
+
"0": {
|
|
108
|
+
"name": "punctuation.paren.open.fennel"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"end": "\\)",
|
|
112
|
+
"endCaptures": {
|
|
113
|
+
"0": {
|
|
114
|
+
"name": "punctuation.paren.close.fennel"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"name": "sexp.fennel",
|
|
118
|
+
"patterns": [
|
|
119
|
+
{
|
|
120
|
+
"include": "#expression"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"special": {
|
|
125
|
+
"patterns": [
|
|
126
|
+
{
|
|
127
|
+
"match": "\\#|\\%|\\+|\\*|[?][.]|(\\.)?\\.|(\\/)?\\/|:|<=?|=|>=?|\\^",
|
|
128
|
+
"name": "keyword.special.fennel"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"match": "(\\-\\>(\\>)?)",
|
|
132
|
+
"name": "keyword.special.fennel"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"match": "\\-\\?\\>(\\>)?",
|
|
136
|
+
"name": "keyword.special.fennel"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"match": "-",
|
|
140
|
+
"name": "keyword.special.fennel"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"match": "not=",
|
|
144
|
+
"name": "keyword.special.fennel"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"match": "set-forcibly!",
|
|
148
|
+
"name": "keyword.special.fennel"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"match": "\\b(and|band|bnot|bor|bxor|collect|comment|do|doc|doto|each|eval-compiler|for|global|hashfn|icollect|if|import-macros|include|lambda|length|let|local|lshift|lua|macro|macrodebug|macros|match|not=?|or|partial|pick-args|pick-values|quote|require-macros|rshift|set|tset|values|var|when|while|with-open)\\b",
|
|
152
|
+
"name": "keyword.special.fennel"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"match": "\\b(fn)\\b",
|
|
156
|
+
"name": "keyword.control.fennel"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"match": "~=",
|
|
160
|
+
"name": "keyword.special.fennel"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"match": "λ",
|
|
164
|
+
"name": "keyword.special.fennel"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"strings": {
|
|
169
|
+
"begin": "\"",
|
|
170
|
+
"end": "\"",
|
|
171
|
+
"name": "string.quoted.double.fennel",
|
|
172
|
+
"patterns": [
|
|
173
|
+
{
|
|
174
|
+
"match": "\\\\.",
|
|
175
|
+
"name": "constant.character.escape.fennel"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"symbols": {
|
|
180
|
+
"patterns": [
|
|
181
|
+
{
|
|
182
|
+
"match": "\\w+(?:\\.\\w+)+",
|
|
183
|
+
"name": "entity.name.function.symbol.fennel"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"match": "\\w+",
|
|
187
|
+
"name": "variable.other.fennel"
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"table": {
|
|
192
|
+
"begin": "\\{",
|
|
193
|
+
"beginCaptures": {
|
|
194
|
+
"0": {
|
|
195
|
+
"name": "punctuation.table.bracket.open.fennel"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"end": "\\}",
|
|
199
|
+
"endCaptures": {
|
|
200
|
+
"0": {
|
|
201
|
+
"name": "punctuation.table.bracket.close.fennel"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"name": "table.fennel",
|
|
205
|
+
"patterns": [
|
|
206
|
+
{
|
|
207
|
+
"include": "#expression"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"vector": {
|
|
212
|
+
"begin": "\\[",
|
|
213
|
+
"beginCaptures": {
|
|
214
|
+
"0": {
|
|
215
|
+
"name": "punctuation.vector.bracket.open.fennel"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"end": "\\]",
|
|
219
|
+
"endCaptures": {
|
|
220
|
+
"0": {
|
|
221
|
+
"name": "punctuation.vector.bracket.close.fennel"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"name": "meta.vector.fennel",
|
|
225
|
+
"patterns": [
|
|
226
|
+
{
|
|
227
|
+
"include": "#expression"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"scopeName": "source.fnl"
|
|
233
|
+
}
|
package/grammars/go.json
CHANGED
|
@@ -1072,9 +1072,19 @@
|
|
|
1072
1072
|
"match": "((?:^\\s*\\w+:\\s*$)|(?:^\\s*(?:\\bbreak\\b|\\bgoto\\b|\\bcontinue\\b)\\s+\\w+(?:\\s*/(?:/|\\*)\\s*.*)?$))"
|
|
1073
1073
|
},
|
|
1074
1074
|
"language_constants": {
|
|
1075
|
+
"captures": {
|
|
1076
|
+
"1": {
|
|
1077
|
+
"name": "constant.language.boolean.go"
|
|
1078
|
+
},
|
|
1079
|
+
"2": {
|
|
1080
|
+
"name": "constant.language.null.go"
|
|
1081
|
+
},
|
|
1082
|
+
"3": {
|
|
1083
|
+
"name": "constant.language.iota.go"
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1075
1086
|
"comment": "Language constants",
|
|
1076
|
-
"match": "\\b(true|false|nil|iota)\\b"
|
|
1077
|
-
"name": "constant.language.go"
|
|
1087
|
+
"match": "\\b(?:(true|false)|(nil)|(iota))\\b"
|
|
1078
1088
|
},
|
|
1079
1089
|
"map_types": {
|
|
1080
1090
|
"begin": "(?:(\\bmap\\b)(\\[))",
|
package/grammars/hy.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Hy",
|
|
3
|
+
"name": "hy",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#all"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"all": {
|
|
11
|
+
"patterns": [
|
|
12
|
+
{
|
|
13
|
+
"include": "#comment"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"include": "#constants"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"include": "#keywords"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"include": "#strings"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"include": "#operators"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"include": "#keysym"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"include": "#symbol"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"comment": {
|
|
36
|
+
"patterns": [
|
|
37
|
+
{
|
|
38
|
+
"match": "(;).*$",
|
|
39
|
+
"name": "comment.line.hy"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"constants": {
|
|
44
|
+
"patterns": [
|
|
45
|
+
{
|
|
46
|
+
"match": "(?<=[\\{\\[\\(\\s])([0-9]+(\\.[0-9]+)?|(#x)[0-9a-fA-F]+|(#o)[0-7]+|(#b)[01]+)(?=[\\s;()'\",\\[\\]\\{\\}])",
|
|
47
|
+
"name": "constant.numeric.hy"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"keysym": {
|
|
52
|
+
"match": "(?<![\\.:\\w_\\-=!@\\$%^&?\\/<>*]):[\\.:\\w_\\-=!@\\$%^&?\\/<>*]*",
|
|
53
|
+
"name": "variable.other.constant"
|
|
54
|
+
},
|
|
55
|
+
"keywords": {
|
|
56
|
+
"patterns": [
|
|
57
|
+
{
|
|
58
|
+
"match": "\\b(\\.|->|->>|and|match|let|await|annotate|as->|as-model|assert|assoc|break|chainc|comment|cond|continue|do|doc|#doc|([dgls])?for|set[vx]|defclass|defmain|defmacro|defmacro\\/g!|defmacro!|deftag|del|doto|eval-and-compile|eval-when-compile|first|gensym|get|global|if|if\\*|if-not|import|(de)?fn(\\/a)?|last|nonlocal|not(\\?|-in)?|or|print|(quasi)?quote|require|rest|return|cut|raise|try|unless|unpack-iterable|unpack-mapping|unquote|unquote-splice|when|while|with(\\/a)?|with-decorator|with-gensyms|xor|yield(-from)?|butlast|coll\\?|comp|complement|constantly|dec|disassemble|empty\\?|eval|every\\?|exec|float\\?|fraction|even\\?|identity|inc|instance\\?|integer\\?|interleave|interpose|iterable\\?|iterator\\?|juxt|keyword|keyword\\?|macroexpand(-1)?|mangle|merge-with|name|neg\\?|none\\?|nth|numeric\\?|odd\\?|partition|pos\\?|second|some|string\\?|symbol\\?|zero\\?|cycle|distinct|drop|drop-last|drop-while|filter|flatten|iterate|read|read-str|remove|repeat|repeatedly|take|take-nth|take-while|unmangle|False|None|True|as|in|is|py(s)?|lambda|nonlocal|not|pass|abs|all|any|ascii|bin|bool|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr(-register)?|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__|abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|cos|floor|round|sin|sqrt|tan|(?:real|imag)-part|numerator|denominatormodulo|exp|expt|remainder|quotient|lcm|call-with-(?:input|output)-file|(?:close|current)-(?:input|output)-port|with-(?:input|output)-from-file|open-(?:input|output)-file|char-(?:downcase|upcase|ready)|make-(?:polar|promise|rectangular|string|vector)|string(?:-(?:append|copy|length|ref))|vector(?:-length|-ref))[\\s\\)]",
|
|
59
|
+
"name": "keyword.control.hy"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"operators": {
|
|
64
|
+
"patterns": [
|
|
65
|
+
{
|
|
66
|
+
"match": "(?<=\\()\\s*(\\+=?|\\/+|\\*+|-=?|[!<>]?=|@|%|<<|>>|<|>|&|\\||\\^|~)",
|
|
67
|
+
"name": "keyword.control.hy"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"strings": {
|
|
72
|
+
"begin": "(f?\"|}(?=[^\n]*?[{\"]))",
|
|
73
|
+
"end": "(\"|(?<=[\"}][^\n]*?){)",
|
|
74
|
+
"name": "string.quoted.double.hy",
|
|
75
|
+
"patterns": [
|
|
76
|
+
{
|
|
77
|
+
"match": "\\\\.",
|
|
78
|
+
"name": "constant.character.escape.hy"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"symbol": {
|
|
83
|
+
"match": "(?<![\\.:\\w_\\-=!@\\$%^&?/<>*#])[\\.a-zA-ZΑ-Ωα-ω_\\-=!@\\$%^<?/<>*#][\\.:\\w_\\-=!@\\$%^&?/<>*#]*",
|
|
84
|
+
"name": "variable.other.hy"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"scopeName": "source.hy"
|
|
88
|
+
}
|
package/grammars/julia.json
CHANGED
package/grammars/latex.json
CHANGED
|
@@ -2897,6 +2897,32 @@
|
|
|
2897
2897
|
"match": "((\\\\)(?:jl|julia)[cv]?)((?:\\[[^\\[]*?\\])?)(?:(?:([^a-zA-Z\\{])(.*?)(\\4))|(?:(\\{)(.*?)(\\})))",
|
|
2898
2898
|
"name": "meta.function.verb.latex"
|
|
2899
2899
|
},
|
|
2900
|
+
{
|
|
2901
|
+
"begin": "((\\\\)(?:directlua|luadirect))(\\{)",
|
|
2902
|
+
"beginCaptures": {
|
|
2903
|
+
"1": {
|
|
2904
|
+
"name": "support.function.verb.latex"
|
|
2905
|
+
},
|
|
2906
|
+
"2": {
|
|
2907
|
+
"name": "punctuation.definition.function.latex"
|
|
2908
|
+
},
|
|
2909
|
+
"3": {
|
|
2910
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
"contentName": "source.lua",
|
|
2914
|
+
"end": "\\}",
|
|
2915
|
+
"endCaptures": {
|
|
2916
|
+
"0": {
|
|
2917
|
+
"name": "punctuation.definition.arguments.end.latex"
|
|
2918
|
+
}
|
|
2919
|
+
},
|
|
2920
|
+
"patterns": [
|
|
2921
|
+
{
|
|
2922
|
+
"include": "source.lua"
|
|
2923
|
+
}
|
|
2924
|
+
]
|
|
2925
|
+
},
|
|
2900
2926
|
{
|
|
2901
2927
|
"match": "\\\\(?:newline|pagebreak|clearpage|linebreak|pause)(?:\\b)",
|
|
2902
2928
|
"name": "keyword.control.layout.latex"
|
|
@@ -3010,6 +3036,15 @@
|
|
|
3010
3036
|
"match": "(\\\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd(feminine|masculine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t(housand|enthousand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight(dblbase|base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\\b",
|
|
3011
3037
|
"name": "constant.character.latex"
|
|
3012
3038
|
},
|
|
3039
|
+
{
|
|
3040
|
+
"captures": {
|
|
3041
|
+
"1": {
|
|
3042
|
+
"name": "punctuation.definition.variable.latex"
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
"match": "(\\\\)[cgl](?:[_\\p{Alphabetic}@]+)+_(?:bitset|clist|dim|fp|int|muskip|str|tl|bool|box|coffin|flag|fparray|intarray|ior|iow|prop|regex|seq)",
|
|
3046
|
+
"name": "variable.other.latex3.latex"
|
|
3047
|
+
},
|
|
3013
3048
|
{
|
|
3014
3049
|
"captures": {
|
|
3015
3050
|
"1": {
|
package/grammars/less.json
CHANGED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Log file",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"log"
|
|
5
|
+
],
|
|
6
|
+
"name": "log",
|
|
7
|
+
"patterns": [
|
|
8
|
+
{
|
|
9
|
+
"match": "\\b(Trace)\\b:",
|
|
10
|
+
"name": "comment log.verbose"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"match": "(?i)\\[(verbose|verb|vrb|vb|v)\\]",
|
|
14
|
+
"name": "comment log.verbose"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"match": "(?<=^[\\s\\d\\p]*)\\bV\\b",
|
|
18
|
+
"name": "comment log.verbose"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"match": "\\b(DEBUG|Debug)\\b|(?i)\\b(debug)\\:",
|
|
22
|
+
"name": "markup.changed log.debug"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"match": "(?i)\\[(debug|dbug|dbg|de|d)\\]",
|
|
26
|
+
"name": "markup.changed log.debug"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"match": "(?<=^[\\s\\d\\p]*)\\bD\\b",
|
|
30
|
+
"name": "markup.changed log.debug"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"match": "\\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\\b|(?i)\\b(info|information)\\:",
|
|
34
|
+
"name": "markup.inserted log.info"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"match": "(?i)\\[(information|info|inf|in|i)\\]",
|
|
38
|
+
"name": "markup.inserted log.info"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"match": "(?<=^[\\s\\d\\p]*)\\bI\\b",
|
|
42
|
+
"name": "markup.inserted log.info"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"match": "\\b(WARNING|WARN|Warn|WW)\\b|(?i)\\b(warning)\\:",
|
|
46
|
+
"name": "markup.deleted log.warning"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"match": "(?i)\\[(warning|warn|wrn|wn|w)\\]",
|
|
50
|
+
"name": "markup.deleted log.warning"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"match": "(?<=^[\\s\\d\\p]*)\\bW\\b",
|
|
54
|
+
"name": "markup.deleted log.warning"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"match": "\\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\\b|(?i)\\b(error)\\:",
|
|
58
|
+
"name": "string.regexp, strong log.error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"match": "(?i)\\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\\]",
|
|
62
|
+
"name": "string.regexp, strong log.error"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"match": "(?<=^[\\s\\d\\p]*)\\bE\\b",
|
|
66
|
+
"name": "string.regexp, strong log.error"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"match": "\\b\\d{4}-\\d{2}-\\d{2}(T|\\b)",
|
|
70
|
+
"name": "comment log.date"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"match": "(?<=(^|\\s))\\d{2}[^\\w\\s]\\d{2}[^\\w\\s]\\d{4}\\b",
|
|
74
|
+
"name": "comment log.date"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"match": "\\d{1,2}:\\d{2}(:\\d{2}([.,]\\d{1,})?)?(Z| ?[+-]\\d{1,2}:\\d{2})?\\b",
|
|
78
|
+
"name": "comment log.date"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"match": "\\b([0-9a-fA-F]{40}|[0-9a-fA-F]{10}|[0-9a-fA-F]{7})\\b",
|
|
82
|
+
"name": "constant.language"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"match": "\\b[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}\\b",
|
|
86
|
+
"name": "constant.language log.constant"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"match": "\\b([0-9a-fA-F]{2,}[:-])+[0-9a-fA-F]{2,}+\\b",
|
|
90
|
+
"name": "constant.language log.constant"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"match": "\\b([0-9]+|true|false|null)\\b",
|
|
94
|
+
"name": "constant.language log.constant"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"match": "\\b(0x[a-fA-F0-9]+)\\b",
|
|
98
|
+
"name": "constant.language log.constant"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"match": "\"[^\"]*\"",
|
|
102
|
+
"name": "string log.string"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"match": "(?<![\\w])'[^']*'",
|
|
106
|
+
"name": "string log.string"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"match": "\\b([a-zA-Z.]*Exception)\\b",
|
|
110
|
+
"name": "string.regexp, emphasis log.exceptiontype"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"begin": "^[\\t ]*at[\\t ]",
|
|
114
|
+
"end": "$",
|
|
115
|
+
"name": "string.key, emphasis log.exception"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"match": "\\b[a-z]+://\\S+\\b/?",
|
|
119
|
+
"name": "constant.language log.constant"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"match": "(?<![\\w/\\\\])([\\w-]+\\.)+([\\w-])+(?![\\w/\\\\])",
|
|
123
|
+
"name": "constant.language log.constant"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"scopeName": "text.log"
|
|
127
|
+
}
|