@covalent/components 8.14.1 → 8.15.0-beta.10
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/action-ribbon.js +1 -1
- package/action-ribbon.mjs +4 -3
- package/alert.js +1 -1
- package/alert.mjs +4 -3
- package/app-shell.js +1 -1
- package/app-shell.mjs +8 -7
- package/async-directive-4a34f75e.js +5 -0
- package/async-directive-99a01ec7.mjs +78 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -3
- package/button.js +1 -1
- package/button.mjs +10 -9
- package/card.js +1 -1
- package/card.mjs +4 -3
- package/cell/cell.d.ts +65 -0
- package/cell/cell.d.ts.map +1 -0
- package/cell.js +29 -0
- package/cell.mjs +147 -0
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +8 -7
- package/checkbox.js +1 -1
- package/checkbox.mjs +16 -15
- package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
- package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
- package/chip-set.js +2 -2
- package/chip-set.mjs +46 -45
- package/chip.js +1 -1
- package/chip.mjs +5 -4
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +5 -4
- package/class-map-0a4c6ca9.js +5 -0
- package/class-map-6e504a9a.mjs +38 -0
- package/code-editor/code-editor.d.ts +73 -0
- package/code-editor/code-editor.d.ts.map +1 -0
- package/code-editor-3a09cbf1.js +732 -0
- package/code-editor-ce557bd5.mjs +61376 -0
- package/code-editor.js +1 -0
- package/code-editor.mjs +10 -0
- package/code-snippet.js +2 -2
- package/code-snippet.mjs +5 -4
- package/cpp-642b10c4.mjs +387 -0
- package/cpp-7eec3311.js +6 -0
- package/csharp-32862cd2.js +6 -0
- package/csharp-d987ddad.mjs +320 -0
- package/css-5dd354ac.mjs +186 -0
- package/css-9be95551.js +8 -0
- package/dart-031264ea.js +6 -0
- package/dart-5d209f63.mjs +270 -0
- package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
- package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
- package/dialog.js +1 -1
- package/dialog.mjs +5 -4
- package/directive-1186bc23.js +5 -0
- package/directive-daf4e9b6.mjs +27 -0
- package/drawer.js +1 -1
- package/drawer.mjs +5 -4
- package/formfield.js +3 -3
- package/formfield.mjs +4 -3
- package/go-46e3b371.mjs +208 -0
- package/go-cdd943fd.js +6 -0
- package/html-4fffc46e.js +6 -0
- package/html-783f1e7c.mjs +286 -0
- package/icon-button-toggle.js +1 -1
- package/icon-button-toggle.mjs +6 -5
- package/icon-button.js +1 -1
- package/icon-button.mjs +6 -5
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -6
- package/icon-radio-toggle.js +3 -3
- package/icon-radio-toggle.mjs +7 -6
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +125 -117
- package/java-32d7b433.js +6 -0
- package/java-cd017f60.mjs +221 -0
- package/javascript-4d09cd3c.mjs +80 -0
- package/javascript-90bb18e6.js +6 -0
- package/kotlin-4b9019e1.js +6 -0
- package/kotlin-c6e52a56.mjs +245 -0
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +5 -4
- package/list-item.js +2 -2
- package/list-item.mjs +7 -6
- package/list.js +1 -1
- package/list.mjs +8 -7
- package/lua-b46719a9.js +6 -0
- package/lua-f159160b.mjs +157 -0
- package/markdown-9b448c46.mjs +202 -0
- package/markdown-eae8e3ba.js +6 -0
- package/menu.js +5 -5
- package/menu.mjs +9 -8
- package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
- package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
- package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
- package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
- package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
- package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
- package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
- package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
- package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
- package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
- package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
- package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
- package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
- package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
- package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
- package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
- package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
- package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
- package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
- package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +7 -6
- package/notebook/notebook.d.ts +87 -0
- package/notebook/notebook.d.ts.map +1 -0
- package/notebook.js +121 -0
- package/notebook.mjs +3449 -0
- package/package.json +16 -1
- package/php-987b9d87.mjs +471 -0
- package/php-a6dcde52.js +6 -0
- package/python-562f8e9b.mjs +264 -0
- package/python-af3aad7d.js +6 -0
- package/r-42c6f0aa.js +6 -0
- package/r-630f5d6b.mjs +245 -0
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +8 -7
- package/radio.js +2 -2
- package/radio.mjs +7 -6
- package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
- package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
- package/rust-87887495.js +6 -0
- package/rust-97f8f6e1.mjs +337 -0
- package/scala-c68c650c.mjs +353 -0
- package/scala-e8b7bd42.js +6 -0
- package/select.js +2 -2
- package/select.mjs +11 -10
- package/shell-09452d42.mjs +224 -0
- package/shell-43cfbe7d.js +6 -0
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +3 -2
- package/slider-range.js +1 -1
- package/slider-range.mjs +7 -6
- package/slider.js +1 -1
- package/slider.mjs +12 -11
- package/snackbar.js +14 -18
- package/snackbar.mjs +88 -159
- package/sql-63ec8e76.mjs +818 -0
- package/sql-faf05577.js +6 -0
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -6
- package/status-header.js +1 -1
- package/status-header.mjs +4 -3
- package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
- package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
- package/style.css +1 -0
- package/swift-724ff2a3.js +8 -0
- package/swift-abdf1835.mjs +315 -0
- package/switch.js +1 -1
- package/switch.mjs +6 -5
- package/tab-bar.js +2 -2
- package/tab-bar.mjs +7 -6
- package/tab.js +1 -1
- package/tab.mjs +9 -8
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +4 -3
- package/textarea.js +1 -1
- package/textarea.mjs +6 -5
- package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
- package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
- package/textfield.js +1 -1
- package/textfield.mjs +6 -5
- package/toolbar.js +1 -1
- package/toolbar.mjs +5 -4
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +5 -4
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +8 -7
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -3
- package/typescript-76d039b3.js +6 -0
- package/typescript-a2a5d6b2.mjs +332 -0
- package/xml-89571455.mjs +100 -0
- package/xml-e66929d0.js +6 -0
- package/yaml-11a91e71.js +6 -0
- package/yaml-4eccd122.mjs +189 -0
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,332 @@
|
|
1
|
+
import { m as c } from "./code-editor-ce557bd5.mjs";
|
2
|
+
import "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import "./property-9b6ea53b.mjs";
|
4
|
+
import "./async-directive-99a01ec7.mjs";
|
5
|
+
import "./directive-helpers-e3ea6592.mjs";
|
6
|
+
import "./directive-daf4e9b6.mjs";
|
7
|
+
/*!-----------------------------------------------------------------------------
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
9
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
10
|
+
* Released under the MIT license
|
11
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
12
|
+
*-----------------------------------------------------------------------------*/
|
13
|
+
var a = Object.defineProperty, p = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyNames, l = Object.prototype.hasOwnProperty, s = (t, e, o, i) => {
|
14
|
+
if (e && typeof e == "object" || typeof e == "function")
|
15
|
+
for (let n of g(e))
|
16
|
+
!l.call(t, n) && n !== o && a(t, n, { get: () => e[n], enumerable: !(i = p(e, n)) || i.enumerable });
|
17
|
+
return t;
|
18
|
+
}, d = (t, e, o) => (s(t, e, "default"), o && s(o, e, "default")), r = {};
|
19
|
+
d(r, c);
|
20
|
+
var y = {
|
21
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
22
|
+
comments: {
|
23
|
+
lineComment: "//",
|
24
|
+
blockComment: ["/*", "*/"]
|
25
|
+
},
|
26
|
+
brackets: [
|
27
|
+
["{", "}"],
|
28
|
+
["[", "]"],
|
29
|
+
["(", ")"]
|
30
|
+
],
|
31
|
+
onEnterRules: [
|
32
|
+
{
|
33
|
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
34
|
+
afterText: /^\s*\*\/$/,
|
35
|
+
action: {
|
36
|
+
indentAction: r.languages.IndentAction.IndentOutdent,
|
37
|
+
appendText: " * "
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
42
|
+
action: {
|
43
|
+
indentAction: r.languages.IndentAction.None,
|
44
|
+
appendText: " * "
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
49
|
+
action: {
|
50
|
+
indentAction: r.languages.IndentAction.None,
|
51
|
+
appendText: "* "
|
52
|
+
}
|
53
|
+
},
|
54
|
+
{
|
55
|
+
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
56
|
+
action: {
|
57
|
+
indentAction: r.languages.IndentAction.None,
|
58
|
+
removeText: 1
|
59
|
+
}
|
60
|
+
}
|
61
|
+
],
|
62
|
+
autoClosingPairs: [
|
63
|
+
{ open: "{", close: "}" },
|
64
|
+
{ open: "[", close: "]" },
|
65
|
+
{ open: "(", close: ")" },
|
66
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
67
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
68
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
69
|
+
{ open: "/**", close: " */", notIn: ["string"] }
|
70
|
+
],
|
71
|
+
folding: {
|
72
|
+
markers: {
|
73
|
+
start: new RegExp("^\\s*//\\s*#?region\\b"),
|
74
|
+
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}, _ = {
|
78
|
+
defaultToken: "invalid",
|
79
|
+
tokenPostfix: ".ts",
|
80
|
+
keywords: [
|
81
|
+
"abstract",
|
82
|
+
"any",
|
83
|
+
"as",
|
84
|
+
"asserts",
|
85
|
+
"bigint",
|
86
|
+
"boolean",
|
87
|
+
"break",
|
88
|
+
"case",
|
89
|
+
"catch",
|
90
|
+
"class",
|
91
|
+
"continue",
|
92
|
+
"const",
|
93
|
+
"constructor",
|
94
|
+
"debugger",
|
95
|
+
"declare",
|
96
|
+
"default",
|
97
|
+
"delete",
|
98
|
+
"do",
|
99
|
+
"else",
|
100
|
+
"enum",
|
101
|
+
"export",
|
102
|
+
"extends",
|
103
|
+
"false",
|
104
|
+
"finally",
|
105
|
+
"for",
|
106
|
+
"from",
|
107
|
+
"function",
|
108
|
+
"get",
|
109
|
+
"if",
|
110
|
+
"implements",
|
111
|
+
"import",
|
112
|
+
"in",
|
113
|
+
"infer",
|
114
|
+
"instanceof",
|
115
|
+
"interface",
|
116
|
+
"is",
|
117
|
+
"keyof",
|
118
|
+
"let",
|
119
|
+
"module",
|
120
|
+
"namespace",
|
121
|
+
"never",
|
122
|
+
"new",
|
123
|
+
"null",
|
124
|
+
"number",
|
125
|
+
"object",
|
126
|
+
"out",
|
127
|
+
"package",
|
128
|
+
"private",
|
129
|
+
"protected",
|
130
|
+
"public",
|
131
|
+
"override",
|
132
|
+
"readonly",
|
133
|
+
"require",
|
134
|
+
"global",
|
135
|
+
"return",
|
136
|
+
"set",
|
137
|
+
"static",
|
138
|
+
"string",
|
139
|
+
"super",
|
140
|
+
"switch",
|
141
|
+
"symbol",
|
142
|
+
"this",
|
143
|
+
"throw",
|
144
|
+
"true",
|
145
|
+
"try",
|
146
|
+
"type",
|
147
|
+
"typeof",
|
148
|
+
"undefined",
|
149
|
+
"unique",
|
150
|
+
"unknown",
|
151
|
+
"var",
|
152
|
+
"void",
|
153
|
+
"while",
|
154
|
+
"with",
|
155
|
+
"yield",
|
156
|
+
"async",
|
157
|
+
"await",
|
158
|
+
"of"
|
159
|
+
],
|
160
|
+
operators: [
|
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
|
+
"**=",
|
195
|
+
"/=",
|
196
|
+
"%=",
|
197
|
+
"<<=",
|
198
|
+
">>=",
|
199
|
+
">>>=",
|
200
|
+
"&=",
|
201
|
+
"|=",
|
202
|
+
"^=",
|
203
|
+
"@"
|
204
|
+
],
|
205
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
206
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
207
|
+
digits: /\d+(_+\d+)*/,
|
208
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
209
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
210
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
211
|
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
212
|
+
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
213
|
+
tokenizer: {
|
214
|
+
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
215
|
+
common: [
|
216
|
+
[
|
217
|
+
/[a-z_$][\w$]*/,
|
218
|
+
{
|
219
|
+
cases: {
|
220
|
+
"@keywords": "keyword",
|
221
|
+
"@default": "identifier"
|
222
|
+
}
|
223
|
+
}
|
224
|
+
],
|
225
|
+
[/[A-Z][\w\$]*/, "type.identifier"],
|
226
|
+
{ include: "@whitespace" },
|
227
|
+
[
|
228
|
+
/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
229
|
+
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
230
|
+
],
|
231
|
+
[/[()\[\]]/, "@brackets"],
|
232
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
233
|
+
[/!(?=([^=]|$))/, "delimiter"],
|
234
|
+
[
|
235
|
+
/@symbols/,
|
236
|
+
{
|
237
|
+
cases: {
|
238
|
+
"@operators": "delimiter",
|
239
|
+
"@default": ""
|
240
|
+
}
|
241
|
+
}
|
242
|
+
],
|
243
|
+
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
244
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
245
|
+
[/0[xX](@hexdigits)n?/, "number.hex"],
|
246
|
+
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
247
|
+
[/0[bB](@binarydigits)n?/, "number.binary"],
|
248
|
+
[/(@digits)n?/, "number"],
|
249
|
+
[/[;,.]/, "delimiter"],
|
250
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
251
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
252
|
+
[/"/, "string", "@string_double"],
|
253
|
+
[/'/, "string", "@string_single"],
|
254
|
+
[/`/, "string", "@string_backtick"]
|
255
|
+
],
|
256
|
+
whitespace: [
|
257
|
+
[/[ \t\r\n]+/, ""],
|
258
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
259
|
+
[/\/\*/, "comment", "@comment"],
|
260
|
+
[/\/\/.*$/, "comment"]
|
261
|
+
],
|
262
|
+
comment: [
|
263
|
+
[/[^\/*]+/, "comment"],
|
264
|
+
[/\*\//, "comment", "@pop"],
|
265
|
+
[/[\/*]/, "comment"]
|
266
|
+
],
|
267
|
+
jsdoc: [
|
268
|
+
[/[^\/*]+/, "comment.doc"],
|
269
|
+
[/\*\//, "comment.doc", "@pop"],
|
270
|
+
[/[\/*]/, "comment.doc"]
|
271
|
+
],
|
272
|
+
regexp: [
|
273
|
+
[
|
274
|
+
/(\{)(\d+(?:,\d*)?)(\})/,
|
275
|
+
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
276
|
+
],
|
277
|
+
[
|
278
|
+
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
279
|
+
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
280
|
+
],
|
281
|
+
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
282
|
+
[/[()]/, "regexp.escape.control"],
|
283
|
+
[/@regexpctl/, "regexp.escape.control"],
|
284
|
+
[/[^\\\/]/, "regexp"],
|
285
|
+
[/@regexpesc/, "regexp.escape"],
|
286
|
+
[/\\\./, "regexp.invalid"],
|
287
|
+
[/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
288
|
+
],
|
289
|
+
regexrange: [
|
290
|
+
[/-/, "regexp.escape.control"],
|
291
|
+
[/\^/, "regexp.invalid"],
|
292
|
+
[/@regexpesc/, "regexp.escape"],
|
293
|
+
[/[^\]]/, "regexp"],
|
294
|
+
[
|
295
|
+
/\]/,
|
296
|
+
{
|
297
|
+
token: "regexp.escape.control",
|
298
|
+
next: "@pop",
|
299
|
+
bracket: "@close"
|
300
|
+
}
|
301
|
+
]
|
302
|
+
],
|
303
|
+
string_double: [
|
304
|
+
[/[^\\"]+/, "string"],
|
305
|
+
[/@escapes/, "string.escape"],
|
306
|
+
[/\\./, "string.escape.invalid"],
|
307
|
+
[/"/, "string", "@pop"]
|
308
|
+
],
|
309
|
+
string_single: [
|
310
|
+
[/[^\\']+/, "string"],
|
311
|
+
[/@escapes/, "string.escape"],
|
312
|
+
[/\\./, "string.escape.invalid"],
|
313
|
+
[/'/, "string", "@pop"]
|
314
|
+
],
|
315
|
+
string_backtick: [
|
316
|
+
[/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
|
317
|
+
[/[^\\`$]+/, "string"],
|
318
|
+
[/@escapes/, "string.escape"],
|
319
|
+
[/\\./, "string.escape.invalid"],
|
320
|
+
[/`/, "string", "@pop"]
|
321
|
+
],
|
322
|
+
bracketCounting: [
|
323
|
+
[/\{/, "delimiter.bracket", "@bracketCounting"],
|
324
|
+
[/\}/, "delimiter.bracket", "@pop"],
|
325
|
+
{ include: "common" }
|
326
|
+
]
|
327
|
+
}
|
328
|
+
};
|
329
|
+
export {
|
330
|
+
y as conf,
|
331
|
+
_ as language
|
332
|
+
};
|
package/xml-89571455.mjs
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
import { m } from "./code-editor-ce557bd5.mjs";
|
2
|
+
import "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import "./property-9b6ea53b.mjs";
|
4
|
+
import "./async-directive-99a01ec7.mjs";
|
5
|
+
import "./directive-helpers-e3ea6592.mjs";
|
6
|
+
import "./directive-daf4e9b6.mjs";
|
7
|
+
/*!-----------------------------------------------------------------------------
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
9
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
10
|
+
* Released under the MIT license
|
11
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
12
|
+
*-----------------------------------------------------------------------------*/
|
13
|
+
var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, r = (t, e, o, i) => {
|
14
|
+
if (e && typeof e == "object" || typeof e == "function")
|
15
|
+
for (let n of p(e))
|
16
|
+
!d.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = l(e, n)) || i.enumerable });
|
17
|
+
return t;
|
18
|
+
}, s = (t, e, o) => (r(t, e, "default"), o && r(o, e, "default")), a = {};
|
19
|
+
s(a, m);
|
20
|
+
var w = {
|
21
|
+
comments: {
|
22
|
+
blockComment: ["<!--", "-->"]
|
23
|
+
},
|
24
|
+
brackets: [["<", ">"]],
|
25
|
+
autoClosingPairs: [
|
26
|
+
{ open: "<", close: ">" },
|
27
|
+
{ open: "'", close: "'" },
|
28
|
+
{ open: '"', close: '"' }
|
29
|
+
],
|
30
|
+
surroundingPairs: [
|
31
|
+
{ open: "<", close: ">" },
|
32
|
+
{ open: "'", close: "'" },
|
33
|
+
{ open: '"', close: '"' }
|
34
|
+
],
|
35
|
+
onEnterRules: [
|
36
|
+
{
|
37
|
+
beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
|
38
|
+
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
39
|
+
action: {
|
40
|
+
indentAction: a.languages.IndentAction.IndentOutdent
|
41
|
+
}
|
42
|
+
},
|
43
|
+
{
|
44
|
+
beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
|
45
|
+
action: { indentAction: a.languages.IndentAction.Indent }
|
46
|
+
}
|
47
|
+
]
|
48
|
+
}, b = {
|
49
|
+
defaultToken: "",
|
50
|
+
tokenPostfix: ".xml",
|
51
|
+
ignoreCase: !0,
|
52
|
+
qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
|
53
|
+
tokenizer: {
|
54
|
+
root: [
|
55
|
+
[/[^<&]+/, ""],
|
56
|
+
{ include: "@whitespace" },
|
57
|
+
[/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]],
|
58
|
+
[
|
59
|
+
/(<\/)(@qualifiedName)(\s*)(>)/,
|
60
|
+
[{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }]
|
61
|
+
],
|
62
|
+
[/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
|
63
|
+
[/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
|
64
|
+
[/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }],
|
65
|
+
[/&\w+;/, "string.escape"]
|
66
|
+
],
|
67
|
+
cdata: [
|
68
|
+
[/[^\]]+/, ""],
|
69
|
+
[/\]\]>/, { token: "delimiter.cdata", next: "@pop" }],
|
70
|
+
[/\]/, ""]
|
71
|
+
],
|
72
|
+
tag: [
|
73
|
+
[/[ \t\r\n]+/, ""],
|
74
|
+
[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]],
|
75
|
+
[
|
76
|
+
/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
|
77
|
+
["attribute.name", "", "attribute.value"]
|
78
|
+
],
|
79
|
+
[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]],
|
80
|
+
[/@qualifiedName/, "attribute.name"],
|
81
|
+
[/\?>/, { token: "delimiter", next: "@pop" }],
|
82
|
+
[/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]],
|
83
|
+
[/>/, { token: "delimiter", next: "@pop" }]
|
84
|
+
],
|
85
|
+
whitespace: [
|
86
|
+
[/[ \t\r\n]+/, ""],
|
87
|
+
[/<!--/, { token: "comment", next: "@comment" }]
|
88
|
+
],
|
89
|
+
comment: [
|
90
|
+
[/[^<\-]+/, "comment.content"],
|
91
|
+
[/-->/, { token: "comment", next: "@pop" }],
|
92
|
+
[/<!--/, "comment.content.invalid"],
|
93
|
+
[/[<\-]/, "comment.content"]
|
94
|
+
]
|
95
|
+
}
|
96
|
+
};
|
97
|
+
export {
|
98
|
+
w as conf,
|
99
|
+
b as language
|
100
|
+
};
|
package/xml-e66929d0.js
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./code-editor-3a09cbf1.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
|
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 l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,r=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!d.call(t,n)&&n!==o&&l(t,n,{get:()=>e[n],enumerable:!(i=u(e,n))||i.enumerable});return t},p=(t,e,o)=>(r(t,e,"default"),o&&r(o,e,"default")),a={};p(a,c.monaco_editor_core_star);var s={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};exports.conf=s;exports.language=g;
|
package/yaml-11a91e71.js
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./code-editor-3a09cbf1.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
|
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 c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,a=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!d.call(n,t)&&t!==r&&c(n,t,{get:()=>e[t],enumerable:!(o=u(e,t))||o.enumerable});return n},m=(n,e,r)=>(a(n,e,"default"),r&&a(r,e,"default")),l={};m(l,i.monaco_editor_core_star);var b={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:l.languages.IndentAction.Indent}}]},p={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};exports.conf=b;exports.language=p;
|
@@ -0,0 +1,189 @@
|
|
1
|
+
import { m as i } from "./code-editor-ce557bd5.mjs";
|
2
|
+
import "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import "./property-9b6ea53b.mjs";
|
4
|
+
import "./async-directive-99a01ec7.mjs";
|
5
|
+
import "./directive-helpers-e3ea6592.mjs";
|
6
|
+
import "./directive-daf4e9b6.mjs";
|
7
|
+
/*!-----------------------------------------------------------------------------
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
9
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
10
|
+
* Released under the MIT license
|
11
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
12
|
+
*-----------------------------------------------------------------------------*/
|
13
|
+
var c = Object.defineProperty, u = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, a = (n, e, r, o) => {
|
14
|
+
if (e && typeof e == "object" || typeof e == "function")
|
15
|
+
for (let t of s(e))
|
16
|
+
!d.call(n, t) && t !== r && c(n, t, { get: () => e[t], enumerable: !(o = u(e, t)) || o.enumerable });
|
17
|
+
return n;
|
18
|
+
}, m = (n, e, r) => (a(n, e, "default"), r && a(r, e, "default")), l = {};
|
19
|
+
m(l, i);
|
20
|
+
var k = {
|
21
|
+
comments: {
|
22
|
+
lineComment: "#"
|
23
|
+
},
|
24
|
+
brackets: [
|
25
|
+
["{", "}"],
|
26
|
+
["[", "]"],
|
27
|
+
["(", ")"]
|
28
|
+
],
|
29
|
+
autoClosingPairs: [
|
30
|
+
{ open: "{", close: "}" },
|
31
|
+
{ open: "[", close: "]" },
|
32
|
+
{ open: "(", close: ")" },
|
33
|
+
{ open: '"', close: '"' },
|
34
|
+
{ open: "'", close: "'" }
|
35
|
+
],
|
36
|
+
surroundingPairs: [
|
37
|
+
{ open: "{", close: "}" },
|
38
|
+
{ open: "[", close: "]" },
|
39
|
+
{ open: "(", close: ")" },
|
40
|
+
{ open: '"', close: '"' },
|
41
|
+
{ open: "'", close: "'" }
|
42
|
+
],
|
43
|
+
folding: {
|
44
|
+
offSide: !0
|
45
|
+
},
|
46
|
+
onEnterRules: [
|
47
|
+
{
|
48
|
+
beforeText: /:\s*$/,
|
49
|
+
action: {
|
50
|
+
indentAction: l.languages.IndentAction.Indent
|
51
|
+
}
|
52
|
+
}
|
53
|
+
]
|
54
|
+
}, S = {
|
55
|
+
tokenPostfix: ".yaml",
|
56
|
+
brackets: [
|
57
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
58
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
59
|
+
],
|
60
|
+
keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
|
61
|
+
numberInteger: /(?:0|[+-]?[0-9]+)/,
|
62
|
+
numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
|
63
|
+
numberOctal: /0o[0-7]+/,
|
64
|
+
numberHex: /0x[0-9a-fA-F]+/,
|
65
|
+
numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
|
66
|
+
numberNaN: /\.(?:nan|Nan|NAN)/,
|
67
|
+
numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
|
68
|
+
escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
69
|
+
tokenizer: {
|
70
|
+
root: [
|
71
|
+
{ include: "@whitespace" },
|
72
|
+
{ include: "@comment" },
|
73
|
+
[/%[^ ]+.*$/, "meta.directive"],
|
74
|
+
[/---/, "operators.directivesEnd"],
|
75
|
+
[/\.{3}/, "operators.documentEnd"],
|
76
|
+
[/[-?:](?= )/, "operators"],
|
77
|
+
{ include: "@anchor" },
|
78
|
+
{ include: "@tagHandle" },
|
79
|
+
{ include: "@flowCollections" },
|
80
|
+
{ include: "@blockStyle" },
|
81
|
+
[/@numberInteger(?![ \t]*\S+)/, "number"],
|
82
|
+
[/@numberFloat(?![ \t]*\S+)/, "number.float"],
|
83
|
+
[/@numberOctal(?![ \t]*\S+)/, "number.octal"],
|
84
|
+
[/@numberHex(?![ \t]*\S+)/, "number.hex"],
|
85
|
+
[/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
|
86
|
+
[/@numberNaN(?![ \t]*\S+)/, "number.nan"],
|
87
|
+
[/@numberDate(?![ \t]*\S+)/, "number.date"],
|
88
|
+
[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
|
89
|
+
{ include: "@flowScalars" },
|
90
|
+
[
|
91
|
+
/[^#]+/,
|
92
|
+
{
|
93
|
+
cases: {
|
94
|
+
"@keywords": "keyword",
|
95
|
+
"@default": "string"
|
96
|
+
}
|
97
|
+
}
|
98
|
+
]
|
99
|
+
],
|
100
|
+
object: [
|
101
|
+
{ include: "@whitespace" },
|
102
|
+
{ include: "@comment" },
|
103
|
+
[/\}/, "@brackets", "@pop"],
|
104
|
+
[/,/, "delimiter.comma"],
|
105
|
+
[/:(?= )/, "operators"],
|
106
|
+
[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
|
107
|
+
{ include: "@flowCollections" },
|
108
|
+
{ include: "@flowScalars" },
|
109
|
+
{ include: "@tagHandle" },
|
110
|
+
{ include: "@anchor" },
|
111
|
+
{ include: "@flowNumber" },
|
112
|
+
[
|
113
|
+
/[^\},]+/,
|
114
|
+
{
|
115
|
+
cases: {
|
116
|
+
"@keywords": "keyword",
|
117
|
+
"@default": "string"
|
118
|
+
}
|
119
|
+
}
|
120
|
+
]
|
121
|
+
],
|
122
|
+
array: [
|
123
|
+
{ include: "@whitespace" },
|
124
|
+
{ include: "@comment" },
|
125
|
+
[/\]/, "@brackets", "@pop"],
|
126
|
+
[/,/, "delimiter.comma"],
|
127
|
+
{ include: "@flowCollections" },
|
128
|
+
{ include: "@flowScalars" },
|
129
|
+
{ include: "@tagHandle" },
|
130
|
+
{ include: "@anchor" },
|
131
|
+
{ include: "@flowNumber" },
|
132
|
+
[
|
133
|
+
/[^\],]+/,
|
134
|
+
{
|
135
|
+
cases: {
|
136
|
+
"@keywords": "keyword",
|
137
|
+
"@default": "string"
|
138
|
+
}
|
139
|
+
}
|
140
|
+
]
|
141
|
+
],
|
142
|
+
multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
|
143
|
+
multiStringContinued: [
|
144
|
+
[
|
145
|
+
/^( *).+$/,
|
146
|
+
{
|
147
|
+
cases: {
|
148
|
+
"$1==$S2": "string",
|
149
|
+
"@default": { token: "@rematch", next: "@popall" }
|
150
|
+
}
|
151
|
+
}
|
152
|
+
]
|
153
|
+
],
|
154
|
+
whitespace: [[/[ \t\r\n]+/, "white"]],
|
155
|
+
comment: [[/#.*$/, "comment"]],
|
156
|
+
flowCollections: [
|
157
|
+
[/\[/, "@brackets", "@array"],
|
158
|
+
[/\{/, "@brackets", "@object"]
|
159
|
+
],
|
160
|
+
flowScalars: [
|
161
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
162
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
163
|
+
[/'[^']*'/, "string"],
|
164
|
+
[/"/, "string", "@doubleQuotedString"]
|
165
|
+
],
|
166
|
+
doubleQuotedString: [
|
167
|
+
[/[^\\"]+/, "string"],
|
168
|
+
[/@escapes/, "string.escape"],
|
169
|
+
[/\\./, "string.escape.invalid"],
|
170
|
+
[/"/, "string", "@pop"]
|
171
|
+
],
|
172
|
+
blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
|
173
|
+
flowNumber: [
|
174
|
+
[/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
|
175
|
+
[/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
|
176
|
+
[/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
|
177
|
+
[/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
|
178
|
+
[/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
|
179
|
+
[/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
|
180
|
+
[/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
|
181
|
+
],
|
182
|
+
tagHandle: [[/\![^ ]*/, "tag"]],
|
183
|
+
anchor: [[/[&*][^ ]+/, "namespace"]]
|
184
|
+
}
|
185
|
+
};
|
186
|
+
export {
|
187
|
+
k as conf,
|
188
|
+
S as language
|
189
|
+
};
|