@devtron-labs/devtron-fe-common-lib 1.1.6-beta-2 → 1.1.6-beta-3
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/dist/abap-DttVK1gE.js +1314 -0
- package/dist/apex-BjfHvyb2.js +315 -0
- package/dist/assets/index.css +1 -0
- package/dist/azcli-Ws-Trf8e.js +74 -0
- package/dist/bat-CeCHpU9_.js +95 -0
- package/dist/bicep-C7a7aEmi.js +108 -0
- package/dist/cameligo-CJeEIvX4.js +168 -0
- package/dist/clojure-CEKXhLdU.js +754 -0
- package/dist/coffee-CKu3e6V1.js +228 -0
- package/dist/cpp-CvUiT5Ec.js +390 -0
- package/dist/csharp-PmU9HJkB.js +320 -0
- package/dist/csp-DULvRLPF.js +57 -0
- package/dist/css-CNWXQPpt.js +186 -0
- package/dist/cssMode-LuGmMkrz.js +1446 -0
- package/dist/cypher-CYHOQS2R.js +262 -0
- package/dist/dart-BjGx-9Jk.js +270 -0
- package/dist/dockerfile-D0WaVIZ2.js +132 -0
- package/dist/ecl-CijaJu-p.js +454 -0
- package/dist/elixir-BI5Tc37S.js +489 -0
- package/dist/flow9-BApGtQOO.js +141 -0
- package/dist/freemarker2-x4RlP1Lb.js +643 -0
- package/dist/fsharp-VeKgt2eG.js +210 -0
- package/dist/go-Cl8cKDlN.js +208 -0
- package/dist/graphql-PfgPBmj4.js +141 -0
- package/dist/handlebars-CmzmbrC4.js +391 -0
- package/dist/hcl-CG4VZSkm.js +177 -0
- package/dist/html-C5BGMOju.js +281 -0
- package/dist/htmlMode-ojR1UPbw.js +1456 -0
- package/dist/index-D-Wm7m6U.js +163399 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +429 -430
- package/dist/ini-EhiBNPZF.js +68 -0
- package/dist/java-DPbnXhoY.js +221 -0
- package/dist/javascript-B1bShWIo.js +75 -0
- package/dist/jsonMode-COdOy9-_.js +1866 -0
- package/dist/julia-Bw7EYexg.js +496 -0
- package/dist/kotlin-BNXLDoV0.js +245 -0
- package/dist/less-DtuF_id_.js +168 -0
- package/dist/lexon-DpB0-37O.js +151 -0
- package/dist/liquid-BjXJHFpF.js +238 -0
- package/dist/lua-CzRNOk9S.js +157 -0
- package/dist/m3-pXPmDwal.js +210 -0
- package/dist/markdown-CeQ3rxjn.js +202 -0
- package/dist/mdx-XJRNLcdB.js +171 -0
- package/dist/mips-DyE0VSNz.js +194 -0
- package/dist/msdax-CbdkoqRa.js +377 -0
- package/dist/mysql-B86-uHNu.js +876 -0
- package/dist/objective-c-1xvkKPId.js +188 -0
- package/dist/pascal-DcyFhj80.js +245 -0
- package/dist/pascaligo-QnM0hvMG.js +158 -0
- package/dist/perl-Bqp3FbU4.js +599 -0
- package/dist/pgsql-HdG7BG_Z.js +847 -0
- package/dist/php-zf7L2p7t.js +471 -0
- package/dist/pla-3Ykqsyzl.js +131 -0
- package/dist/postiats-D1v08O4B.js +544 -0
- package/dist/powerquery-CiQ9b1-b.js +890 -0
- package/dist/powershell-DFNK6VaX.js +233 -0
- package/dist/protobuf-D5P2Z6tc.js +422 -0
- package/dist/pug-BeyMX5am.js +393 -0
- package/dist/python-CEuHuu7a.js +259 -0
- package/dist/qsharp-DcFOTjuP.js +282 -0
- package/dist/r-B3aJPcWp.js +245 -0
- package/dist/razor-ByG7kYAl.js +512 -0
- package/dist/redis-CyC__Tub.js +298 -0
- package/dist/redshift-NqbcQPcY.js +806 -0
- package/dist/restructuredtext-CZMxBkap.js +162 -0
- package/dist/ruby-C_jEtDv5.js +444 -0
- package/dist/rust-WAeitMCC.js +337 -0
- package/dist/sb-CSBm2pED.js +110 -0
- package/dist/scala-D76PhKmh.js +353 -0
- package/dist/scheme-CBSAjRuO.js +114 -0
- package/dist/scss-BHY8wFFg.js +244 -0
- package/dist/shell-Cwju9_l8.js +224 -0
- package/dist/solidity-BV1-nze3.js +1351 -0
- package/dist/sophia-DfoUlGAs.js +190 -0
- package/dist/sparql-4kfArTtK.js +193 -0
- package/dist/sql-DIpn0HSX.js +818 -0
- package/dist/st-BgJ_KDZh.js +415 -0
- package/dist/swift-D-ucEgIi.js +315 -0
- package/dist/systemverilog-DjkH5zuo.js +556 -0
- package/dist/tcl-gd8XLKJA.js +232 -0
- package/dist/tsMode-GtXif5Eu.js +810 -0
- package/dist/twig-D5XtTFGM.js +323 -0
- package/dist/typescript-FqIgT4Lb.js +328 -0
- package/dist/vb-DYqqYAf3.js +364 -0
- package/dist/wgsl-CkZE0qf3.js +420 -0
- package/dist/xml-BUcUe2Ft.js +95 -0
- package/dist/yaml-CFa20EYw.js +184 -0
- package/package.json +5 -4
- package/dist/@code-editor-Vbkor1r4.js +0 -18991
- package/dist/@common-rjsf-6UM_zh8b.js +0 -567
- package/dist/@framer-motion-DHY98qq3.js +0 -3437
- package/dist/@moment-C_WeV3Af.js +0 -2609
- package/dist/@monaco-editor-34kqzg3G.js +0 -70451
- package/dist/@react-dates-WNnwjI5S.js +0 -7708
- package/dist/@react-select-BbR996pa.js +0 -2636
- package/dist/@src-assets-images-DamVa6cS.js +0 -14
- package/dist/@vendor-RU8AW1bK.js +0 -20473
- package/dist/assets/@code-editor.css +0 -1
- package/dist/assets/@common-rjsf.css +0 -1
- package/dist/assets/@monaco-editor.css +0 -1
- package/dist/assets/@react-dates.css +0 -1
- package/dist/assets/@vendor.css +0 -1
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["(*", "*)"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"],
|
|
16
|
+
["<", ">"]
|
|
17
|
+
],
|
|
18
|
+
autoClosingPairs: [
|
|
19
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
20
|
+
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
|
21
|
+
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
|
22
|
+
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
|
23
|
+
]
|
|
24
|
+
}, t = {
|
|
25
|
+
tokenPostfix: ".pats",
|
|
26
|
+
defaultToken: "invalid",
|
|
27
|
+
keywords: [
|
|
28
|
+
"abstype",
|
|
29
|
+
"abst0ype",
|
|
30
|
+
"absprop",
|
|
31
|
+
"absview",
|
|
32
|
+
"absvtype",
|
|
33
|
+
"absviewtype",
|
|
34
|
+
"absvt0ype",
|
|
35
|
+
"absviewt0ype",
|
|
36
|
+
"as",
|
|
37
|
+
"and",
|
|
38
|
+
"assume",
|
|
39
|
+
"begin",
|
|
40
|
+
"classdec",
|
|
41
|
+
"datasort",
|
|
42
|
+
"datatype",
|
|
43
|
+
"dataprop",
|
|
44
|
+
"dataview",
|
|
45
|
+
"datavtype",
|
|
46
|
+
"dataviewtype",
|
|
47
|
+
"do",
|
|
48
|
+
"end",
|
|
49
|
+
"extern",
|
|
50
|
+
"extype",
|
|
51
|
+
"extvar",
|
|
52
|
+
"exception",
|
|
53
|
+
"fn",
|
|
54
|
+
"fnx",
|
|
55
|
+
"fun",
|
|
56
|
+
"prfn",
|
|
57
|
+
"prfun",
|
|
58
|
+
"praxi",
|
|
59
|
+
"castfn",
|
|
60
|
+
"if",
|
|
61
|
+
"then",
|
|
62
|
+
"else",
|
|
63
|
+
"ifcase",
|
|
64
|
+
"in",
|
|
65
|
+
"infix",
|
|
66
|
+
"infixl",
|
|
67
|
+
"infixr",
|
|
68
|
+
"prefix",
|
|
69
|
+
"postfix",
|
|
70
|
+
"implmnt",
|
|
71
|
+
"implement",
|
|
72
|
+
"primplmnt",
|
|
73
|
+
"primplement",
|
|
74
|
+
"import",
|
|
75
|
+
"let",
|
|
76
|
+
"local",
|
|
77
|
+
"macdef",
|
|
78
|
+
"macrodef",
|
|
79
|
+
"nonfix",
|
|
80
|
+
"symelim",
|
|
81
|
+
"symintr",
|
|
82
|
+
"overload",
|
|
83
|
+
"of",
|
|
84
|
+
"op",
|
|
85
|
+
"rec",
|
|
86
|
+
"sif",
|
|
87
|
+
"scase",
|
|
88
|
+
"sortdef",
|
|
89
|
+
"sta",
|
|
90
|
+
"stacst",
|
|
91
|
+
"stadef",
|
|
92
|
+
"static",
|
|
93
|
+
"staload",
|
|
94
|
+
"dynload",
|
|
95
|
+
"try",
|
|
96
|
+
"tkindef",
|
|
97
|
+
"typedef",
|
|
98
|
+
"propdef",
|
|
99
|
+
"viewdef",
|
|
100
|
+
"vtypedef",
|
|
101
|
+
"viewtypedef",
|
|
102
|
+
"prval",
|
|
103
|
+
"var",
|
|
104
|
+
"prvar",
|
|
105
|
+
"when",
|
|
106
|
+
"where",
|
|
107
|
+
"with",
|
|
108
|
+
"withtype",
|
|
109
|
+
"withprop",
|
|
110
|
+
"withview",
|
|
111
|
+
"withvtype",
|
|
112
|
+
"withviewtype"
|
|
113
|
+
],
|
|
114
|
+
keywords_dlr: [
|
|
115
|
+
"$delay",
|
|
116
|
+
"$ldelay",
|
|
117
|
+
"$arrpsz",
|
|
118
|
+
"$arrptrsize",
|
|
119
|
+
"$d2ctype",
|
|
120
|
+
"$effmask",
|
|
121
|
+
"$effmask_ntm",
|
|
122
|
+
"$effmask_exn",
|
|
123
|
+
"$effmask_ref",
|
|
124
|
+
"$effmask_wrt",
|
|
125
|
+
"$effmask_all",
|
|
126
|
+
"$extern",
|
|
127
|
+
"$extkind",
|
|
128
|
+
"$extype",
|
|
129
|
+
"$extype_struct",
|
|
130
|
+
"$extval",
|
|
131
|
+
"$extfcall",
|
|
132
|
+
"$extmcall",
|
|
133
|
+
"$literal",
|
|
134
|
+
"$myfilename",
|
|
135
|
+
"$mylocation",
|
|
136
|
+
"$myfunction",
|
|
137
|
+
"$lst",
|
|
138
|
+
"$lst_t",
|
|
139
|
+
"$lst_vt",
|
|
140
|
+
"$list",
|
|
141
|
+
"$list_t",
|
|
142
|
+
"$list_vt",
|
|
143
|
+
"$rec",
|
|
144
|
+
"$rec_t",
|
|
145
|
+
"$rec_vt",
|
|
146
|
+
"$record",
|
|
147
|
+
"$record_t",
|
|
148
|
+
"$record_vt",
|
|
149
|
+
"$tup",
|
|
150
|
+
"$tup_t",
|
|
151
|
+
"$tup_vt",
|
|
152
|
+
"$tuple",
|
|
153
|
+
"$tuple_t",
|
|
154
|
+
"$tuple_vt",
|
|
155
|
+
"$break",
|
|
156
|
+
"$continue",
|
|
157
|
+
"$raise",
|
|
158
|
+
"$showtype",
|
|
159
|
+
"$vcopyenv_v",
|
|
160
|
+
"$vcopyenv_vt",
|
|
161
|
+
"$tempenver",
|
|
162
|
+
"$solver_assert",
|
|
163
|
+
"$solver_verify"
|
|
164
|
+
],
|
|
165
|
+
keywords_srp: [
|
|
166
|
+
"#if",
|
|
167
|
+
"#ifdef",
|
|
168
|
+
"#ifndef",
|
|
169
|
+
"#then",
|
|
170
|
+
"#elif",
|
|
171
|
+
"#elifdef",
|
|
172
|
+
"#elifndef",
|
|
173
|
+
"#else",
|
|
174
|
+
"#endif",
|
|
175
|
+
"#error",
|
|
176
|
+
"#prerr",
|
|
177
|
+
"#print",
|
|
178
|
+
"#assert",
|
|
179
|
+
"#undef",
|
|
180
|
+
"#define",
|
|
181
|
+
"#include",
|
|
182
|
+
"#require",
|
|
183
|
+
"#pragma",
|
|
184
|
+
"#codegen2",
|
|
185
|
+
"#codegen3"
|
|
186
|
+
],
|
|
187
|
+
irregular_keyword_list: [
|
|
188
|
+
"val+",
|
|
189
|
+
"val-",
|
|
190
|
+
"val",
|
|
191
|
+
"case+",
|
|
192
|
+
"case-",
|
|
193
|
+
"case",
|
|
194
|
+
"addr@",
|
|
195
|
+
"addr",
|
|
196
|
+
"fold@",
|
|
197
|
+
"free@",
|
|
198
|
+
"fix@",
|
|
199
|
+
"fix",
|
|
200
|
+
"lam@",
|
|
201
|
+
"lam",
|
|
202
|
+
"llam@",
|
|
203
|
+
"llam",
|
|
204
|
+
"viewt@ype+",
|
|
205
|
+
"viewt@ype-",
|
|
206
|
+
"viewt@ype",
|
|
207
|
+
"viewtype+",
|
|
208
|
+
"viewtype-",
|
|
209
|
+
"viewtype",
|
|
210
|
+
"view+",
|
|
211
|
+
"view-",
|
|
212
|
+
"view@",
|
|
213
|
+
"view",
|
|
214
|
+
"type+",
|
|
215
|
+
"type-",
|
|
216
|
+
"type",
|
|
217
|
+
"vtype+",
|
|
218
|
+
"vtype-",
|
|
219
|
+
"vtype",
|
|
220
|
+
"vt@ype+",
|
|
221
|
+
"vt@ype-",
|
|
222
|
+
"vt@ype",
|
|
223
|
+
"viewt@ype+",
|
|
224
|
+
"viewt@ype-",
|
|
225
|
+
"viewt@ype",
|
|
226
|
+
"viewtype+",
|
|
227
|
+
"viewtype-",
|
|
228
|
+
"viewtype",
|
|
229
|
+
"prop+",
|
|
230
|
+
"prop-",
|
|
231
|
+
"prop",
|
|
232
|
+
"type+",
|
|
233
|
+
"type-",
|
|
234
|
+
"type",
|
|
235
|
+
"t@ype",
|
|
236
|
+
"t@ype+",
|
|
237
|
+
"t@ype-",
|
|
238
|
+
"abst@ype",
|
|
239
|
+
"abstype",
|
|
240
|
+
"absviewt@ype",
|
|
241
|
+
"absvt@ype",
|
|
242
|
+
"for*",
|
|
243
|
+
"for",
|
|
244
|
+
"while*",
|
|
245
|
+
"while"
|
|
246
|
+
],
|
|
247
|
+
keywords_types: [
|
|
248
|
+
"bool",
|
|
249
|
+
"double",
|
|
250
|
+
"byte",
|
|
251
|
+
"int",
|
|
252
|
+
"short",
|
|
253
|
+
"char",
|
|
254
|
+
"void",
|
|
255
|
+
"unit",
|
|
256
|
+
"long",
|
|
257
|
+
"float",
|
|
258
|
+
"string",
|
|
259
|
+
"strptr"
|
|
260
|
+
],
|
|
261
|
+
keywords_effects: [
|
|
262
|
+
"0",
|
|
263
|
+
"fun",
|
|
264
|
+
"clo",
|
|
265
|
+
"prf",
|
|
266
|
+
"funclo",
|
|
267
|
+
"cloptr",
|
|
268
|
+
"cloref",
|
|
269
|
+
"ref",
|
|
270
|
+
"ntm",
|
|
271
|
+
"1"
|
|
272
|
+
],
|
|
273
|
+
operators: [
|
|
274
|
+
"@",
|
|
275
|
+
"!",
|
|
276
|
+
"|",
|
|
277
|
+
"`",
|
|
278
|
+
":",
|
|
279
|
+
"$",
|
|
280
|
+
".",
|
|
281
|
+
"=",
|
|
282
|
+
"#",
|
|
283
|
+
"~",
|
|
284
|
+
"..",
|
|
285
|
+
"...",
|
|
286
|
+
"=>",
|
|
287
|
+
"=<>",
|
|
288
|
+
"=/=>",
|
|
289
|
+
"=>>",
|
|
290
|
+
"=/=>>",
|
|
291
|
+
"<",
|
|
292
|
+
">",
|
|
293
|
+
"><",
|
|
294
|
+
".<",
|
|
295
|
+
">.",
|
|
296
|
+
".<>.",
|
|
297
|
+
"->",
|
|
298
|
+
"-<>"
|
|
299
|
+
],
|
|
300
|
+
brackets: [
|
|
301
|
+
{ open: ",(", close: ")", token: "delimiter.parenthesis" },
|
|
302
|
+
{ open: "`(", close: ")", token: "delimiter.parenthesis" },
|
|
303
|
+
{ open: "%(", close: ")", token: "delimiter.parenthesis" },
|
|
304
|
+
{ open: "'(", close: ")", token: "delimiter.parenthesis" },
|
|
305
|
+
{ open: "'{", close: "}", token: "delimiter.parenthesis" },
|
|
306
|
+
{ open: "@(", close: ")", token: "delimiter.parenthesis" },
|
|
307
|
+
{ open: "@{", close: "}", token: "delimiter.brace" },
|
|
308
|
+
{ open: "@[", close: "]", token: "delimiter.square" },
|
|
309
|
+
{ open: "#[", close: "]", token: "delimiter.square" },
|
|
310
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
311
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
312
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
313
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
314
|
+
],
|
|
315
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
316
|
+
IDENTFST: /[a-zA-Z_]/,
|
|
317
|
+
IDENTRST: /[a-zA-Z0-9_'$]/,
|
|
318
|
+
symbolic: /[%&+-./:=@~`^|*!$#?<>]/,
|
|
319
|
+
digit: /[0-9]/,
|
|
320
|
+
digitseq0: /@digit*/,
|
|
321
|
+
xdigit: /[0-9A-Za-z]/,
|
|
322
|
+
xdigitseq0: /@xdigit*/,
|
|
323
|
+
INTSP: /[lLuU]/,
|
|
324
|
+
FLOATSP: /[fFlL]/,
|
|
325
|
+
fexponent: /[eE][+-]?[0-9]+/,
|
|
326
|
+
fexponent_bin: /[pP][+-]?[0-9]+/,
|
|
327
|
+
deciexp: /\.[0-9]*@fexponent?/,
|
|
328
|
+
hexiexp: /\.[0-9a-zA-Z]*@fexponent_bin?/,
|
|
329
|
+
irregular_keywords: /val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,
|
|
330
|
+
ESCHAR: /[ntvbrfa\\\?'"\(\[\{]/,
|
|
331
|
+
start: "root",
|
|
332
|
+
tokenizer: {
|
|
333
|
+
root: [
|
|
334
|
+
{ regex: /[ \t\r\n]+/, action: { token: "" } },
|
|
335
|
+
{ regex: /\(\*\)/, action: { token: "invalid" } },
|
|
336
|
+
{
|
|
337
|
+
regex: /\(\*/,
|
|
338
|
+
action: { token: "comment", next: "lexing_COMMENT_block_ml" }
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
regex: /\(/,
|
|
342
|
+
action: "@brackets"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
regex: /\)/,
|
|
346
|
+
action: "@brackets"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
regex: /\[/,
|
|
350
|
+
action: "@brackets"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
regex: /\]/,
|
|
354
|
+
action: "@brackets"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
regex: /\{/,
|
|
358
|
+
action: "@brackets"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
regex: /\}/,
|
|
362
|
+
action: "@brackets"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
regex: /,\(/,
|
|
366
|
+
action: "@brackets"
|
|
367
|
+
},
|
|
368
|
+
{ regex: /,/, action: { token: "delimiter.comma" } },
|
|
369
|
+
{ regex: /;/, action: { token: "delimiter.semicolon" } },
|
|
370
|
+
{
|
|
371
|
+
regex: /@\(/,
|
|
372
|
+
action: "@brackets"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
regex: /@\[/,
|
|
376
|
+
action: "@brackets"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
regex: /@\{/,
|
|
380
|
+
action: "@brackets"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
regex: /:</,
|
|
384
|
+
action: { token: "keyword", next: "@lexing_EFFECT_commaseq0" }
|
|
385
|
+
},
|
|
386
|
+
{ regex: /\.@symbolic+/, action: { token: "identifier.sym" } },
|
|
387
|
+
{
|
|
388
|
+
regex: /\.@digit*@fexponent@FLOATSP*/,
|
|
389
|
+
action: { token: "number.float" }
|
|
390
|
+
},
|
|
391
|
+
{ regex: /\.@digit+/, action: { token: "number.float" } },
|
|
392
|
+
{
|
|
393
|
+
regex: /\$@IDENTFST@IDENTRST*/,
|
|
394
|
+
action: {
|
|
395
|
+
cases: {
|
|
396
|
+
"@keywords_dlr": { token: "keyword.dlr" },
|
|
397
|
+
"@default": { token: "namespace" }
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
regex: /\#@IDENTFST@IDENTRST*/,
|
|
403
|
+
action: {
|
|
404
|
+
cases: {
|
|
405
|
+
"@keywords_srp": { token: "keyword.srp" },
|
|
406
|
+
"@default": { token: "identifier" }
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{ regex: /%\(/, action: { token: "delimiter.parenthesis" } },
|
|
411
|
+
{
|
|
412
|
+
regex: /^%{(#|\^|\$)?/,
|
|
413
|
+
action: {
|
|
414
|
+
token: "keyword",
|
|
415
|
+
next: "@lexing_EXTCODE",
|
|
416
|
+
nextEmbedded: "text/javascript"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{ regex: /^%}/, action: { token: "keyword" } },
|
|
420
|
+
{ regex: /'\(/, action: { token: "delimiter.parenthesis" } },
|
|
421
|
+
{ regex: /'\[/, action: { token: "delimiter.bracket" } },
|
|
422
|
+
{ regex: /'\{/, action: { token: "delimiter.brace" } },
|
|
423
|
+
[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/, ["string", "string.escape", "string"]],
|
|
424
|
+
[/'[^\\']'/, "string"],
|
|
425
|
+
[/"/, "string.quote", "@lexing_DQUOTE"],
|
|
426
|
+
{
|
|
427
|
+
regex: /`\(/,
|
|
428
|
+
action: "@brackets"
|
|
429
|
+
},
|
|
430
|
+
{ regex: /\\/, action: { token: "punctuation" } },
|
|
431
|
+
{
|
|
432
|
+
regex: /@irregular_keywords(?!@IDENTRST)/,
|
|
433
|
+
action: { token: "keyword" }
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
regex: /@IDENTFST@IDENTRST*[<!\[]?/,
|
|
437
|
+
action: {
|
|
438
|
+
cases: {
|
|
439
|
+
"@keywords": { token: "keyword" },
|
|
440
|
+
"@keywords_types": { token: "type" },
|
|
441
|
+
"@default": { token: "identifier" }
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
regex: /\/\/\/\//,
|
|
447
|
+
action: { token: "comment", next: "@lexing_COMMENT_rest" }
|
|
448
|
+
},
|
|
449
|
+
{ regex: /\/\/.*$/, action: { token: "comment" } },
|
|
450
|
+
{
|
|
451
|
+
regex: /\/\*/,
|
|
452
|
+
action: { token: "comment", next: "@lexing_COMMENT_block_c" }
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
regex: /-<|=</,
|
|
456
|
+
action: { token: "keyword", next: "@lexing_EFFECT_commaseq0" }
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
regex: /@symbolic+/,
|
|
460
|
+
action: {
|
|
461
|
+
cases: {
|
|
462
|
+
"@operators": "keyword",
|
|
463
|
+
"@default": "operator"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
regex: /0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,
|
|
469
|
+
action: { token: "number.float" }
|
|
470
|
+
},
|
|
471
|
+
{ regex: /0[xX]@xdigit+@INTSP*/, action: { token: "number.hex" } },
|
|
472
|
+
{
|
|
473
|
+
regex: /0[0-7]+(?![0-9])@INTSP*/,
|
|
474
|
+
action: { token: "number.octal" }
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
regex: /@digit+(@fexponent|@deciexp)@FLOATSP*/,
|
|
478
|
+
action: { token: "number.float" }
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
regex: /@digit@digitseq0@INTSP*/,
|
|
482
|
+
action: { token: "number.decimal" }
|
|
483
|
+
},
|
|
484
|
+
{ regex: /@digit+@INTSP*/, action: { token: "number" } }
|
|
485
|
+
],
|
|
486
|
+
lexing_COMMENT_block_ml: [
|
|
487
|
+
[/[^\(\*]+/, "comment"],
|
|
488
|
+
[/\(\*/, "comment", "@push"],
|
|
489
|
+
[/\(\*/, "comment.invalid"],
|
|
490
|
+
[/\*\)/, "comment", "@pop"],
|
|
491
|
+
[/\*/, "comment"]
|
|
492
|
+
],
|
|
493
|
+
lexing_COMMENT_block_c: [
|
|
494
|
+
[/[^\/*]+/, "comment"],
|
|
495
|
+
[/\*\//, "comment", "@pop"],
|
|
496
|
+
[/[\/*]/, "comment"]
|
|
497
|
+
],
|
|
498
|
+
lexing_COMMENT_rest: [
|
|
499
|
+
[/$/, "comment", "@pop"],
|
|
500
|
+
[/.*/, "comment"]
|
|
501
|
+
],
|
|
502
|
+
lexing_EFFECT_commaseq0: [
|
|
503
|
+
{
|
|
504
|
+
regex: /@IDENTFST@IDENTRST+|@digit+/,
|
|
505
|
+
action: {
|
|
506
|
+
cases: {
|
|
507
|
+
"@keywords_effects": { token: "type.effect" },
|
|
508
|
+
"@default": { token: "identifier" }
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{ regex: /,/, action: { token: "punctuation" } },
|
|
513
|
+
{ regex: />/, action: { token: "@rematch", next: "@pop" } }
|
|
514
|
+
],
|
|
515
|
+
lexing_EXTCODE: [
|
|
516
|
+
{
|
|
517
|
+
regex: /^%}/,
|
|
518
|
+
action: {
|
|
519
|
+
token: "@rematch",
|
|
520
|
+
next: "@pop",
|
|
521
|
+
nextEmbedded: "@pop"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
{ regex: /[^%]+/, action: "" }
|
|
525
|
+
],
|
|
526
|
+
lexing_DQUOTE: [
|
|
527
|
+
{ regex: /"/, action: { token: "string.quote", next: "@pop" } },
|
|
528
|
+
{
|
|
529
|
+
regex: /(\{\$)(@IDENTFST@IDENTRST*)(\})/,
|
|
530
|
+
action: [{ token: "string.escape" }, { token: "identifier" }, { token: "string.escape" }]
|
|
531
|
+
},
|
|
532
|
+
{ regex: /\\$/, action: { token: "string.escape" } },
|
|
533
|
+
{
|
|
534
|
+
regex: /\\(@ESCHAR|[xX]@xdigit+|@digit+)/,
|
|
535
|
+
action: { token: "string.escape" }
|
|
536
|
+
},
|
|
537
|
+
{ regex: /[^\\"]+/, action: { token: "string" } }
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
export {
|
|
542
|
+
e as conf,
|
|
543
|
+
t as language
|
|
544
|
+
};
|