@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/csharp-d987ddad.mjs
DELETED
@@ -1,320 +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: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/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: "'", notIn: ["string", "comment"] },
|
23
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
24
|
-
],
|
25
|
-
surroundingPairs: [
|
26
|
-
{ open: "{", close: "}" },
|
27
|
-
{ open: "[", close: "]" },
|
28
|
-
{ open: "(", close: ")" },
|
29
|
-
{ open: "<", close: ">" },
|
30
|
-
{ open: "'", close: "'" },
|
31
|
-
{ open: '"', close: '"' }
|
32
|
-
],
|
33
|
-
folding: {
|
34
|
-
markers: {
|
35
|
-
start: new RegExp("^\\s*#region\\b"),
|
36
|
-
end: new RegExp("^\\s*#endregion\\b")
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}, t = {
|
40
|
-
defaultToken: "",
|
41
|
-
tokenPostfix: ".cs",
|
42
|
-
brackets: [
|
43
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
44
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
45
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
46
|
-
{ open: "<", close: ">", token: "delimiter.angle" }
|
47
|
-
],
|
48
|
-
keywords: [
|
49
|
-
"extern",
|
50
|
-
"alias",
|
51
|
-
"using",
|
52
|
-
"bool",
|
53
|
-
"decimal",
|
54
|
-
"sbyte",
|
55
|
-
"byte",
|
56
|
-
"short",
|
57
|
-
"ushort",
|
58
|
-
"int",
|
59
|
-
"uint",
|
60
|
-
"long",
|
61
|
-
"ulong",
|
62
|
-
"char",
|
63
|
-
"float",
|
64
|
-
"double",
|
65
|
-
"object",
|
66
|
-
"dynamic",
|
67
|
-
"string",
|
68
|
-
"assembly",
|
69
|
-
"is",
|
70
|
-
"as",
|
71
|
-
"ref",
|
72
|
-
"out",
|
73
|
-
"this",
|
74
|
-
"base",
|
75
|
-
"new",
|
76
|
-
"typeof",
|
77
|
-
"void",
|
78
|
-
"checked",
|
79
|
-
"unchecked",
|
80
|
-
"default",
|
81
|
-
"delegate",
|
82
|
-
"var",
|
83
|
-
"const",
|
84
|
-
"if",
|
85
|
-
"else",
|
86
|
-
"switch",
|
87
|
-
"case",
|
88
|
-
"while",
|
89
|
-
"do",
|
90
|
-
"for",
|
91
|
-
"foreach",
|
92
|
-
"in",
|
93
|
-
"break",
|
94
|
-
"continue",
|
95
|
-
"goto",
|
96
|
-
"return",
|
97
|
-
"throw",
|
98
|
-
"try",
|
99
|
-
"catch",
|
100
|
-
"finally",
|
101
|
-
"lock",
|
102
|
-
"yield",
|
103
|
-
"from",
|
104
|
-
"let",
|
105
|
-
"where",
|
106
|
-
"join",
|
107
|
-
"on",
|
108
|
-
"equals",
|
109
|
-
"into",
|
110
|
-
"orderby",
|
111
|
-
"ascending",
|
112
|
-
"descending",
|
113
|
-
"select",
|
114
|
-
"group",
|
115
|
-
"by",
|
116
|
-
"namespace",
|
117
|
-
"partial",
|
118
|
-
"class",
|
119
|
-
"field",
|
120
|
-
"event",
|
121
|
-
"method",
|
122
|
-
"param",
|
123
|
-
"public",
|
124
|
-
"protected",
|
125
|
-
"internal",
|
126
|
-
"private",
|
127
|
-
"abstract",
|
128
|
-
"sealed",
|
129
|
-
"static",
|
130
|
-
"struct",
|
131
|
-
"readonly",
|
132
|
-
"volatile",
|
133
|
-
"virtual",
|
134
|
-
"override",
|
135
|
-
"params",
|
136
|
-
"get",
|
137
|
-
"set",
|
138
|
-
"add",
|
139
|
-
"remove",
|
140
|
-
"operator",
|
141
|
-
"true",
|
142
|
-
"false",
|
143
|
-
"implicit",
|
144
|
-
"explicit",
|
145
|
-
"interface",
|
146
|
-
"enum",
|
147
|
-
"null",
|
148
|
-
"async",
|
149
|
-
"await",
|
150
|
-
"fixed",
|
151
|
-
"sizeof",
|
152
|
-
"stackalloc",
|
153
|
-
"unsafe",
|
154
|
-
"nameof",
|
155
|
-
"when"
|
156
|
-
],
|
157
|
-
namespaceFollows: ["namespace", "using"],
|
158
|
-
parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
|
159
|
-
operators: [
|
160
|
-
"=",
|
161
|
-
"??",
|
162
|
-
"||",
|
163
|
-
"&&",
|
164
|
-
"|",
|
165
|
-
"^",
|
166
|
-
"&",
|
167
|
-
"==",
|
168
|
-
"!=",
|
169
|
-
"<=",
|
170
|
-
">=",
|
171
|
-
"<<",
|
172
|
-
"+",
|
173
|
-
"-",
|
174
|
-
"*",
|
175
|
-
"/",
|
176
|
-
"%",
|
177
|
-
"!",
|
178
|
-
"~",
|
179
|
-
"++",
|
180
|
-
"--",
|
181
|
-
"+=",
|
182
|
-
"-=",
|
183
|
-
"*=",
|
184
|
-
"/=",
|
185
|
-
"%=",
|
186
|
-
"&=",
|
187
|
-
"|=",
|
188
|
-
"^=",
|
189
|
-
"<<=",
|
190
|
-
">>=",
|
191
|
-
">>",
|
192
|
-
"=>"
|
193
|
-
],
|
194
|
-
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
195
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
196
|
-
tokenizer: {
|
197
|
-
root: [
|
198
|
-
[
|
199
|
-
/\@?[a-zA-Z_]\w*/,
|
200
|
-
{
|
201
|
-
cases: {
|
202
|
-
"@namespaceFollows": {
|
203
|
-
token: "keyword.$0",
|
204
|
-
next: "@namespace"
|
205
|
-
},
|
206
|
-
"@keywords": {
|
207
|
-
token: "keyword.$0",
|
208
|
-
next: "@qualified"
|
209
|
-
},
|
210
|
-
"@default": { token: "identifier", next: "@qualified" }
|
211
|
-
}
|
212
|
-
}
|
213
|
-
],
|
214
|
-
{ include: "@whitespace" },
|
215
|
-
[
|
216
|
-
/}/,
|
217
|
-
{
|
218
|
-
cases: {
|
219
|
-
"$S2==interpolatedstring": {
|
220
|
-
token: "string.quote",
|
221
|
-
next: "@pop"
|
222
|
-
},
|
223
|
-
"$S2==litinterpstring": {
|
224
|
-
token: "string.quote",
|
225
|
-
next: "@pop"
|
226
|
-
},
|
227
|
-
"@default": "@brackets"
|
228
|
-
}
|
229
|
-
}
|
230
|
-
],
|
231
|
-
[/[{}()\[\]]/, "@brackets"],
|
232
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
233
|
-
[
|
234
|
-
/@symbols/,
|
235
|
-
{
|
236
|
-
cases: {
|
237
|
-
"@operators": "delimiter",
|
238
|
-
"@default": ""
|
239
|
-
}
|
240
|
-
}
|
241
|
-
],
|
242
|
-
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
|
243
|
-
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
244
|
-
[/0[bB][01_]+/, "number.hex"],
|
245
|
-
[/[0-9_]+/, "number"],
|
246
|
-
[/[;,.]/, "delimiter"],
|
247
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
248
|
-
[/"/, { token: "string.quote", next: "@string" }],
|
249
|
-
[/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
|
250
|
-
[/\@"/, { token: "string.quote", next: "@litstring" }],
|
251
|
-
[/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
|
252
|
-
[/'[^\\']'/, "string"],
|
253
|
-
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
254
|
-
[/'/, "string.invalid"]
|
255
|
-
],
|
256
|
-
qualified: [
|
257
|
-
[
|
258
|
-
/[a-zA-Z_][\w]*/,
|
259
|
-
{
|
260
|
-
cases: {
|
261
|
-
"@keywords": { token: "keyword.$0" },
|
262
|
-
"@default": "identifier"
|
263
|
-
}
|
264
|
-
}
|
265
|
-
],
|
266
|
-
[/\./, "delimiter"],
|
267
|
-
["", "", "@pop"]
|
268
|
-
],
|
269
|
-
namespace: [
|
270
|
-
{ include: "@whitespace" },
|
271
|
-
[/[A-Z]\w*/, "namespace"],
|
272
|
-
[/[\.=]/, "delimiter"],
|
273
|
-
["", "", "@pop"]
|
274
|
-
],
|
275
|
-
comment: [
|
276
|
-
[/[^\/*]+/, "comment"],
|
277
|
-
["\\*/", "comment", "@pop"],
|
278
|
-
[/[\/*]/, "comment"]
|
279
|
-
],
|
280
|
-
string: [
|
281
|
-
[/[^\\"]+/, "string"],
|
282
|
-
[/@escapes/, "string.escape"],
|
283
|
-
[/\\./, "string.escape.invalid"],
|
284
|
-
[/"/, { token: "string.quote", next: "@pop" }]
|
285
|
-
],
|
286
|
-
litstring: [
|
287
|
-
[/[^"]+/, "string"],
|
288
|
-
[/""/, "string.escape"],
|
289
|
-
[/"/, { token: "string.quote", next: "@pop" }]
|
290
|
-
],
|
291
|
-
litinterpstring: [
|
292
|
-
[/[^"{]+/, "string"],
|
293
|
-
[/""/, "string.escape"],
|
294
|
-
[/{{/, "string.escape"],
|
295
|
-
[/}}/, "string.escape"],
|
296
|
-
[/{/, { token: "string.quote", next: "root.litinterpstring" }],
|
297
|
-
[/"/, { token: "string.quote", next: "@pop" }]
|
298
|
-
],
|
299
|
-
interpolatedstring: [
|
300
|
-
[/[^\\"{]+/, "string"],
|
301
|
-
[/@escapes/, "string.escape"],
|
302
|
-
[/\\./, "string.escape.invalid"],
|
303
|
-
[/{{/, "string.escape"],
|
304
|
-
[/}}/, "string.escape"],
|
305
|
-
[/{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
306
|
-
[/"/, { token: "string.quote", next: "@pop" }]
|
307
|
-
],
|
308
|
-
whitespace: [
|
309
|
-
[/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
|
310
|
-
[/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
|
311
|
-
[/[ \t\v\f\r\n]+/, ""],
|
312
|
-
[/\/\*/, "comment", "@comment"],
|
313
|
-
[/\/\/.*$/, "comment"]
|
314
|
-
]
|
315
|
-
}
|
316
|
-
};
|
317
|
-
export {
|
318
|
-
e as conf,
|
319
|
-
t as language
|
320
|
-
};
|
package/dart-031264ea.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
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
|
-
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},n={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}};exports.conf=e;exports.language=n;
|
package/dart-5d209f63.mjs
DELETED
@@ -1,270 +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", "comment"] },
|
22
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
23
|
-
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
24
|
-
{ open: "/**", close: " */", notIn: ["string"] }
|
25
|
-
],
|
26
|
-
surroundingPairs: [
|
27
|
-
{ open: "{", close: "}" },
|
28
|
-
{ open: "[", close: "]" },
|
29
|
-
{ open: "(", close: ")" },
|
30
|
-
{ open: "<", close: ">" },
|
31
|
-
{ open: "'", close: "'" },
|
32
|
-
{ open: "(", close: ")" },
|
33
|
-
{ open: '"', close: '"' },
|
34
|
-
{ open: "`", close: "`" }
|
35
|
-
],
|
36
|
-
folding: {
|
37
|
-
markers: {
|
38
|
-
start: /^\s*\s*#?region\b/,
|
39
|
-
end: /^\s*\s*#?endregion\b/
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}, n = {
|
43
|
-
defaultToken: "invalid",
|
44
|
-
tokenPostfix: ".dart",
|
45
|
-
keywords: [
|
46
|
-
"abstract",
|
47
|
-
"dynamic",
|
48
|
-
"implements",
|
49
|
-
"show",
|
50
|
-
"as",
|
51
|
-
"else",
|
52
|
-
"import",
|
53
|
-
"static",
|
54
|
-
"assert",
|
55
|
-
"enum",
|
56
|
-
"in",
|
57
|
-
"super",
|
58
|
-
"async",
|
59
|
-
"export",
|
60
|
-
"interface",
|
61
|
-
"switch",
|
62
|
-
"await",
|
63
|
-
"extends",
|
64
|
-
"is",
|
65
|
-
"sync",
|
66
|
-
"break",
|
67
|
-
"external",
|
68
|
-
"library",
|
69
|
-
"this",
|
70
|
-
"case",
|
71
|
-
"factory",
|
72
|
-
"mixin",
|
73
|
-
"throw",
|
74
|
-
"catch",
|
75
|
-
"false",
|
76
|
-
"new",
|
77
|
-
"true",
|
78
|
-
"class",
|
79
|
-
"final",
|
80
|
-
"null",
|
81
|
-
"try",
|
82
|
-
"const",
|
83
|
-
"finally",
|
84
|
-
"on",
|
85
|
-
"typedef",
|
86
|
-
"continue",
|
87
|
-
"for",
|
88
|
-
"operator",
|
89
|
-
"var",
|
90
|
-
"covariant",
|
91
|
-
"Function",
|
92
|
-
"part",
|
93
|
-
"void",
|
94
|
-
"default",
|
95
|
-
"get",
|
96
|
-
"rethrow",
|
97
|
-
"while",
|
98
|
-
"deferred",
|
99
|
-
"hide",
|
100
|
-
"return",
|
101
|
-
"with",
|
102
|
-
"do",
|
103
|
-
"if",
|
104
|
-
"set",
|
105
|
-
"yield"
|
106
|
-
],
|
107
|
-
typeKeywords: ["int", "double", "String", "bool"],
|
108
|
-
operators: [
|
109
|
-
"+",
|
110
|
-
"-",
|
111
|
-
"*",
|
112
|
-
"/",
|
113
|
-
"~/",
|
114
|
-
"%",
|
115
|
-
"++",
|
116
|
-
"--",
|
117
|
-
"==",
|
118
|
-
"!=",
|
119
|
-
">",
|
120
|
-
"<",
|
121
|
-
">=",
|
122
|
-
"<=",
|
123
|
-
"=",
|
124
|
-
"-=",
|
125
|
-
"/=",
|
126
|
-
"%=",
|
127
|
-
">>=",
|
128
|
-
"^=",
|
129
|
-
"+=",
|
130
|
-
"*=",
|
131
|
-
"~/=",
|
132
|
-
"<<=",
|
133
|
-
"&=",
|
134
|
-
"!=",
|
135
|
-
"||",
|
136
|
-
"&&",
|
137
|
-
"&",
|
138
|
-
"|",
|
139
|
-
"^",
|
140
|
-
"~",
|
141
|
-
"<<",
|
142
|
-
">>",
|
143
|
-
"!",
|
144
|
-
">>>",
|
145
|
-
"??",
|
146
|
-
"?",
|
147
|
-
":",
|
148
|
-
"|="
|
149
|
-
],
|
150
|
-
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
151
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
152
|
-
digits: /\d+(_+\d+)*/,
|
153
|
-
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
154
|
-
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
155
|
-
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
156
|
-
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
157
|
-
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
158
|
-
tokenizer: {
|
159
|
-
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
160
|
-
common: [
|
161
|
-
[
|
162
|
-
/[a-z_$][\w$]*/,
|
163
|
-
{
|
164
|
-
cases: {
|
165
|
-
"@typeKeywords": "type.identifier",
|
166
|
-
"@keywords": "keyword",
|
167
|
-
"@default": "identifier"
|
168
|
-
}
|
169
|
-
}
|
170
|
-
],
|
171
|
-
[/[A-Z_$][\w\$]*/, "type.identifier"],
|
172
|
-
{ include: "@whitespace" },
|
173
|
-
[
|
174
|
-
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
175
|
-
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
176
|
-
],
|
177
|
-
[/@[a-zA-Z]+/, "annotation"],
|
178
|
-
[/[()\[\]]/, "@brackets"],
|
179
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
180
|
-
[/!(?=([^=]|$))/, "delimiter"],
|
181
|
-
[
|
182
|
-
/@symbols/,
|
183
|
-
{
|
184
|
-
cases: {
|
185
|
-
"@operators": "delimiter",
|
186
|
-
"@default": ""
|
187
|
-
}
|
188
|
-
}
|
189
|
-
],
|
190
|
-
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
191
|
-
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
192
|
-
[/0[xX](@hexdigits)n?/, "number.hex"],
|
193
|
-
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
194
|
-
[/0[bB](@binarydigits)n?/, "number.binary"],
|
195
|
-
[/(@digits)n?/, "number"],
|
196
|
-
[/[;,.]/, "delimiter"],
|
197
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
198
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
199
|
-
[/"/, "string", "@string_double"],
|
200
|
-
[/'/, "string", "@string_single"]
|
201
|
-
],
|
202
|
-
whitespace: [
|
203
|
-
[/[ \t\r\n]+/, ""],
|
204
|
-
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
205
|
-
[/\/\*/, "comment", "@comment"],
|
206
|
-
[/\/\/\/.*$/, "comment.doc"],
|
207
|
-
[/\/\/.*$/, "comment"]
|
208
|
-
],
|
209
|
-
comment: [
|
210
|
-
[/[^\/*]+/, "comment"],
|
211
|
-
[/\*\//, "comment", "@pop"],
|
212
|
-
[/[\/*]/, "comment"]
|
213
|
-
],
|
214
|
-
jsdoc: [
|
215
|
-
[/[^\/*]+/, "comment.doc"],
|
216
|
-
[/\*\//, "comment.doc", "@pop"],
|
217
|
-
[/[\/*]/, "comment.doc"]
|
218
|
-
],
|
219
|
-
regexp: [
|
220
|
-
[
|
221
|
-
/(\{)(\d+(?:,\d*)?)(\})/,
|
222
|
-
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
223
|
-
],
|
224
|
-
[
|
225
|
-
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
226
|
-
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
227
|
-
],
|
228
|
-
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
229
|
-
[/[()]/, "regexp.escape.control"],
|
230
|
-
[/@regexpctl/, "regexp.escape.control"],
|
231
|
-
[/[^\\\/]/, "regexp"],
|
232
|
-
[/@regexpesc/, "regexp.escape"],
|
233
|
-
[/\\\./, "regexp.invalid"],
|
234
|
-
[/(\/)([gimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
235
|
-
],
|
236
|
-
regexrange: [
|
237
|
-
[/-/, "regexp.escape.control"],
|
238
|
-
[/\^/, "regexp.invalid"],
|
239
|
-
[/@regexpesc/, "regexp.escape"],
|
240
|
-
[/[^\]]/, "regexp"],
|
241
|
-
[
|
242
|
-
/\]/,
|
243
|
-
{
|
244
|
-
token: "regexp.escape.control",
|
245
|
-
next: "@pop",
|
246
|
-
bracket: "@close"
|
247
|
-
}
|
248
|
-
]
|
249
|
-
],
|
250
|
-
string_double: [
|
251
|
-
[/[^\\"\$]+/, "string"],
|
252
|
-
[/[^\\"]+/, "string"],
|
253
|
-
[/@escapes/, "string.escape"],
|
254
|
-
[/\\./, "string.escape.invalid"],
|
255
|
-
[/"/, "string", "@pop"],
|
256
|
-
[/\$\w+/, "identifier"]
|
257
|
-
],
|
258
|
-
string_single: [
|
259
|
-
[/[^\\'\$]+/, "string"],
|
260
|
-
[/@escapes/, "string.escape"],
|
261
|
-
[/\\./, "string.escape.invalid"],
|
262
|
-
[/'/, "string", "@pop"],
|
263
|
-
[/\$\w+/, "identifier"]
|
264
|
-
]
|
265
|
-
}
|
266
|
-
};
|
267
|
-
export {
|
268
|
-
e as conf,
|
269
|
-
n as language
|
270
|
-
};
|