@vrowzer/vite-plugin 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +290 -0
  3. package/dist/ide/assets/css.worker-uWEFNxvl.js +89 -0
  4. package/dist/ide/assets/html.worker-1tLoAl5Z.js +502 -0
  5. package/dist/ide/assets/json.worker-CL3sVQd6.js +58 -0
  6. package/dist/ide/assets/ts.worker-BFpNHPy5.js +67719 -0
  7. package/dist/ide/css-CPSW8DVZ.js +286 -0
  8. package/dist/ide/cssMode-B5DtFEwy.js +65 -0
  9. package/dist/ide/graphql-BteLL2CG.js +176 -0
  10. package/dist/ide/handlebars-BcqMM6pa.js +412 -0
  11. package/dist/ide/html-CxO5OaJl.js +333 -0
  12. package/dist/ide/htmlMode-DxpUG2jm.js +74 -0
  13. package/dist/ide/ide.css +2 -0
  14. package/dist/ide/ide.js +5523 -0
  15. package/dist/ide/javascript-CvtLx4_Z.js +21 -0
  16. package/dist/ide/jsonMode-LVtiYWKr.js +449 -0
  17. package/dist/ide/less-BubkcFWW.js +244 -0
  18. package/dist/ide/lspLanguageFeatures-BDyekQt2.js +1455 -0
  19. package/dist/ide/markdown-DPB5N4OB.js +264 -0
  20. package/dist/ide/mdx-Sun87_nd.js +329 -0
  21. package/dist/ide/monaco.contribution-DVj8eGe_.js +116 -0
  22. package/dist/ide/pug-BONHZNEg.js +302 -0
  23. package/dist/ide/scss-0r6NeK1P.js +419 -0
  24. package/dist/ide/shell-Vh_eZpea.js +225 -0
  25. package/dist/ide/toggleHighContrast-DI4ZeqFk.js +113328 -0
  26. package/dist/ide/tsMode-BKTkt1bt.js +567 -0
  27. package/dist/ide/typescript-CHC4VYBW.js +257 -0
  28. package/dist/ide/workers-IG_hD8Jy.js +47 -0
  29. package/dist/ide/xml-C0QFzMaz.js +130 -0
  30. package/dist/ide/yaml-o-RP7lYY.js +223 -0
  31. package/dist/index.d.mts +138 -0
  32. package/dist/index.d.mts.map +1 -0
  33. package/dist/index.mjs +1335 -0
  34. package/dist/index.mjs.map +1 -0
  35. package/dist/manifest-generate.d.mts +89 -0
  36. package/dist/manifest-generate.d.mts.map +1 -0
  37. package/dist/manifest-generate.mjs +438 -0
  38. package/dist/manifest-generate.mjs.map +1 -0
  39. package/package.json +88 -0
@@ -0,0 +1,257 @@
1
+ import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js
3
+ var t = {
4
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
5
+ comments: {
6
+ lineComment: "//",
7
+ blockComment: ["/*", "*/"]
8
+ },
9
+ brackets: [
10
+ ["{", "}"],
11
+ ["[", "]"],
12
+ ["(", ")"]
13
+ ],
14
+ onEnterRules: [
15
+ {
16
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
17
+ afterText: /^\s*\*\/$/,
18
+ action: {
19
+ indentAction: e.IndentAction.IndentOutdent,
20
+ appendText: " * "
21
+ }
22
+ },
23
+ {
24
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
25
+ action: {
26
+ indentAction: e.IndentAction.None,
27
+ appendText: " * "
28
+ }
29
+ },
30
+ {
31
+ beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
32
+ action: {
33
+ indentAction: e.IndentAction.None,
34
+ appendText: "* "
35
+ }
36
+ },
37
+ {
38
+ beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
39
+ action: {
40
+ indentAction: e.IndentAction.None,
41
+ removeText: 1
42
+ }
43
+ }
44
+ ],
45
+ autoClosingPairs: [
46
+ {
47
+ open: "{",
48
+ close: "}"
49
+ },
50
+ {
51
+ open: "[",
52
+ close: "]"
53
+ },
54
+ {
55
+ open: "(",
56
+ close: ")"
57
+ },
58
+ {
59
+ open: "\"",
60
+ close: "\"",
61
+ notIn: ["string"]
62
+ },
63
+ {
64
+ open: "'",
65
+ close: "'",
66
+ notIn: ["string", "comment"]
67
+ },
68
+ {
69
+ open: "`",
70
+ close: "`",
71
+ notIn: ["string", "comment"]
72
+ },
73
+ {
74
+ open: "/**",
75
+ close: " */",
76
+ notIn: ["string"]
77
+ }
78
+ ],
79
+ folding: { markers: {
80
+ start: /* @__PURE__ */ RegExp("^\\s*//\\s*#?region\\b"),
81
+ end: /* @__PURE__ */ RegExp("^\\s*//\\s*#?endregion\\b")
82
+ } }
83
+ }, n = {
84
+ defaultToken: "invalid",
85
+ tokenPostfix: ".ts",
86
+ keywords: /* @__PURE__ */ "abstract.any.as.asserts.bigint.boolean.break.case.catch.class.continue.const.constructor.debugger.declare.default.delete.do.else.enum.export.extends.false.finally.for.from.function.get.if.implements.import.in.infer.instanceof.interface.is.keyof.let.module.namespace.never.new.null.number.object.out.package.private.protected.public.override.readonly.require.global.return.satisfies.set.static.string.super.switch.symbol.this.throw.true.try.type.typeof.undefined.unique.unknown.var.void.while.with.yield.async.await.of".split("."),
87
+ operators: /* @__PURE__ */ "<=.>=.==.!=.===.!==.=>.+.-.**.*./.%.++.--.<<.</.>>.>>>.&.|.^.!.~.&&.||.??.?.:.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.@".split("."),
88
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
89
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
90
+ digits: /\d+(_+\d+)*/,
91
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
92
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
93
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
94
+ regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
95
+ regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
96
+ tokenizer: {
97
+ root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
98
+ common: [
99
+ [/#?[a-z_$][\w$]*/, { cases: {
100
+ "@keywords": "keyword",
101
+ "@default": "identifier"
102
+ } }],
103
+ [/[A-Z][\w\$]*/, "type.identifier"],
104
+ { include: "@whitespace" },
105
+ [/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, {
106
+ token: "regexp",
107
+ bracket: "@open",
108
+ next: "@regexp"
109
+ }],
110
+ [/[()\[\]]/, "@brackets"],
111
+ [/[<>](?!@symbols)/, "@brackets"],
112
+ [/!(?=([^=]|$))/, "delimiter"],
113
+ [/@symbols/, { cases: {
114
+ "@operators": "delimiter",
115
+ "@default": ""
116
+ } }],
117
+ [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
118
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
119
+ [/0[xX](@hexdigits)n?/, "number.hex"],
120
+ [/0[oO]?(@octaldigits)n?/, "number.octal"],
121
+ [/0[bB](@binarydigits)n?/, "number.binary"],
122
+ [/(@digits)n?/, "number"],
123
+ [/[;,.]/, "delimiter"],
124
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
125
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
126
+ [
127
+ /"/,
128
+ "string",
129
+ "@string_double"
130
+ ],
131
+ [
132
+ /'/,
133
+ "string",
134
+ "@string_single"
135
+ ],
136
+ [
137
+ /`/,
138
+ "string",
139
+ "@string_backtick"
140
+ ]
141
+ ],
142
+ whitespace: [
143
+ [/[ \t\r\n]+/, ""],
144
+ [
145
+ /\/\*\*(?!\/)/,
146
+ "comment.doc",
147
+ "@jsdoc"
148
+ ],
149
+ [
150
+ /\/\*/,
151
+ "comment",
152
+ "@comment"
153
+ ],
154
+ [/\/\/.*$/, "comment"]
155
+ ],
156
+ comment: [
157
+ [/[^\/*]+/, "comment"],
158
+ [
159
+ /\*\//,
160
+ "comment",
161
+ "@pop"
162
+ ],
163
+ [/[\/*]/, "comment"]
164
+ ],
165
+ jsdoc: [
166
+ [/[^\/*]+/, "comment.doc"],
167
+ [
168
+ /\*\//,
169
+ "comment.doc",
170
+ "@pop"
171
+ ],
172
+ [/[\/*]/, "comment.doc"]
173
+ ],
174
+ regexp: [
175
+ [/(\{)(\d+(?:,\d*)?)(\})/, [
176
+ "regexp.escape.control",
177
+ "regexp.escape.control",
178
+ "regexp.escape.control"
179
+ ]],
180
+ [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {
181
+ token: "regexp.escape.control",
182
+ next: "@regexrange"
183
+ }]],
184
+ [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
185
+ [/[()]/, "regexp.escape.control"],
186
+ [/@regexpctl/, "regexp.escape.control"],
187
+ [/[^\\\/]/, "regexp"],
188
+ [/@regexpesc/, "regexp.escape"],
189
+ [/\\\./, "regexp.invalid"],
190
+ [/(\/)([dgimsuy]*)/, [{
191
+ token: "regexp",
192
+ bracket: "@close",
193
+ next: "@pop"
194
+ }, "keyword.other"]]
195
+ ],
196
+ regexrange: [
197
+ [/-/, "regexp.escape.control"],
198
+ [/\^/, "regexp.invalid"],
199
+ [/@regexpesc/, "regexp.escape"],
200
+ [/[^\]]/, "regexp"],
201
+ [/\]/, {
202
+ token: "regexp.escape.control",
203
+ next: "@pop",
204
+ bracket: "@close"
205
+ }]
206
+ ],
207
+ string_double: [
208
+ [/[^\\"]+/, "string"],
209
+ [/@escapes/, "string.escape"],
210
+ [/\\./, "string.escape.invalid"],
211
+ [
212
+ /"/,
213
+ "string",
214
+ "@pop"
215
+ ]
216
+ ],
217
+ string_single: [
218
+ [/[^\\']+/, "string"],
219
+ [/@escapes/, "string.escape"],
220
+ [/\\./, "string.escape.invalid"],
221
+ [
222
+ /'/,
223
+ "string",
224
+ "@pop"
225
+ ]
226
+ ],
227
+ string_backtick: [
228
+ [/\$\{/, {
229
+ token: "delimiter.bracket",
230
+ next: "@bracketCounting"
231
+ }],
232
+ [/[^\\`$]+/, "string"],
233
+ [/@escapes/, "string.escape"],
234
+ [/\\./, "string.escape.invalid"],
235
+ [
236
+ /`/,
237
+ "string",
238
+ "@pop"
239
+ ]
240
+ ],
241
+ bracketCounting: [
242
+ [
243
+ /\{/,
244
+ "delimiter.bracket",
245
+ "@bracketCounting"
246
+ ],
247
+ [
248
+ /\}/,
249
+ "delimiter.bracket",
250
+ "@pop"
251
+ ],
252
+ { include: "common" }
253
+ ]
254
+ }
255
+ };
256
+ //#endregion
257
+ export { t as conf, n as language };
@@ -0,0 +1,47 @@
1
+ import { o as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/common/workers.js
3
+ function t(e, t) {
4
+ let n = globalThis.MonacoEnvironment;
5
+ if (n?.createTrustedTypesPolicy) try {
6
+ return n.createTrustedTypesPolicy(e, t);
7
+ } catch (e) {
8
+ console.error(e);
9
+ return;
10
+ }
11
+ try {
12
+ return globalThis.trustedTypes?.createPolicy(e, t);
13
+ } catch (e) {
14
+ console.error(e);
15
+ return;
16
+ }
17
+ }
18
+ var n = typeof self == "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope" && globalThis.workerttPolicy !== void 0 ? globalThis.workerttPolicy : t("defaultWorkerFactory", { createScriptURL: (e) => e });
19
+ function r(e) {
20
+ let t = e.label, r = globalThis.MonacoEnvironment;
21
+ if (r) {
22
+ if (typeof r.getWorker == "function") return r.getWorker("workerMain.js", t);
23
+ if (typeof r.getWorkerUrl == "function") {
24
+ let e = r.getWorkerUrl("workerMain.js", t);
25
+ return new Worker(n ? n.createScriptURL(e) : e, {
26
+ name: t,
27
+ type: "module"
28
+ });
29
+ }
30
+ }
31
+ if (e.createWorker) return e.createWorker();
32
+ throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker");
33
+ }
34
+ function i(t) {
35
+ let n = Promise.resolve(r({
36
+ label: t.label ?? "monaco-editor-worker",
37
+ moduleId: t.moduleId,
38
+ createWorker: t.createWorker
39
+ })).then((e) => (e.postMessage("ignore"), e.postMessage(t.createData), e));
40
+ return e.createWebWorker({
41
+ worker: n,
42
+ host: t.host,
43
+ keepIdleModels: t.keepIdleModels
44
+ });
45
+ }
46
+ //#endregion
47
+ export { i as t };
@@ -0,0 +1,130 @@
1
+ import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.js
3
+ var t = {
4
+ comments: { blockComment: ["<!--", "-->"] },
5
+ brackets: [["<", ">"]],
6
+ autoClosingPairs: [
7
+ {
8
+ open: "<",
9
+ close: ">"
10
+ },
11
+ {
12
+ open: "'",
13
+ close: "'"
14
+ },
15
+ {
16
+ open: "\"",
17
+ close: "\""
18
+ }
19
+ ],
20
+ surroundingPairs: [
21
+ {
22
+ open: "<",
23
+ close: ">"
24
+ },
25
+ {
26
+ open: "'",
27
+ close: "'"
28
+ },
29
+ {
30
+ open: "\"",
31
+ close: "\""
32
+ }
33
+ ],
34
+ onEnterRules: [{
35
+ beforeText: RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
36
+ afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
37
+ action: { indentAction: e.IndentAction.IndentOutdent }
38
+ }, {
39
+ beforeText: RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
40
+ action: { indentAction: e.IndentAction.Indent }
41
+ }]
42
+ }, n = {
43
+ defaultToken: "",
44
+ tokenPostfix: ".xml",
45
+ ignoreCase: !0,
46
+ qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
47
+ tokenizer: {
48
+ root: [
49
+ [/[^<&]+/, ""],
50
+ { include: "@whitespace" },
51
+ [/(<)(@qualifiedName)/, [{ token: "delimiter" }, {
52
+ token: "tag",
53
+ next: "@tag"
54
+ }]],
55
+ [/(<\/)(@qualifiedName)(\s*)(>)/, [
56
+ { token: "delimiter" },
57
+ { token: "tag" },
58
+ "",
59
+ { token: "delimiter" }
60
+ ]],
61
+ [/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, {
62
+ token: "metatag",
63
+ next: "@tag"
64
+ }]],
65
+ [/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, {
66
+ token: "metatag",
67
+ next: "@tag"
68
+ }]],
69
+ [/<\!\[CDATA\[/, {
70
+ token: "delimiter.cdata",
71
+ next: "@cdata"
72
+ }],
73
+ [/&\w+;/, "string.escape"]
74
+ ],
75
+ cdata: [
76
+ [/[^\]]+/, ""],
77
+ [/\]\]>/, {
78
+ token: "delimiter.cdata",
79
+ next: "@pop"
80
+ }],
81
+ [/\]/, ""]
82
+ ],
83
+ tag: [
84
+ [/[ \t\r\n]+/, ""],
85
+ [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, [
86
+ "attribute.name",
87
+ "",
88
+ "attribute.value"
89
+ ]],
90
+ [/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/, [
91
+ "attribute.name",
92
+ "",
93
+ "attribute.value"
94
+ ]],
95
+ [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, [
96
+ "attribute.name",
97
+ "",
98
+ "attribute.value"
99
+ ]],
100
+ [/@qualifiedName/, "attribute.name"],
101
+ [/\?>/, {
102
+ token: "delimiter",
103
+ next: "@pop"
104
+ }],
105
+ [/(\/)(>)/, [{ token: "tag" }, {
106
+ token: "delimiter",
107
+ next: "@pop"
108
+ }]],
109
+ [/>/, {
110
+ token: "delimiter",
111
+ next: "@pop"
112
+ }]
113
+ ],
114
+ whitespace: [[/[ \t\r\n]+/, ""], [/<!--/, {
115
+ token: "comment",
116
+ next: "@comment"
117
+ }]],
118
+ comment: [
119
+ [/[^<\-]+/, "comment.content"],
120
+ [/-->/, {
121
+ token: "comment",
122
+ next: "@pop"
123
+ }],
124
+ [/<!--/, "comment.content.invalid"],
125
+ [/[<\-]/, "comment.content"]
126
+ ]
127
+ }
128
+ };
129
+ //#endregion
130
+ export { t as conf, n as language };
@@ -0,0 +1,223 @@
1
+ import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.js
3
+ var t = {
4
+ comments: { lineComment: "#" },
5
+ brackets: [
6
+ ["{", "}"],
7
+ ["[", "]"],
8
+ ["(", ")"]
9
+ ],
10
+ autoClosingPairs: [
11
+ {
12
+ open: "{",
13
+ close: "}"
14
+ },
15
+ {
16
+ open: "[",
17
+ close: "]"
18
+ },
19
+ {
20
+ open: "(",
21
+ close: ")"
22
+ },
23
+ {
24
+ open: "\"",
25
+ close: "\""
26
+ },
27
+ {
28
+ open: "'",
29
+ close: "'"
30
+ }
31
+ ],
32
+ surroundingPairs: [
33
+ {
34
+ open: "{",
35
+ close: "}"
36
+ },
37
+ {
38
+ open: "[",
39
+ close: "]"
40
+ },
41
+ {
42
+ open: "(",
43
+ close: ")"
44
+ },
45
+ {
46
+ open: "\"",
47
+ close: "\""
48
+ },
49
+ {
50
+ open: "'",
51
+ close: "'"
52
+ }
53
+ ],
54
+ folding: { offSide: !0 },
55
+ onEnterRules: [{
56
+ beforeText: /:\s*$/,
57
+ action: { indentAction: e.IndentAction.Indent }
58
+ }]
59
+ }, n = {
60
+ tokenPostfix: ".yaml",
61
+ brackets: [{
62
+ token: "delimiter.bracket",
63
+ open: "{",
64
+ close: "}"
65
+ }, {
66
+ token: "delimiter.square",
67
+ open: "[",
68
+ close: "]"
69
+ }],
70
+ keywords: [
71
+ "true",
72
+ "True",
73
+ "TRUE",
74
+ "false",
75
+ "False",
76
+ "FALSE",
77
+ "null",
78
+ "Null",
79
+ "Null",
80
+ "~"
81
+ ],
82
+ numberInteger: /(?:0|[+-]?[0-9]+)/,
83
+ numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
84
+ numberOctal: /0o[0-7]+/,
85
+ numberHex: /0x[0-9a-fA-F]+/,
86
+ numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
87
+ numberNaN: /\.(?:nan|Nan|NAN)/,
88
+ numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
89
+ escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
90
+ tokenizer: {
91
+ root: [
92
+ { include: "@whitespace" },
93
+ { include: "@comment" },
94
+ [/%[^ ]+.*$/, "meta.directive"],
95
+ [/---/, "operators.directivesEnd"],
96
+ [/\.{3}/, "operators.documentEnd"],
97
+ [/[-?:](?= )/, "operators"],
98
+ { include: "@anchor" },
99
+ { include: "@tagHandle" },
100
+ { include: "@flowCollections" },
101
+ { include: "@blockStyle" },
102
+ [/@numberInteger(?![ \t]*\S+)/, "number"],
103
+ [/@numberFloat(?![ \t]*\S+)/, "number.float"],
104
+ [/@numberOctal(?![ \t]*\S+)/, "number.octal"],
105
+ [/@numberHex(?![ \t]*\S+)/, "number.hex"],
106
+ [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
107
+ [/@numberNaN(?![ \t]*\S+)/, "number.nan"],
108
+ [/@numberDate(?![ \t]*\S+)/, "number.date"],
109
+ [/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, [
110
+ "type",
111
+ "white",
112
+ "operators",
113
+ "white"
114
+ ]],
115
+ { include: "@flowScalars" },
116
+ [/.+?(?=(\s+#|$))/, { cases: {
117
+ "@keywords": "keyword",
118
+ "@default": "string"
119
+ } }]
120
+ ],
121
+ object: [
122
+ { include: "@whitespace" },
123
+ { include: "@comment" },
124
+ [
125
+ /\}/,
126
+ "@brackets",
127
+ "@pop"
128
+ ],
129
+ [/,/, "delimiter.comma"],
130
+ [/:(?= )/, "operators"],
131
+ [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
132
+ { include: "@flowCollections" },
133
+ { include: "@flowScalars" },
134
+ { include: "@tagHandle" },
135
+ { include: "@anchor" },
136
+ { include: "@flowNumber" },
137
+ [/[^\},]+/, { cases: {
138
+ "@keywords": "keyword",
139
+ "@default": "string"
140
+ } }]
141
+ ],
142
+ array: [
143
+ { include: "@whitespace" },
144
+ { include: "@comment" },
145
+ [
146
+ /\]/,
147
+ "@brackets",
148
+ "@pop"
149
+ ],
150
+ [/,/, "delimiter.comma"],
151
+ { include: "@flowCollections" },
152
+ { include: "@flowScalars" },
153
+ { include: "@tagHandle" },
154
+ { include: "@anchor" },
155
+ { include: "@flowNumber" },
156
+ [/[^\],]+/, { cases: {
157
+ "@keywords": "keyword",
158
+ "@default": "string"
159
+ } }]
160
+ ],
161
+ multiString: [[
162
+ /^( +).+$/,
163
+ "string",
164
+ "@multiStringContinued.$1"
165
+ ]],
166
+ multiStringContinued: [[/^( *).+$/, { cases: {
167
+ "$1==$S2": "string",
168
+ "@default": {
169
+ token: "@rematch",
170
+ next: "@popall"
171
+ }
172
+ } }]],
173
+ whitespace: [[/[ \t\r\n]+/, "white"]],
174
+ comment: [[/#.*$/, "comment"]],
175
+ flowCollections: [[
176
+ /\[/,
177
+ "@brackets",
178
+ "@array"
179
+ ], [
180
+ /\{/,
181
+ "@brackets",
182
+ "@object"
183
+ ]],
184
+ flowScalars: [
185
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
186
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
187
+ [/'[^']*'/, "string"],
188
+ [
189
+ /"/,
190
+ "string",
191
+ "@doubleQuotedString"
192
+ ]
193
+ ],
194
+ doubleQuotedString: [
195
+ [/[^\\"]+/, "string"],
196
+ [/@escapes/, "string.escape"],
197
+ [/\\./, "string.escape.invalid"],
198
+ [
199
+ /"/,
200
+ "string",
201
+ "@pop"
202
+ ]
203
+ ],
204
+ blockStyle: [[
205
+ /[>|][0-9]*[+-]?$/,
206
+ "operators",
207
+ "@multiString"
208
+ ]],
209
+ flowNumber: [
210
+ [/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
211
+ [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
212
+ [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
213
+ [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
214
+ [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
215
+ [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
216
+ [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
217
+ ],
218
+ tagHandle: [[/\![^ ]*/, "tag"]],
219
+ anchor: [[/[&*][^ ]+/, "namespace"]]
220
+ }
221
+ };
222
+ //#endregion
223
+ export { t as conf, n as language };