@covalent/components 8.15.0-beta.13 → 8.15.0-beta.15
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/code-editor/code-editor.d.ts +0 -14
- package/code-editor/code-editor.d.ts.map +1 -1
- package/{code-editor-3a09cbf1.js → code-editor-857a4673.js} +89 -159
- package/{code-editor-ce557bd5.mjs → code-editor-caabbe50.mjs} +3141 -3338
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/{html-783f1e7c.mjs → html-707a5945.mjs} +1 -1
- package/{html-4fffc46e.js → html-aa904833.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{javascript-4d09cd3c.mjs → javascript-779a52b2.mjs} +2 -2
- package/{javascript-90bb18e6.js → javascript-d8dd6c0d.js} +1 -1
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +1 -1
- package/notebook.js +35 -20
- package/notebook.mjs +1254 -1213
- package/package.json +1 -1
- package/{python-562f8e9b.mjs → python-02ca0307.mjs} +1 -1
- package/{python-af3aad7d.js → python-b0bc8e7b.js} +1 -1
- package/{typescript-76d039b3.js → typescript-1a78657a.js} +1 -1
- package/{typescript-a2a5d6b2.mjs → typescript-ba11dbe7.mjs} +1 -1
- package/cpp-642b10c4.mjs +0 -387
- package/cpp-7eec3311.js +0 -6
- package/csharp-32862cd2.js +0 -6
- package/csharp-d987ddad.mjs +0 -320
- package/dart-031264ea.js +0 -6
- package/dart-5d209f63.mjs +0 -270
- package/go-46e3b371.mjs +0 -208
- package/go-cdd943fd.js +0 -6
- package/java-32d7b433.js +0 -6
- package/java-cd017f60.mjs +0 -221
- package/kotlin-4b9019e1.js +0 -6
- package/kotlin-c6e52a56.mjs +0 -245
- package/lua-b46719a9.js +0 -6
- package/lua-f159160b.mjs +0 -157
- package/php-987b9d87.mjs +0 -471
- package/php-a6dcde52.js +0 -6
- package/rust-87887495.js +0 -6
- package/rust-97f8f6e1.mjs +0 -337
- package/scala-c68c650c.mjs +0 -353
- package/scala-e8b7bd42.js +0 -6
- package/shell-09452d42.mjs +0 -224
- package/shell-43cfbe7d.js +0 -6
- package/swift-724ff2a3.js +0 -8
- package/swift-abdf1835.mjs +0 -315
- package/xml-89571455.mjs +0 -100
- package/xml-e66929d0.js +0 -6
- package/yaml-11a91e71.js +0 -6
- package/yaml-4eccd122.mjs +0 -189
package/rust-97f8f6e1.mjs
DELETED
@@ -1,337 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
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
|
-
autoClosingPairs: [
|
18
|
-
{ open: "[", close: "]" },
|
19
|
-
{ open: "{", close: "}" },
|
20
|
-
{ open: "(", close: ")" },
|
21
|
-
{ open: '"', close: '"', notIn: ["string"] }
|
22
|
-
],
|
23
|
-
surroundingPairs: [
|
24
|
-
{ open: "{", close: "}" },
|
25
|
-
{ open: "[", close: "]" },
|
26
|
-
{ open: "(", close: ")" },
|
27
|
-
{ open: '"', close: '"' },
|
28
|
-
{ open: "'", close: "'" }
|
29
|
-
],
|
30
|
-
folding: {
|
31
|
-
markers: {
|
32
|
-
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
33
|
-
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}, t = {
|
37
|
-
tokenPostfix: ".rust",
|
38
|
-
defaultToken: "invalid",
|
39
|
-
keywords: [
|
40
|
-
"as",
|
41
|
-
"async",
|
42
|
-
"await",
|
43
|
-
"box",
|
44
|
-
"break",
|
45
|
-
"const",
|
46
|
-
"continue",
|
47
|
-
"crate",
|
48
|
-
"dyn",
|
49
|
-
"else",
|
50
|
-
"enum",
|
51
|
-
"extern",
|
52
|
-
"false",
|
53
|
-
"fn",
|
54
|
-
"for",
|
55
|
-
"if",
|
56
|
-
"impl",
|
57
|
-
"in",
|
58
|
-
"let",
|
59
|
-
"loop",
|
60
|
-
"match",
|
61
|
-
"mod",
|
62
|
-
"move",
|
63
|
-
"mut",
|
64
|
-
"pub",
|
65
|
-
"ref",
|
66
|
-
"return",
|
67
|
-
"self",
|
68
|
-
"static",
|
69
|
-
"struct",
|
70
|
-
"super",
|
71
|
-
"trait",
|
72
|
-
"true",
|
73
|
-
"try",
|
74
|
-
"type",
|
75
|
-
"unsafe",
|
76
|
-
"use",
|
77
|
-
"where",
|
78
|
-
"while",
|
79
|
-
"catch",
|
80
|
-
"default",
|
81
|
-
"union",
|
82
|
-
"static",
|
83
|
-
"abstract",
|
84
|
-
"alignof",
|
85
|
-
"become",
|
86
|
-
"do",
|
87
|
-
"final",
|
88
|
-
"macro",
|
89
|
-
"offsetof",
|
90
|
-
"override",
|
91
|
-
"priv",
|
92
|
-
"proc",
|
93
|
-
"pure",
|
94
|
-
"sizeof",
|
95
|
-
"typeof",
|
96
|
-
"unsized",
|
97
|
-
"virtual",
|
98
|
-
"yield"
|
99
|
-
],
|
100
|
-
typeKeywords: [
|
101
|
-
"Self",
|
102
|
-
"m32",
|
103
|
-
"m64",
|
104
|
-
"m128",
|
105
|
-
"f80",
|
106
|
-
"f16",
|
107
|
-
"f128",
|
108
|
-
"int",
|
109
|
-
"uint",
|
110
|
-
"float",
|
111
|
-
"char",
|
112
|
-
"bool",
|
113
|
-
"u8",
|
114
|
-
"u16",
|
115
|
-
"u32",
|
116
|
-
"u64",
|
117
|
-
"f32",
|
118
|
-
"f64",
|
119
|
-
"i8",
|
120
|
-
"i16",
|
121
|
-
"i32",
|
122
|
-
"i64",
|
123
|
-
"str",
|
124
|
-
"Option",
|
125
|
-
"Either",
|
126
|
-
"c_float",
|
127
|
-
"c_double",
|
128
|
-
"c_void",
|
129
|
-
"FILE",
|
130
|
-
"fpos_t",
|
131
|
-
"DIR",
|
132
|
-
"dirent",
|
133
|
-
"c_char",
|
134
|
-
"c_schar",
|
135
|
-
"c_uchar",
|
136
|
-
"c_short",
|
137
|
-
"c_ushort",
|
138
|
-
"c_int",
|
139
|
-
"c_uint",
|
140
|
-
"c_long",
|
141
|
-
"c_ulong",
|
142
|
-
"size_t",
|
143
|
-
"ptrdiff_t",
|
144
|
-
"clock_t",
|
145
|
-
"time_t",
|
146
|
-
"c_longlong",
|
147
|
-
"c_ulonglong",
|
148
|
-
"intptr_t",
|
149
|
-
"uintptr_t",
|
150
|
-
"off_t",
|
151
|
-
"dev_t",
|
152
|
-
"ino_t",
|
153
|
-
"pid_t",
|
154
|
-
"mode_t",
|
155
|
-
"ssize_t"
|
156
|
-
],
|
157
|
-
constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"],
|
158
|
-
supportConstants: [
|
159
|
-
"EXIT_FAILURE",
|
160
|
-
"EXIT_SUCCESS",
|
161
|
-
"RAND_MAX",
|
162
|
-
"EOF",
|
163
|
-
"SEEK_SET",
|
164
|
-
"SEEK_CUR",
|
165
|
-
"SEEK_END",
|
166
|
-
"_IOFBF",
|
167
|
-
"_IONBF",
|
168
|
-
"_IOLBF",
|
169
|
-
"BUFSIZ",
|
170
|
-
"FOPEN_MAX",
|
171
|
-
"FILENAME_MAX",
|
172
|
-
"L_tmpnam",
|
173
|
-
"TMP_MAX",
|
174
|
-
"O_RDONLY",
|
175
|
-
"O_WRONLY",
|
176
|
-
"O_RDWR",
|
177
|
-
"O_APPEND",
|
178
|
-
"O_CREAT",
|
179
|
-
"O_EXCL",
|
180
|
-
"O_TRUNC",
|
181
|
-
"S_IFIFO",
|
182
|
-
"S_IFCHR",
|
183
|
-
"S_IFBLK",
|
184
|
-
"S_IFDIR",
|
185
|
-
"S_IFREG",
|
186
|
-
"S_IFMT",
|
187
|
-
"S_IEXEC",
|
188
|
-
"S_IWRITE",
|
189
|
-
"S_IREAD",
|
190
|
-
"S_IRWXU",
|
191
|
-
"S_IXUSR",
|
192
|
-
"S_IWUSR",
|
193
|
-
"S_IRUSR",
|
194
|
-
"F_OK",
|
195
|
-
"R_OK",
|
196
|
-
"W_OK",
|
197
|
-
"X_OK",
|
198
|
-
"STDIN_FILENO",
|
199
|
-
"STDOUT_FILENO",
|
200
|
-
"STDERR_FILENO"
|
201
|
-
],
|
202
|
-
supportMacros: [
|
203
|
-
"format!",
|
204
|
-
"print!",
|
205
|
-
"println!",
|
206
|
-
"panic!",
|
207
|
-
"format_args!",
|
208
|
-
"unreachable!",
|
209
|
-
"write!",
|
210
|
-
"writeln!"
|
211
|
-
],
|
212
|
-
operators: [
|
213
|
-
"!",
|
214
|
-
"!=",
|
215
|
-
"%",
|
216
|
-
"%=",
|
217
|
-
"&",
|
218
|
-
"&=",
|
219
|
-
"&&",
|
220
|
-
"*",
|
221
|
-
"*=",
|
222
|
-
"+",
|
223
|
-
"+=",
|
224
|
-
"-",
|
225
|
-
"-=",
|
226
|
-
"->",
|
227
|
-
".",
|
228
|
-
"..",
|
229
|
-
"...",
|
230
|
-
"/",
|
231
|
-
"/=",
|
232
|
-
":",
|
233
|
-
";",
|
234
|
-
"<<",
|
235
|
-
"<<=",
|
236
|
-
"<",
|
237
|
-
"<=",
|
238
|
-
"=",
|
239
|
-
"==",
|
240
|
-
"=>",
|
241
|
-
">",
|
242
|
-
">=",
|
243
|
-
">>",
|
244
|
-
">>=",
|
245
|
-
"@",
|
246
|
-
"^",
|
247
|
-
"^=",
|
248
|
-
"|",
|
249
|
-
"|=",
|
250
|
-
"||",
|
251
|
-
"_",
|
252
|
-
"?",
|
253
|
-
"#"
|
254
|
-
],
|
255
|
-
escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
|
256
|
-
delimiters: /[,]/,
|
257
|
-
symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
|
258
|
-
intSuffixes: /[iu](8|16|32|64|128|size)/,
|
259
|
-
floatSuffixes: /f(32|64)/,
|
260
|
-
tokenizer: {
|
261
|
-
root: [
|
262
|
-
[/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
|
263
|
-
[
|
264
|
-
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
265
|
-
{
|
266
|
-
cases: {
|
267
|
-
"@typeKeywords": "keyword.type",
|
268
|
-
"@keywords": "keyword",
|
269
|
-
"@supportConstants": "keyword",
|
270
|
-
"@supportMacros": "keyword",
|
271
|
-
"@constants": "keyword",
|
272
|
-
"@default": "identifier"
|
273
|
-
}
|
274
|
-
}
|
275
|
-
],
|
276
|
-
[/\$/, "identifier"],
|
277
|
-
[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
|
278
|
-
[/'(\S|@escapes)'/, "string.byteliteral"],
|
279
|
-
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
280
|
-
{ include: "@numbers" },
|
281
|
-
{ include: "@whitespace" },
|
282
|
-
[
|
283
|
-
/@delimiters/,
|
284
|
-
{
|
285
|
-
cases: {
|
286
|
-
"@keywords": "keyword",
|
287
|
-
"@default": "delimiter"
|
288
|
-
}
|
289
|
-
}
|
290
|
-
],
|
291
|
-
[/[{}()\[\]<>]/, "@brackets"],
|
292
|
-
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }]
|
293
|
-
],
|
294
|
-
whitespace: [
|
295
|
-
[/[ \t\r\n]+/, "white"],
|
296
|
-
[/\/\*/, "comment", "@comment"],
|
297
|
-
[/\/\/.*$/, "comment"]
|
298
|
-
],
|
299
|
-
comment: [
|
300
|
-
[/[^\/*]+/, "comment"],
|
301
|
-
[/\/\*/, "comment", "@push"],
|
302
|
-
["\\*/", "comment", "@pop"],
|
303
|
-
[/[\/*]/, "comment"]
|
304
|
-
],
|
305
|
-
string: [
|
306
|
-
[/[^\\"]+/, "string"],
|
307
|
-
[/@escapes/, "string.escape"],
|
308
|
-
[/\\./, "string.escape.invalid"],
|
309
|
-
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
310
|
-
],
|
311
|
-
stringraw: [
|
312
|
-
[/[^"#]+/, { token: "string" }],
|
313
|
-
[
|
314
|
-
/"(#*)/,
|
315
|
-
{
|
316
|
-
cases: {
|
317
|
-
"$1==$S2": { token: "string.quote", bracket: "@close", next: "@pop" },
|
318
|
-
"@default": { token: "string" }
|
319
|
-
}
|
320
|
-
}
|
321
|
-
],
|
322
|
-
[/["#]/, { token: "string" }]
|
323
|
-
],
|
324
|
-
numbers: [
|
325
|
-
[/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
|
326
|
-
[/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
|
327
|
-
[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
|
328
|
-
[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
|
329
|
-
[/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
|
330
|
-
[/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
|
331
|
-
]
|
332
|
-
}
|
333
|
-
};
|
334
|
-
export {
|
335
|
-
e as conf,
|
336
|
-
t as language
|
337
|
-
};
|
package/scala-c68c650c.mjs
DELETED
@@ -1,353 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
-
* Released under the MIT license
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/
|
7
|
-
var e = {
|
8
|
-
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
9
|
-
comments: {
|
10
|
-
lineComment: "//",
|
11
|
-
blockComment: ["/*", "*/"]
|
12
|
-
},
|
13
|
-
brackets: [
|
14
|
-
["{", "}"],
|
15
|
-
["[", "]"],
|
16
|
-
["(", ")"]
|
17
|
-
],
|
18
|
-
autoClosingPairs: [
|
19
|
-
{ open: "{", close: "}" },
|
20
|
-
{ open: "[", close: "]" },
|
21
|
-
{ open: "(", close: ")" },
|
22
|
-
{ open: '"', close: '"' },
|
23
|
-
{ open: "'", close: "'" }
|
24
|
-
],
|
25
|
-
surroundingPairs: [
|
26
|
-
{ open: "{", close: "}" },
|
27
|
-
{ open: "[", close: "]" },
|
28
|
-
{ open: "(", close: ")" },
|
29
|
-
{ open: '"', close: '"' },
|
30
|
-
{ open: "'", close: "'" }
|
31
|
-
],
|
32
|
-
folding: {
|
33
|
-
markers: {
|
34
|
-
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
35
|
-
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}, t = {
|
39
|
-
tokenPostfix: ".scala",
|
40
|
-
keywords: [
|
41
|
-
"asInstanceOf",
|
42
|
-
"catch",
|
43
|
-
"class",
|
44
|
-
"classOf",
|
45
|
-
"def",
|
46
|
-
"do",
|
47
|
-
"else",
|
48
|
-
"extends",
|
49
|
-
"finally",
|
50
|
-
"for",
|
51
|
-
"foreach",
|
52
|
-
"forSome",
|
53
|
-
"if",
|
54
|
-
"import",
|
55
|
-
"isInstanceOf",
|
56
|
-
"macro",
|
57
|
-
"match",
|
58
|
-
"new",
|
59
|
-
"object",
|
60
|
-
"package",
|
61
|
-
"return",
|
62
|
-
"throw",
|
63
|
-
"trait",
|
64
|
-
"try",
|
65
|
-
"type",
|
66
|
-
"until",
|
67
|
-
"val",
|
68
|
-
"var",
|
69
|
-
"while",
|
70
|
-
"with",
|
71
|
-
"yield",
|
72
|
-
"given",
|
73
|
-
"enum",
|
74
|
-
"then"
|
75
|
-
],
|
76
|
-
softKeywords: ["as", "export", "extension", "end", "derives", "on"],
|
77
|
-
constants: ["true", "false", "null", "this", "super"],
|
78
|
-
modifiers: [
|
79
|
-
"abstract",
|
80
|
-
"final",
|
81
|
-
"implicit",
|
82
|
-
"lazy",
|
83
|
-
"override",
|
84
|
-
"private",
|
85
|
-
"protected",
|
86
|
-
"sealed"
|
87
|
-
],
|
88
|
-
softModifiers: ["inline", "opaque", "open", "transparent", "using"],
|
89
|
-
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
90
|
-
type: /(?:[A-Z][\w$]*)/,
|
91
|
-
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
92
|
-
digits: /\d+(_+\d+)*/,
|
93
|
-
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
94
|
-
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
95
|
-
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
96
|
-
tokenizer: {
|
97
|
-
root: [
|
98
|
-
[/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
|
99
|
-
[/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
|
100
|
-
[/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
|
101
|
-
[/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
|
102
|
-
[/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
|
103
|
-
[/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
|
104
|
-
[/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
|
105
|
-
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
106
|
-
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
107
|
-
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
108
|
-
[/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
|
109
|
-
[/(@digits)[fFdD]/, "number.float", "@allowMethod"],
|
110
|
-
[/(@digits)[lL]?/, "number", "@allowMethod"],
|
111
|
-
[/\b_\*/, "key"],
|
112
|
-
[/\b(_)\b/, "keyword", "@allowMethod"],
|
113
|
-
[/\bimport\b/, "keyword", "@import"],
|
114
|
-
[/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
|
115
|
-
[/\bcase\b/, "keyword", "@case"],
|
116
|
-
[/\bva[lr]\b/, "keyword", "@vardef"],
|
117
|
-
[
|
118
|
-
/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
|
119
|
-
["keyword", "white", "identifier"]
|
120
|
-
],
|
121
|
-
[/@name(?=[ \t]*:(?!:))/, "variable"],
|
122
|
-
[/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
|
123
|
-
[/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
|
124
|
-
[
|
125
|
-
/@name/,
|
126
|
-
{
|
127
|
-
cases: {
|
128
|
-
"@keywords": "keyword",
|
129
|
-
"@softKeywords": "keyword",
|
130
|
-
"@modifiers": "keyword.modifier",
|
131
|
-
"@softModifiers": "keyword.modifier",
|
132
|
-
"@constants": {
|
133
|
-
token: "constant",
|
134
|
-
next: "@allowMethod"
|
135
|
-
},
|
136
|
-
"@default": {
|
137
|
-
token: "identifier",
|
138
|
-
next: "@allowMethod"
|
139
|
-
}
|
140
|
-
}
|
141
|
-
}
|
142
|
-
],
|
143
|
-
[/@type/, "type", "@allowMethod"],
|
144
|
-
{ include: "@whitespace" },
|
145
|
-
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
|
146
|
-
[/[{(]/, "@brackets"],
|
147
|
-
[/[})]/, "@brackets", "@allowMethod"],
|
148
|
-
[/\[/, "operator.square"],
|
149
|
-
[/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
|
150
|
-
[/]/, "operator.square"],
|
151
|
-
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
|
152
|
-
[/@symbols/, "operator"],
|
153
|
-
[/[;,\.]/, "delimiter"],
|
154
|
-
[/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
|
155
|
-
[/'[^\\']'/, "string", "@allowMethod"],
|
156
|
-
[/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
|
157
|
-
[/'/, "string.invalid"]
|
158
|
-
],
|
159
|
-
import: [
|
160
|
-
[/;/, "delimiter", "@pop"],
|
161
|
-
[/^|$/, "", "@pop"],
|
162
|
-
[/[ \t]+/, "white"],
|
163
|
-
[/[\n\r]+/, "white", "@pop"],
|
164
|
-
[/\/\*/, "comment", "@comment"],
|
165
|
-
[/@name|@type/, "type"],
|
166
|
-
[/[(){}]/, "@brackets"],
|
167
|
-
[/[[\]]/, "operator.square"],
|
168
|
-
[/[\.,]/, "delimiter"]
|
169
|
-
],
|
170
|
-
allowMethod: [
|
171
|
-
[/^|$/, "", "@pop"],
|
172
|
-
[/[ \t]+/, "white"],
|
173
|
-
[/[\n\r]+/, "white", "@pop"],
|
174
|
-
[/\/\*/, "comment", "@comment"],
|
175
|
-
[/(?==>[\s\w([{])/, "keyword", "@pop"],
|
176
|
-
[
|
177
|
-
/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
|
178
|
-
{
|
179
|
-
cases: {
|
180
|
-
"@keywords": { token: "keyword", next: "@pop" },
|
181
|
-
"->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
|
182
|
-
"@default": { token: "@rematch", next: "@pop" }
|
183
|
-
}
|
184
|
-
}
|
185
|
-
],
|
186
|
-
["", "", "@pop"]
|
187
|
-
],
|
188
|
-
comment: [
|
189
|
-
[/[^\/*]+/, "comment"],
|
190
|
-
[/\/\*/, "comment", "@push"],
|
191
|
-
[/\*\//, "comment", "@pop"],
|
192
|
-
[/[\/*]/, "comment"]
|
193
|
-
],
|
194
|
-
case: [
|
195
|
-
[/\b_\*/, "key"],
|
196
|
-
[/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
|
197
|
-
[/\bif\b|=>/, "keyword", "@pop"],
|
198
|
-
[/`[^`]+`/, "identifier", "@allowMethod"],
|
199
|
-
[/@name/, "variable", "@allowMethod"],
|
200
|
-
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
201
|
-
{ include: "@root" }
|
202
|
-
],
|
203
|
-
vardef: [
|
204
|
-
[/\b_\*/, "key"],
|
205
|
-
[/\b(_|true|false|null|this|super)\b/, "keyword"],
|
206
|
-
[/@name/, "variable"],
|
207
|
-
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
208
|
-
[/=|:(?!:)/, "operator", "@pop"],
|
209
|
-
[/$/, "white", "@pop"],
|
210
|
-
{ include: "@root" }
|
211
|
-
],
|
212
|
-
string: [
|
213
|
-
[/[^\\"\n\r]+/, "string"],
|
214
|
-
[/@escapes/, "string.escape"],
|
215
|
-
[/\\./, "string.escape.invalid"],
|
216
|
-
[
|
217
|
-
/"/,
|
218
|
-
{
|
219
|
-
token: "string.quote",
|
220
|
-
bracket: "@close",
|
221
|
-
switchTo: "@allowMethod"
|
222
|
-
}
|
223
|
-
]
|
224
|
-
],
|
225
|
-
stringt: [
|
226
|
-
[/[^\\"\n\r]+/, "string"],
|
227
|
-
[/@escapes/, "string.escape"],
|
228
|
-
[/\\./, "string.escape.invalid"],
|
229
|
-
[/"(?=""")/, "string"],
|
230
|
-
[
|
231
|
-
/"""/,
|
232
|
-
{
|
233
|
-
token: "string.quote",
|
234
|
-
bracket: "@close",
|
235
|
-
switchTo: "@allowMethod"
|
236
|
-
}
|
237
|
-
],
|
238
|
-
[/"/, "string"]
|
239
|
-
],
|
240
|
-
fstring: [
|
241
|
-
[/@escapes/, "string.escape"],
|
242
|
-
[
|
243
|
-
/"/,
|
244
|
-
{
|
245
|
-
token: "string.quote",
|
246
|
-
bracket: "@close",
|
247
|
-
switchTo: "@allowMethod"
|
248
|
-
}
|
249
|
-
],
|
250
|
-
[/\$\$/, "string"],
|
251
|
-
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
252
|
-
[/\$\{/, "operator", "@interp"],
|
253
|
-
[/%%/, "string"],
|
254
|
-
[
|
255
|
-
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
256
|
-
["metatag", "keyword.modifier", "number", "metatag"]
|
257
|
-
],
|
258
|
-
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
259
|
-
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
260
|
-
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
261
|
-
[/./, "string"]
|
262
|
-
],
|
263
|
-
fstringt: [
|
264
|
-
[/@escapes/, "string.escape"],
|
265
|
-
[/"(?=""")/, "string"],
|
266
|
-
[
|
267
|
-
/"""/,
|
268
|
-
{
|
269
|
-
token: "string.quote",
|
270
|
-
bracket: "@close",
|
271
|
-
switchTo: "@allowMethod"
|
272
|
-
}
|
273
|
-
],
|
274
|
-
[/\$\$/, "string"],
|
275
|
-
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
276
|
-
[/\$\{/, "operator", "@interp"],
|
277
|
-
[/%%/, "string"],
|
278
|
-
[
|
279
|
-
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
280
|
-
["metatag", "keyword.modifier", "number", "metatag"]
|
281
|
-
],
|
282
|
-
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
283
|
-
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
284
|
-
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
285
|
-
[/./, "string"]
|
286
|
-
],
|
287
|
-
sstring: [
|
288
|
-
[/@escapes/, "string.escape"],
|
289
|
-
[
|
290
|
-
/"/,
|
291
|
-
{
|
292
|
-
token: "string.quote",
|
293
|
-
bracket: "@close",
|
294
|
-
switchTo: "@allowMethod"
|
295
|
-
}
|
296
|
-
],
|
297
|
-
[/\$\$/, "string"],
|
298
|
-
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
299
|
-
[/\$\{/, "operator", "@interp"],
|
300
|
-
[/./, "string"]
|
301
|
-
],
|
302
|
-
sstringt: [
|
303
|
-
[/@escapes/, "string.escape"],
|
304
|
-
[/"(?=""")/, "string"],
|
305
|
-
[
|
306
|
-
/"""/,
|
307
|
-
{
|
308
|
-
token: "string.quote",
|
309
|
-
bracket: "@close",
|
310
|
-
switchTo: "@allowMethod"
|
311
|
-
}
|
312
|
-
],
|
313
|
-
[/\$\$/, "string"],
|
314
|
-
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
315
|
-
[/\$\{/, "operator", "@interp"],
|
316
|
-
[/./, "string"]
|
317
|
-
],
|
318
|
-
interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
|
319
|
-
rawstring: [
|
320
|
-
[/[^"]/, "string"],
|
321
|
-
[
|
322
|
-
/"/,
|
323
|
-
{
|
324
|
-
token: "string.quote",
|
325
|
-
bracket: "@close",
|
326
|
-
switchTo: "@allowMethod"
|
327
|
-
}
|
328
|
-
]
|
329
|
-
],
|
330
|
-
rawstringt: [
|
331
|
-
[/[^"]/, "string"],
|
332
|
-
[/"(?=""")/, "string"],
|
333
|
-
[
|
334
|
-
/"""/,
|
335
|
-
{
|
336
|
-
token: "string.quote",
|
337
|
-
bracket: "@close",
|
338
|
-
switchTo: "@allowMethod"
|
339
|
-
}
|
340
|
-
],
|
341
|
-
[/"/, "string"]
|
342
|
-
],
|
343
|
-
whitespace: [
|
344
|
-
[/[ \t\r\n]+/, "white"],
|
345
|
-
[/\/\*/, "comment", "@comment"],
|
346
|
-
[/\/\/.*$/, "comment"]
|
347
|
-
]
|
348
|
-
}
|
349
|
-
};
|
350
|
-
export {
|
351
|
-
e as conf,
|
352
|
-
t as language
|
353
|
-
};
|