@codingame/monaco-vscode-standalone-languages 23.2.1 → 23.3.0
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/_.contribution.js +48 -0
- package/abap/abap.contribution.js +8 -0
- package/abap/abap.js +1397 -0
- package/apex/apex.contribution.js +9 -0
- package/apex/apex.js +329 -0
- package/azcli/azcli.contribution.js +8 -0
- package/azcli/azcli.js +67 -0
- package/bat/bat.contribution.js +8 -0
- package/bat/bat.js +99 -0
- package/bicep/bicep.contribution.js +8 -0
- package/bicep/bicep.js +108 -0
- package/cameligo/cameligo.contribution.js +8 -0
- package/cameligo/cameligo.js +173 -0
- package/clojure/clojure.contribution.js +8 -0
- package/clojure/clojure.js +760 -0
- package/coffee/coffee.contribution.js +9 -0
- package/coffee/coffee.js +231 -0
- package/cpp/cpp.contribution.js +14 -0
- package/cpp/cpp.js +388 -0
- package/csharp/csharp.contribution.js +8 -0
- package/csharp/csharp.js +325 -0
- package/csp/csp.contribution.js +8 -0
- package/csp/csp.js +52 -0
- package/css/css.contribution.js +9 -0
- package/css/css.js +184 -0
- package/cypher/cypher.contribution.js +8 -0
- package/cypher/cypher.js +262 -0
- package/dart/dart.contribution.js +9 -0
- package/dart/dart.js +280 -0
- package/dockerfile/dockerfile.contribution.js +9 -0
- package/dockerfile/dockerfile.js +129 -0
- package/ecl/ecl.contribution.js +8 -0
- package/ecl/ecl.js +455 -0
- package/elixir/elixir.contribution.js +8 -0
- package/elixir/elixir.js +568 -0
- package/flow9/flow9.contribution.js +8 -0
- package/flow9/flow9.js +141 -0
- package/freemarker2/freemarker2.contribution.js +52 -0
- package/freemarker2/freemarker2.js +990 -0
- package/fsharp/fsharp.contribution.js +8 -0
- package/fsharp/fsharp.js +216 -0
- package/go/go.contribution.js +8 -0
- package/go/go.js +217 -0
- package/graphql/graphql.contribution.js +9 -0
- package/graphql/graphql.js +150 -0
- package/handlebars/handlebars.contribution.js +9 -0
- package/handlebars/handlebars.js +413 -0
- package/hcl/hcl.contribution.js +8 -0
- package/hcl/hcl.js +182 -0
- package/html/html.contribution.js +9 -0
- package/html/html.js +302 -0
- package/index.js +81 -48
- package/ini/ini.contribution.js +9 -0
- package/ini/ini.js +70 -0
- package/java/java.contribution.js +9 -0
- package/java/java.js +231 -0
- package/javascript/javascript.contribution.js +11 -0
- package/javascript/javascript.js +70 -0
- package/julia/julia.contribution.js +8 -0
- package/julia/julia.js +510 -0
- package/kotlin/kotlin.contribution.js +9 -0
- package/kotlin/kotlin.js +251 -0
- package/less/less.contribution.js +9 -0
- package/less/less.js +160 -0
- package/lexon/lexon.contribution.js +8 -0
- package/lexon/lexon.js +156 -0
- package/liquid/liquid.contribution.js +9 -0
- package/liquid/liquid.js +234 -0
- package/lua/lua.contribution.js +8 -0
- package/lua/lua.js +161 -0
- package/m3/m3.contribution.js +8 -0
- package/m3/m3.js +209 -0
- package/markdown/markdown.contribution.js +8 -0
- package/markdown/markdown.js +228 -0
- package/mdx/mdx.contribution.js +8 -0
- package/mdx/mdx.js +158 -0
- package/mips/mips.contribution.js +9 -0
- package/mips/mips.js +197 -0
- package/msdax/msdax.contribution.js +8 -0
- package/msdax/msdax.js +374 -0
- package/mysql/mysql.contribution.js +8 -0
- package/mysql/mysql.js +877 -0
- package/objective-c/objective-c.contribution.js +8 -0
- package/objective-c/objective-c.js +182 -0
- package/package.json +2 -2
- package/pascal/pascal.contribution.js +9 -0
- package/pascal/pascal.js +250 -0
- package/pascaligo/pascaligo.contribution.js +8 -0
- package/pascaligo/pascaligo.js +163 -0
- package/perl/perl.contribution.js +8 -0
- package/perl/perl.js +625 -0
- package/pgsql/pgsql.contribution.js +8 -0
- package/pgsql/pgsql.js +850 -0
- package/php/php.contribution.js +9 -0
- package/php/php.js +499 -0
- package/pla/pla.contribution.js +7 -0
- package/pla/pla.js +136 -0
- package/postiats/postiats.contribution.js +8 -0
- package/postiats/postiats.js +906 -0
- package/powerquery/powerquery.contribution.js +8 -0
- package/powerquery/powerquery.js +889 -0
- package/powershell/powershell.contribution.js +8 -0
- package/powershell/powershell.js +238 -0
- package/protobuf/protobuf.contribution.js +8 -0
- package/protobuf/protobuf.js +419 -0
- package/pug/pug.contribution.js +8 -0
- package/pug/pug.js +401 -0
- package/python/python.contribution.js +9 -0
- package/python/python.js +294 -0
- package/qsharp/qsharp.contribution.js +8 -0
- package/qsharp/qsharp.js +300 -0
- package/r/r.contribution.js +8 -0
- package/r/r.js +242 -0
- package/razor/razor.contribution.js +9 -0
- package/razor/razor.js +544 -0
- package/redis/redis.contribution.js +8 -0
- package/redis/redis.js +301 -0
- package/redshift/redshift.contribution.js +8 -0
- package/redshift/redshift.js +808 -0
- package/restructuredtext/restructuredtext.contribution.js +8 -0
- package/restructuredtext/restructuredtext.js +173 -0
- package/ruby/ruby.contribution.js +9 -0
- package/ruby/ruby.js +510 -0
- package/rust/rust.contribution.js +8 -0
- package/rust/rust.js +342 -0
- package/sb/sb.contribution.js +8 -0
- package/sb/sb.js +114 -0
- package/scala/scala.contribution.js +9 -0
- package/scala/scala.js +369 -0
- package/scheme/scheme.contribution.js +8 -0
- package/scheme/scheme.js +107 -0
- package/scss/scss.contribution.js +9 -0
- package/scss/scss.js +259 -0
- package/shell/shell.contribution.js +8 -0
- package/shell/shell.js +220 -0
- package/solidity/solidity.contribution.js +8 -0
- package/solidity/solidity.js +1366 -0
- package/sophia/sophia.contribution.js +8 -0
- package/sophia/sophia.js +198 -0
- package/sparql/sparql.contribution.js +8 -0
- package/sparql/sparql.js +200 -0
- package/sql/sql.contribution.js +8 -0
- package/sql/sql.js +852 -0
- package/st/st.contribution.js +8 -0
- package/st/st.js +415 -0
- package/swift/swift.contribution.js +9 -0
- package/swift/swift.js +311 -0
- package/systemverilog/systemverilog.contribution.js +14 -0
- package/systemverilog/systemverilog.js +575 -0
- package/tcl/tcl.contribution.js +8 -0
- package/tcl/tcl.js +231 -0
- package/twig/twig.contribution.js +9 -0
- package/twig/twig.js +391 -0
- package/typescript/typescript.contribution.js +11 -0
- package/typescript/typescript.js +336 -0
- package/typespec/typespec.contribution.js +8 -0
- package/typespec/typespec.js +126 -0
- package/vb/vb.contribution.js +8 -0
- package/vb/vb.js +371 -0
- package/wgsl/wgsl.contribution.js +8 -0
- package/wgsl/wgsl.js +452 -0
- package/xml/xml.contribution.js +28 -0
- package/xml/xml.js +88 -0
- package/yaml/yaml.contribution.js +9 -0
- package/yaml/yaml.js +199 -0
package/ecl/ecl.js
ADDED
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
const conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
lineComment: "//",
|
|
4
|
+
blockComment: ["/*", "*/"]
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{ open: "{", close: "}" },
|
|
13
|
+
{ open: "[", close: "]" },
|
|
14
|
+
{ open: "(", close: ")" },
|
|
15
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
16
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
17
|
+
],
|
|
18
|
+
surroundingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: "<", close: ">" },
|
|
23
|
+
{ open: "'", close: "'" },
|
|
24
|
+
{ open: '"', close: '"' }
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
const language = {
|
|
28
|
+
defaultToken: "",
|
|
29
|
+
tokenPostfix: ".ecl",
|
|
30
|
+
ignoreCase: true,
|
|
31
|
+
brackets: [
|
|
32
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
33
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
34
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
35
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
36
|
+
],
|
|
37
|
+
pounds: [
|
|
38
|
+
"append",
|
|
39
|
+
"break",
|
|
40
|
+
"declare",
|
|
41
|
+
"demangle",
|
|
42
|
+
"end",
|
|
43
|
+
"for",
|
|
44
|
+
"getdatatype",
|
|
45
|
+
"if",
|
|
46
|
+
"inmodule",
|
|
47
|
+
"loop",
|
|
48
|
+
"mangle",
|
|
49
|
+
"onwarning",
|
|
50
|
+
"option",
|
|
51
|
+
"set",
|
|
52
|
+
"stored",
|
|
53
|
+
"uniquename"
|
|
54
|
+
].join("|"),
|
|
55
|
+
keywords: [
|
|
56
|
+
"__compressed__",
|
|
57
|
+
"after",
|
|
58
|
+
"all",
|
|
59
|
+
"and",
|
|
60
|
+
"any",
|
|
61
|
+
"as",
|
|
62
|
+
"atmost",
|
|
63
|
+
"before",
|
|
64
|
+
"beginc",
|
|
65
|
+
"best",
|
|
66
|
+
"between",
|
|
67
|
+
"case",
|
|
68
|
+
"cluster",
|
|
69
|
+
"compressed",
|
|
70
|
+
"compression",
|
|
71
|
+
"const",
|
|
72
|
+
"counter",
|
|
73
|
+
"csv",
|
|
74
|
+
"default",
|
|
75
|
+
"descend",
|
|
76
|
+
"embed",
|
|
77
|
+
"encoding",
|
|
78
|
+
"encrypt",
|
|
79
|
+
"end",
|
|
80
|
+
"endc",
|
|
81
|
+
"endembed",
|
|
82
|
+
"endmacro",
|
|
83
|
+
"enum",
|
|
84
|
+
"escape",
|
|
85
|
+
"except",
|
|
86
|
+
"exclusive",
|
|
87
|
+
"expire",
|
|
88
|
+
"export",
|
|
89
|
+
"extend",
|
|
90
|
+
"fail",
|
|
91
|
+
"few",
|
|
92
|
+
"fileposition",
|
|
93
|
+
"first",
|
|
94
|
+
"flat",
|
|
95
|
+
"forward",
|
|
96
|
+
"from",
|
|
97
|
+
"full",
|
|
98
|
+
"function",
|
|
99
|
+
"functionmacro",
|
|
100
|
+
"group",
|
|
101
|
+
"grouped",
|
|
102
|
+
"heading",
|
|
103
|
+
"hole",
|
|
104
|
+
"ifblock",
|
|
105
|
+
"import",
|
|
106
|
+
"in",
|
|
107
|
+
"inner",
|
|
108
|
+
"interface",
|
|
109
|
+
"internal",
|
|
110
|
+
"joined",
|
|
111
|
+
"keep",
|
|
112
|
+
"keyed",
|
|
113
|
+
"last",
|
|
114
|
+
"left",
|
|
115
|
+
"limit",
|
|
116
|
+
"linkcounted",
|
|
117
|
+
"literal",
|
|
118
|
+
"little_endian",
|
|
119
|
+
"load",
|
|
120
|
+
"local",
|
|
121
|
+
"locale",
|
|
122
|
+
"lookup",
|
|
123
|
+
"lzw",
|
|
124
|
+
"macro",
|
|
125
|
+
"many",
|
|
126
|
+
"maxcount",
|
|
127
|
+
"maxlength",
|
|
128
|
+
"min skew",
|
|
129
|
+
"module",
|
|
130
|
+
"mofn",
|
|
131
|
+
"multiple",
|
|
132
|
+
"named",
|
|
133
|
+
"namespace",
|
|
134
|
+
"nocase",
|
|
135
|
+
"noroot",
|
|
136
|
+
"noscan",
|
|
137
|
+
"nosort",
|
|
138
|
+
"not",
|
|
139
|
+
"noxpath",
|
|
140
|
+
"of",
|
|
141
|
+
"onfail",
|
|
142
|
+
"only",
|
|
143
|
+
"opt",
|
|
144
|
+
"or",
|
|
145
|
+
"outer",
|
|
146
|
+
"overwrite",
|
|
147
|
+
"packed",
|
|
148
|
+
"partition",
|
|
149
|
+
"penalty",
|
|
150
|
+
"physicallength",
|
|
151
|
+
"pipe",
|
|
152
|
+
"prefetch",
|
|
153
|
+
"quote",
|
|
154
|
+
"record",
|
|
155
|
+
"repeat",
|
|
156
|
+
"retry",
|
|
157
|
+
"return",
|
|
158
|
+
"right",
|
|
159
|
+
"right1",
|
|
160
|
+
"right2",
|
|
161
|
+
"rows",
|
|
162
|
+
"rowset",
|
|
163
|
+
"scan",
|
|
164
|
+
"scope",
|
|
165
|
+
"self",
|
|
166
|
+
"separator",
|
|
167
|
+
"service",
|
|
168
|
+
"shared",
|
|
169
|
+
"skew",
|
|
170
|
+
"skip",
|
|
171
|
+
"smart",
|
|
172
|
+
"soapaction",
|
|
173
|
+
"sql",
|
|
174
|
+
"stable",
|
|
175
|
+
"store",
|
|
176
|
+
"terminator",
|
|
177
|
+
"thor",
|
|
178
|
+
"threshold",
|
|
179
|
+
"timelimit",
|
|
180
|
+
"timeout",
|
|
181
|
+
"token",
|
|
182
|
+
"transform",
|
|
183
|
+
"trim",
|
|
184
|
+
"type",
|
|
185
|
+
"unicodeorder",
|
|
186
|
+
"unordered",
|
|
187
|
+
"unsorted",
|
|
188
|
+
"unstable",
|
|
189
|
+
"update",
|
|
190
|
+
"use",
|
|
191
|
+
"validate",
|
|
192
|
+
"virtual",
|
|
193
|
+
"whole",
|
|
194
|
+
"width",
|
|
195
|
+
"wild",
|
|
196
|
+
"within",
|
|
197
|
+
"wnotrim",
|
|
198
|
+
"xml",
|
|
199
|
+
"xpath"
|
|
200
|
+
],
|
|
201
|
+
functions: [
|
|
202
|
+
"abs",
|
|
203
|
+
"acos",
|
|
204
|
+
"aggregate",
|
|
205
|
+
"allnodes",
|
|
206
|
+
"apply",
|
|
207
|
+
"ascii",
|
|
208
|
+
"asin",
|
|
209
|
+
"assert",
|
|
210
|
+
"asstring",
|
|
211
|
+
"atan",
|
|
212
|
+
"atan2",
|
|
213
|
+
"ave",
|
|
214
|
+
"build",
|
|
215
|
+
"buildindex",
|
|
216
|
+
"case",
|
|
217
|
+
"catch",
|
|
218
|
+
"choose",
|
|
219
|
+
"choosen",
|
|
220
|
+
"choosesets",
|
|
221
|
+
"clustersize",
|
|
222
|
+
"combine",
|
|
223
|
+
"correlation",
|
|
224
|
+
"cos",
|
|
225
|
+
"cosh",
|
|
226
|
+
"count",
|
|
227
|
+
"covariance",
|
|
228
|
+
"cron",
|
|
229
|
+
"dataset",
|
|
230
|
+
"dedup",
|
|
231
|
+
"define",
|
|
232
|
+
"denormalize",
|
|
233
|
+
"dictionary",
|
|
234
|
+
"distribute",
|
|
235
|
+
"distributed",
|
|
236
|
+
"distribution",
|
|
237
|
+
"ebcdic",
|
|
238
|
+
"enth",
|
|
239
|
+
"error",
|
|
240
|
+
"evaluate",
|
|
241
|
+
"event",
|
|
242
|
+
"eventextra",
|
|
243
|
+
"eventname",
|
|
244
|
+
"exists",
|
|
245
|
+
"exp",
|
|
246
|
+
"fail",
|
|
247
|
+
"failcode",
|
|
248
|
+
"failmessage",
|
|
249
|
+
"fetch",
|
|
250
|
+
"fromunicode",
|
|
251
|
+
"fromxml",
|
|
252
|
+
"getenv",
|
|
253
|
+
"getisvalid",
|
|
254
|
+
"global",
|
|
255
|
+
"graph",
|
|
256
|
+
"group",
|
|
257
|
+
"hash",
|
|
258
|
+
"hash32",
|
|
259
|
+
"hash64",
|
|
260
|
+
"hashcrc",
|
|
261
|
+
"hashmd5",
|
|
262
|
+
"having",
|
|
263
|
+
"httpcall",
|
|
264
|
+
"httpheader",
|
|
265
|
+
"if",
|
|
266
|
+
"iff",
|
|
267
|
+
"index",
|
|
268
|
+
"intformat",
|
|
269
|
+
"isvalid",
|
|
270
|
+
"iterate",
|
|
271
|
+
"join",
|
|
272
|
+
"keydiff",
|
|
273
|
+
"keypatch",
|
|
274
|
+
"keyunicode",
|
|
275
|
+
"length",
|
|
276
|
+
"library",
|
|
277
|
+
"limit",
|
|
278
|
+
"ln",
|
|
279
|
+
"loadxml",
|
|
280
|
+
"local",
|
|
281
|
+
"log",
|
|
282
|
+
"loop",
|
|
283
|
+
"map",
|
|
284
|
+
"matched",
|
|
285
|
+
"matchlength",
|
|
286
|
+
"matchposition",
|
|
287
|
+
"matchtext",
|
|
288
|
+
"matchunicode",
|
|
289
|
+
"max",
|
|
290
|
+
"merge",
|
|
291
|
+
"mergejoin",
|
|
292
|
+
"min",
|
|
293
|
+
"nofold",
|
|
294
|
+
"nolocal",
|
|
295
|
+
"nonempty",
|
|
296
|
+
"normalize",
|
|
297
|
+
"nothor",
|
|
298
|
+
"notify",
|
|
299
|
+
"output",
|
|
300
|
+
"parallel",
|
|
301
|
+
"parse",
|
|
302
|
+
"pipe",
|
|
303
|
+
"power",
|
|
304
|
+
"preload",
|
|
305
|
+
"process",
|
|
306
|
+
"project",
|
|
307
|
+
"pull",
|
|
308
|
+
"random",
|
|
309
|
+
"range",
|
|
310
|
+
"rank",
|
|
311
|
+
"ranked",
|
|
312
|
+
"realformat",
|
|
313
|
+
"recordof",
|
|
314
|
+
"regexfind",
|
|
315
|
+
"regexreplace",
|
|
316
|
+
"regroup",
|
|
317
|
+
"rejected",
|
|
318
|
+
"rollup",
|
|
319
|
+
"round",
|
|
320
|
+
"roundup",
|
|
321
|
+
"row",
|
|
322
|
+
"rowdiff",
|
|
323
|
+
"sample",
|
|
324
|
+
"sequential",
|
|
325
|
+
"set",
|
|
326
|
+
"sin",
|
|
327
|
+
"sinh",
|
|
328
|
+
"sizeof",
|
|
329
|
+
"soapcall",
|
|
330
|
+
"sort",
|
|
331
|
+
"sorted",
|
|
332
|
+
"sqrt",
|
|
333
|
+
"stepped",
|
|
334
|
+
"stored",
|
|
335
|
+
"sum",
|
|
336
|
+
"table",
|
|
337
|
+
"tan",
|
|
338
|
+
"tanh",
|
|
339
|
+
"thisnode",
|
|
340
|
+
"topn",
|
|
341
|
+
"tounicode",
|
|
342
|
+
"toxml",
|
|
343
|
+
"transfer",
|
|
344
|
+
"transform",
|
|
345
|
+
"trim",
|
|
346
|
+
"truncate",
|
|
347
|
+
"typeof",
|
|
348
|
+
"ungroup",
|
|
349
|
+
"unicodeorder",
|
|
350
|
+
"variance",
|
|
351
|
+
"wait",
|
|
352
|
+
"which",
|
|
353
|
+
"workunit",
|
|
354
|
+
"xmldecode",
|
|
355
|
+
"xmlencode",
|
|
356
|
+
"xmltext",
|
|
357
|
+
"xmlunicode"
|
|
358
|
+
],
|
|
359
|
+
typesint: ["integer", "unsigned"].join("|"),
|
|
360
|
+
typesnum: ["data", "qstring", "string", "unicode", "utf8", "varstring", "varunicode"],
|
|
361
|
+
typesone: [
|
|
362
|
+
"ascii",
|
|
363
|
+
"big_endian",
|
|
364
|
+
"boolean",
|
|
365
|
+
"data",
|
|
366
|
+
"decimal",
|
|
367
|
+
"ebcdic",
|
|
368
|
+
"grouped",
|
|
369
|
+
"integer",
|
|
370
|
+
"linkcounted",
|
|
371
|
+
"pattern",
|
|
372
|
+
"qstring",
|
|
373
|
+
"real",
|
|
374
|
+
"record",
|
|
375
|
+
"rule",
|
|
376
|
+
"set of",
|
|
377
|
+
"streamed",
|
|
378
|
+
"string",
|
|
379
|
+
"token",
|
|
380
|
+
"udecimal",
|
|
381
|
+
"unicode",
|
|
382
|
+
"unsigned",
|
|
383
|
+
"utf8",
|
|
384
|
+
"varstring",
|
|
385
|
+
"varunicode"
|
|
386
|
+
].join("|"),
|
|
387
|
+
operators: ["+", "-", "/", ":=", "<", "<>", "=", ">", "\\", "and", "in", "not", "or"],
|
|
388
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
389
|
+
// escape sequences
|
|
390
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
391
|
+
// The main tokenizer for our languages
|
|
392
|
+
tokenizer: {
|
|
393
|
+
root: [
|
|
394
|
+
[/@typesint[4|8]/, "type"],
|
|
395
|
+
[/#(@pounds)/, "type"],
|
|
396
|
+
[/@typesone/, "type"],
|
|
397
|
+
[
|
|
398
|
+
/[a-zA-Z_$][\w-$]*/,
|
|
399
|
+
{
|
|
400
|
+
cases: {
|
|
401
|
+
"@functions": "keyword.function",
|
|
402
|
+
"@keywords": "keyword",
|
|
403
|
+
"@operators": "operator"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
// whitespace
|
|
408
|
+
{ include: "@whitespace" },
|
|
409
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
410
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
411
|
+
[
|
|
412
|
+
/@symbols/,
|
|
413
|
+
{
|
|
414
|
+
cases: {
|
|
415
|
+
"@operators": "delimiter",
|
|
416
|
+
"@default": ""
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
// numbers
|
|
421
|
+
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/, "number.float"],
|
|
422
|
+
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
|
423
|
+
[/0[bB][01]+/, "number.hex"],
|
|
424
|
+
// binary: use same theme style as hex
|
|
425
|
+
[/[0-9_]+/, "number"],
|
|
426
|
+
// delimiter: after number because of .\d floats
|
|
427
|
+
[/[;,.]/, "delimiter"],
|
|
428
|
+
// strings
|
|
429
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
430
|
+
[/"/, "string", "@string"],
|
|
431
|
+
// characters
|
|
432
|
+
[/'[^\\']'/, "string"],
|
|
433
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
434
|
+
[/'/, "string.invalid"]
|
|
435
|
+
],
|
|
436
|
+
whitespace: [
|
|
437
|
+
[/[ \t\v\f\r\n]+/, ""],
|
|
438
|
+
[/\/\*/, "comment", "@comment"],
|
|
439
|
+
[/\/\/.*$/, "comment"]
|
|
440
|
+
],
|
|
441
|
+
comment: [
|
|
442
|
+
[/[^\/*]+/, "comment"],
|
|
443
|
+
[/\*\//, "comment", "@pop"],
|
|
444
|
+
[/[\/*]/, "comment"]
|
|
445
|
+
],
|
|
446
|
+
string: [
|
|
447
|
+
[/[^\\']+/, "string"],
|
|
448
|
+
[/@escapes/, "string.escape"],
|
|
449
|
+
[/\\./, "string.escape.invalid"],
|
|
450
|
+
[/'/, "string", "@pop"]
|
|
451
|
+
]
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
export { conf, language };
|