@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.
- package/LICENSE +20 -0
- package/README.md +290 -0
- package/dist/ide/assets/css.worker-uWEFNxvl.js +89 -0
- package/dist/ide/assets/html.worker-1tLoAl5Z.js +502 -0
- package/dist/ide/assets/json.worker-CL3sVQd6.js +58 -0
- package/dist/ide/assets/ts.worker-BFpNHPy5.js +67719 -0
- package/dist/ide/css-CPSW8DVZ.js +286 -0
- package/dist/ide/cssMode-B5DtFEwy.js +65 -0
- package/dist/ide/graphql-BteLL2CG.js +176 -0
- package/dist/ide/handlebars-BcqMM6pa.js +412 -0
- package/dist/ide/html-CxO5OaJl.js +333 -0
- package/dist/ide/htmlMode-DxpUG2jm.js +74 -0
- package/dist/ide/ide.css +2 -0
- package/dist/ide/ide.js +5523 -0
- package/dist/ide/javascript-CvtLx4_Z.js +21 -0
- package/dist/ide/jsonMode-LVtiYWKr.js +449 -0
- package/dist/ide/less-BubkcFWW.js +244 -0
- package/dist/ide/lspLanguageFeatures-BDyekQt2.js +1455 -0
- package/dist/ide/markdown-DPB5N4OB.js +264 -0
- package/dist/ide/mdx-Sun87_nd.js +329 -0
- package/dist/ide/monaco.contribution-DVj8eGe_.js +116 -0
- package/dist/ide/pug-BONHZNEg.js +302 -0
- package/dist/ide/scss-0r6NeK1P.js +419 -0
- package/dist/ide/shell-Vh_eZpea.js +225 -0
- package/dist/ide/toggleHighContrast-DI4ZeqFk.js +113328 -0
- package/dist/ide/tsMode-BKTkt1bt.js +567 -0
- package/dist/ide/typescript-CHC4VYBW.js +257 -0
- package/dist/ide/workers-IG_hD8Jy.js +47 -0
- package/dist/ide/xml-C0QFzMaz.js +130 -0
- package/dist/ide/yaml-o-RP7lYY.js +223 -0
- package/dist/index.d.mts +138 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1335 -0
- package/dist/index.mjs.map +1 -0
- package/dist/manifest-generate.d.mts +89 -0
- package/dist/manifest-generate.d.mts.map +1 -0
- package/dist/manifest-generate.mjs +438 -0
- package/dist/manifest-generate.mjs.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/css/css.js
|
|
2
|
+
var e = {
|
|
3
|
+
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
|
4
|
+
comments: { blockComment: ["/*", "*/"] },
|
|
5
|
+
brackets: [
|
|
6
|
+
["{", "}"],
|
|
7
|
+
["[", "]"],
|
|
8
|
+
["(", ")"]
|
|
9
|
+
],
|
|
10
|
+
autoClosingPairs: [
|
|
11
|
+
{
|
|
12
|
+
open: "{",
|
|
13
|
+
close: "}",
|
|
14
|
+
notIn: ["string", "comment"]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
open: "[",
|
|
18
|
+
close: "]",
|
|
19
|
+
notIn: ["string", "comment"]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
open: "(",
|
|
23
|
+
close: ")",
|
|
24
|
+
notIn: ["string", "comment"]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "\"",
|
|
28
|
+
close: "\"",
|
|
29
|
+
notIn: ["string", "comment"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
open: "'",
|
|
33
|
+
close: "'",
|
|
34
|
+
notIn: ["string", "comment"]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
surroundingPairs: [
|
|
38
|
+
{
|
|
39
|
+
open: "{",
|
|
40
|
+
close: "}"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "[",
|
|
44
|
+
close: "]"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "(",
|
|
48
|
+
close: ")"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
open: "\"",
|
|
52
|
+
close: "\""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
open: "'",
|
|
56
|
+
close: "'"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
folding: { markers: {
|
|
60
|
+
start: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
|
61
|
+
end: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
|
62
|
+
} }
|
|
63
|
+
}, t = {
|
|
64
|
+
defaultToken: "",
|
|
65
|
+
tokenPostfix: ".css",
|
|
66
|
+
ws: "[ \n\r\f]*",
|
|
67
|
+
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
|
68
|
+
brackets: [
|
|
69
|
+
{
|
|
70
|
+
open: "{",
|
|
71
|
+
close: "}",
|
|
72
|
+
token: "delimiter.bracket"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
open: "[",
|
|
76
|
+
close: "]",
|
|
77
|
+
token: "delimiter.bracket"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
open: "(",
|
|
81
|
+
close: ")",
|
|
82
|
+
token: "delimiter.parenthesis"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
open: "<",
|
|
86
|
+
close: ">",
|
|
87
|
+
token: "delimiter.angle"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
tokenizer: {
|
|
91
|
+
root: [{ include: "@selector" }],
|
|
92
|
+
selector: [
|
|
93
|
+
{ include: "@comments" },
|
|
94
|
+
{ include: "@import" },
|
|
95
|
+
{ include: "@strings" },
|
|
96
|
+
["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {
|
|
97
|
+
token: "keyword",
|
|
98
|
+
next: "@keyframedeclaration"
|
|
99
|
+
}],
|
|
100
|
+
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
|
101
|
+
["[@](charset|namespace)", {
|
|
102
|
+
token: "keyword",
|
|
103
|
+
next: "@declarationbody"
|
|
104
|
+
}],
|
|
105
|
+
["(url-prefix)(\\()", ["attribute.value", {
|
|
106
|
+
token: "delimiter.parenthesis",
|
|
107
|
+
next: "@urldeclaration"
|
|
108
|
+
}]],
|
|
109
|
+
["(url)(\\()", ["attribute.value", {
|
|
110
|
+
token: "delimiter.parenthesis",
|
|
111
|
+
next: "@urldeclaration"
|
|
112
|
+
}]],
|
|
113
|
+
{ include: "@selectorname" },
|
|
114
|
+
["[\\*]", "tag"],
|
|
115
|
+
["[>\\+,]", "delimiter"],
|
|
116
|
+
["\\[", {
|
|
117
|
+
token: "delimiter.bracket",
|
|
118
|
+
next: "@selectorattribute"
|
|
119
|
+
}],
|
|
120
|
+
["{", {
|
|
121
|
+
token: "delimiter.bracket",
|
|
122
|
+
next: "@selectorbody"
|
|
123
|
+
}]
|
|
124
|
+
],
|
|
125
|
+
selectorbody: [
|
|
126
|
+
{ include: "@comments" },
|
|
127
|
+
[
|
|
128
|
+
"[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))",
|
|
129
|
+
"attribute.name",
|
|
130
|
+
"@rulevalue"
|
|
131
|
+
],
|
|
132
|
+
["}", {
|
|
133
|
+
token: "delimiter.bracket",
|
|
134
|
+
next: "@pop"
|
|
135
|
+
}]
|
|
136
|
+
],
|
|
137
|
+
selectorname: [["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]],
|
|
138
|
+
selectorattribute: [{ include: "@term" }, ["]", {
|
|
139
|
+
token: "delimiter.bracket",
|
|
140
|
+
next: "@pop"
|
|
141
|
+
}]],
|
|
142
|
+
term: [
|
|
143
|
+
{ include: "@comments" },
|
|
144
|
+
["(url-prefix)(\\()", ["attribute.value", {
|
|
145
|
+
token: "delimiter.parenthesis",
|
|
146
|
+
next: "@urldeclaration"
|
|
147
|
+
}]],
|
|
148
|
+
["(url)(\\()", ["attribute.value", {
|
|
149
|
+
token: "delimiter.parenthesis",
|
|
150
|
+
next: "@urldeclaration"
|
|
151
|
+
}]],
|
|
152
|
+
{ include: "@functioninvocation" },
|
|
153
|
+
{ include: "@numbers" },
|
|
154
|
+
{ include: "@name" },
|
|
155
|
+
{ include: "@strings" },
|
|
156
|
+
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
|
|
157
|
+
[",", "delimiter"]
|
|
158
|
+
],
|
|
159
|
+
rulevalue: [
|
|
160
|
+
{ include: "@comments" },
|
|
161
|
+
{ include: "@strings" },
|
|
162
|
+
{ include: "@term" },
|
|
163
|
+
["!important", "keyword"],
|
|
164
|
+
[
|
|
165
|
+
";",
|
|
166
|
+
"delimiter",
|
|
167
|
+
"@pop"
|
|
168
|
+
],
|
|
169
|
+
["(?=})", {
|
|
170
|
+
token: "",
|
|
171
|
+
next: "@pop"
|
|
172
|
+
}]
|
|
173
|
+
],
|
|
174
|
+
warndebug: [["[@](warn|debug)", {
|
|
175
|
+
token: "keyword",
|
|
176
|
+
next: "@declarationbody"
|
|
177
|
+
}]],
|
|
178
|
+
import: [["[@](import)", {
|
|
179
|
+
token: "keyword",
|
|
180
|
+
next: "@declarationbody"
|
|
181
|
+
}]],
|
|
182
|
+
urldeclaration: [
|
|
183
|
+
{ include: "@strings" },
|
|
184
|
+
["[^)\r\n]+", "string"],
|
|
185
|
+
["\\)", {
|
|
186
|
+
token: "delimiter.parenthesis",
|
|
187
|
+
next: "@pop"
|
|
188
|
+
}]
|
|
189
|
+
],
|
|
190
|
+
parenthizedterm: [{ include: "@term" }, ["\\)", {
|
|
191
|
+
token: "delimiter.parenthesis",
|
|
192
|
+
next: "@pop"
|
|
193
|
+
}]],
|
|
194
|
+
declarationbody: [
|
|
195
|
+
{ include: "@term" },
|
|
196
|
+
[
|
|
197
|
+
";",
|
|
198
|
+
"delimiter",
|
|
199
|
+
"@pop"
|
|
200
|
+
],
|
|
201
|
+
["(?=})", {
|
|
202
|
+
token: "",
|
|
203
|
+
next: "@pop"
|
|
204
|
+
}]
|
|
205
|
+
],
|
|
206
|
+
comments: [[
|
|
207
|
+
"\\/\\*",
|
|
208
|
+
"comment",
|
|
209
|
+
"@comment"
|
|
210
|
+
], ["\\/\\/+.*", "comment"]],
|
|
211
|
+
comment: [
|
|
212
|
+
[
|
|
213
|
+
"\\*\\/",
|
|
214
|
+
"comment",
|
|
215
|
+
"@pop"
|
|
216
|
+
],
|
|
217
|
+
[/[^*/]+/, "comment"],
|
|
218
|
+
[/./, "comment"]
|
|
219
|
+
],
|
|
220
|
+
name: [["@identifier", "attribute.value"]],
|
|
221
|
+
numbers: [["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {
|
|
222
|
+
token: "attribute.value.number",
|
|
223
|
+
next: "@units"
|
|
224
|
+
}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]],
|
|
225
|
+
units: [[
|
|
226
|
+
"(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
|
227
|
+
"attribute.value.unit",
|
|
228
|
+
"@pop"
|
|
229
|
+
]],
|
|
230
|
+
keyframedeclaration: [["@identifier", "attribute.value"], ["{", {
|
|
231
|
+
token: "delimiter.bracket",
|
|
232
|
+
switchTo: "@keyframebody"
|
|
233
|
+
}]],
|
|
234
|
+
keyframebody: [
|
|
235
|
+
{ include: "@term" },
|
|
236
|
+
["{", {
|
|
237
|
+
token: "delimiter.bracket",
|
|
238
|
+
next: "@selectorbody"
|
|
239
|
+
}],
|
|
240
|
+
["}", {
|
|
241
|
+
token: "delimiter.bracket",
|
|
242
|
+
next: "@pop"
|
|
243
|
+
}]
|
|
244
|
+
],
|
|
245
|
+
functioninvocation: [["@identifier\\(", {
|
|
246
|
+
token: "attribute.value",
|
|
247
|
+
next: "@functionarguments"
|
|
248
|
+
}]],
|
|
249
|
+
functionarguments: [
|
|
250
|
+
["\\$@identifier@ws:", "attribute.name"],
|
|
251
|
+
["[,]", "delimiter"],
|
|
252
|
+
{ include: "@term" },
|
|
253
|
+
["\\)", {
|
|
254
|
+
token: "attribute.value",
|
|
255
|
+
next: "@pop"
|
|
256
|
+
}]
|
|
257
|
+
],
|
|
258
|
+
strings: [["~?\"", {
|
|
259
|
+
token: "string",
|
|
260
|
+
next: "@stringenddoublequote"
|
|
261
|
+
}], ["~?'", {
|
|
262
|
+
token: "string",
|
|
263
|
+
next: "@stringendquote"
|
|
264
|
+
}]],
|
|
265
|
+
stringenddoublequote: [
|
|
266
|
+
["\\\\.", "string"],
|
|
267
|
+
["\"", {
|
|
268
|
+
token: "string",
|
|
269
|
+
next: "@pop"
|
|
270
|
+
}],
|
|
271
|
+
[/[^\\"]+/, "string"],
|
|
272
|
+
[".", "string"]
|
|
273
|
+
],
|
|
274
|
+
stringendquote: [
|
|
275
|
+
["\\\\.", "string"],
|
|
276
|
+
["'", {
|
|
277
|
+
token: "string",
|
|
278
|
+
next: "@pop"
|
|
279
|
+
}],
|
|
280
|
+
[/[^\\']+/, "string"],
|
|
281
|
+
[".", "string"]
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
//#endregion
|
|
286
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
|
|
2
|
+
import { t } from "./workers-IG_hD8Jy.js";
|
|
3
|
+
import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y } from "./lspLanguageFeatures-BDyekQt2.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/css/workerManager.js
|
|
5
|
+
var b = 120 * 1e3, x = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
8
|
+
}
|
|
9
|
+
_stopWorker() {
|
|
10
|
+
this._worker &&= (this._worker.dispose(), null), this._client = null;
|
|
11
|
+
}
|
|
12
|
+
dispose() {
|
|
13
|
+
clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
|
|
14
|
+
}
|
|
15
|
+
_checkIfIdle() {
|
|
16
|
+
this._worker && Date.now() - this._lastUsedTime > b && this._stopWorker();
|
|
17
|
+
}
|
|
18
|
+
_getClient() {
|
|
19
|
+
return this._lastUsedTime = Date.now(), this._client ||= (this._worker = t({
|
|
20
|
+
moduleId: "vs/language/css/cssWorker",
|
|
21
|
+
createWorker: () => new Worker(new URL(
|
|
22
|
+
/* @vite-ignore */
|
|
23
|
+
"/assets/css.worker-uWEFNxvl.js",
|
|
24
|
+
"" + import.meta.url
|
|
25
|
+
), { type: "module" }),
|
|
26
|
+
label: this._defaults.languageId,
|
|
27
|
+
createData: {
|
|
28
|
+
options: this._defaults.options,
|
|
29
|
+
languageId: this._defaults.languageId
|
|
30
|
+
}
|
|
31
|
+
}), this._worker.getProxy()), this._client;
|
|
32
|
+
}
|
|
33
|
+
getLanguageServiceWorker(...e) {
|
|
34
|
+
let t;
|
|
35
|
+
return this._getClient().then((e) => {
|
|
36
|
+
t = e;
|
|
37
|
+
}).then((t) => {
|
|
38
|
+
if (this._worker) return this._worker.withSyncedResources(e);
|
|
39
|
+
}).then((e) => t);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/css/cssMode.js
|
|
44
|
+
function S(t) {
|
|
45
|
+
let n = [], s = [], c = new x(t);
|
|
46
|
+
n.push(c);
|
|
47
|
+
let g = (...e) => c.getLanguageServiceWorker(...e);
|
|
48
|
+
function y() {
|
|
49
|
+
let { languageId: n, modeConfiguration: c } = t;
|
|
50
|
+
w(s), c.completionItems && s.push(e.registerCompletionItemProvider(n, new _(g, [
|
|
51
|
+
"/",
|
|
52
|
+
"-",
|
|
53
|
+
":"
|
|
54
|
+
]))), c.hovers && s.push(e.registerHoverProvider(n, new a(g))), c.documentHighlights && s.push(e.registerDocumentHighlightProvider(n, new p(g))), c.definitions && s.push(e.registerDefinitionProvider(n, new f(g))), c.references && s.push(e.registerReferenceProvider(n, new o(g))), c.documentSymbols && s.push(e.registerDocumentSymbolProvider(n, new u(g))), c.rename && s.push(e.registerRenameProvider(n, new m(g))), c.colors && s.push(e.registerColorProvider(n, new l(g))), c.foldingRanges && s.push(e.registerFoldingRangeProvider(n, new v(g))), c.diagnostics && s.push(new h(n, g, t.onDidChange)), c.selectionRanges && s.push(e.registerSelectionRangeProvider(n, new d(g))), c.documentFormattingEdits && s.push(e.registerDocumentFormattingEditProvider(n, new r(g))), c.documentRangeFormattingEdits && s.push(e.registerDocumentRangeFormattingEditProvider(n, new i(g)));
|
|
55
|
+
}
|
|
56
|
+
return y(), n.push(C(s)), C(n);
|
|
57
|
+
}
|
|
58
|
+
function C(e) {
|
|
59
|
+
return { dispose: () => w(e) };
|
|
60
|
+
}
|
|
61
|
+
function w(e) {
|
|
62
|
+
for (; e.length;) e.pop().dispose();
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { _ as CompletionAdapter, f as DefinitionAdapter, h as DiagnosticsAdapter, l as DocumentColorAdapter, r as DocumentFormattingEditProvider, p as DocumentHighlightAdapter, g as DocumentLinkAdapter, i as DocumentRangeFormattingEditProvider, u as DocumentSymbolAdapter, v as FoldingRangeAdapter, a as HoverAdapter, o as ReferenceAdapter, m as RenameAdapter, d as SelectionRangeAdapter, x as WorkerManager, c as fromPosition, s as fromRange, S as setupMode, n as toRange, y as toTextEdit };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: "#" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "{",
|
|
12
|
+
close: "}"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "[",
|
|
16
|
+
close: "]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "\"\"\"",
|
|
24
|
+
close: "\"\"\"",
|
|
25
|
+
notIn: ["string", "comment"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
open: "\"",
|
|
29
|
+
close: "\"",
|
|
30
|
+
notIn: ["string", "comment"]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
surroundingPairs: [
|
|
34
|
+
{
|
|
35
|
+
open: "{",
|
|
36
|
+
close: "}"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
open: "[",
|
|
40
|
+
close: "]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "(",
|
|
44
|
+
close: ")"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "\"\"\"",
|
|
48
|
+
close: "\"\"\""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
open: "\"",
|
|
52
|
+
close: "\""
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
folding: { offSide: !0 }
|
|
56
|
+
}, t = {
|
|
57
|
+
defaultToken: "invalid",
|
|
58
|
+
tokenPostfix: ".gql",
|
|
59
|
+
keywords: [
|
|
60
|
+
"null",
|
|
61
|
+
"true",
|
|
62
|
+
"false",
|
|
63
|
+
"query",
|
|
64
|
+
"mutation",
|
|
65
|
+
"subscription",
|
|
66
|
+
"extend",
|
|
67
|
+
"schema",
|
|
68
|
+
"directive",
|
|
69
|
+
"scalar",
|
|
70
|
+
"type",
|
|
71
|
+
"interface",
|
|
72
|
+
"union",
|
|
73
|
+
"enum",
|
|
74
|
+
"input",
|
|
75
|
+
"implements",
|
|
76
|
+
"fragment",
|
|
77
|
+
"on"
|
|
78
|
+
],
|
|
79
|
+
typeKeywords: [
|
|
80
|
+
"Int",
|
|
81
|
+
"Float",
|
|
82
|
+
"String",
|
|
83
|
+
"Boolean",
|
|
84
|
+
"ID"
|
|
85
|
+
],
|
|
86
|
+
directiveLocations: [
|
|
87
|
+
"SCHEMA",
|
|
88
|
+
"SCALAR",
|
|
89
|
+
"OBJECT",
|
|
90
|
+
"FIELD_DEFINITION",
|
|
91
|
+
"ARGUMENT_DEFINITION",
|
|
92
|
+
"INTERFACE",
|
|
93
|
+
"UNION",
|
|
94
|
+
"ENUM",
|
|
95
|
+
"ENUM_VALUE",
|
|
96
|
+
"INPUT_OBJECT",
|
|
97
|
+
"INPUT_FIELD_DEFINITION",
|
|
98
|
+
"QUERY",
|
|
99
|
+
"MUTATION",
|
|
100
|
+
"SUBSCRIPTION",
|
|
101
|
+
"FIELD",
|
|
102
|
+
"FRAGMENT_DEFINITION",
|
|
103
|
+
"FRAGMENT_SPREAD",
|
|
104
|
+
"INLINE_FRAGMENT",
|
|
105
|
+
"VARIABLE_DEFINITION"
|
|
106
|
+
],
|
|
107
|
+
operators: [
|
|
108
|
+
"=",
|
|
109
|
+
"!",
|
|
110
|
+
"?",
|
|
111
|
+
":",
|
|
112
|
+
"&",
|
|
113
|
+
"|"
|
|
114
|
+
],
|
|
115
|
+
symbols: /[=!?:&|]+/,
|
|
116
|
+
escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,
|
|
117
|
+
tokenizer: {
|
|
118
|
+
root: [
|
|
119
|
+
[/[a-z_][\w$]*/, { cases: {
|
|
120
|
+
"@keywords": "keyword",
|
|
121
|
+
"@default": "key.identifier"
|
|
122
|
+
} }],
|
|
123
|
+
[/[$][\w$]*/, { cases: {
|
|
124
|
+
"@keywords": "keyword",
|
|
125
|
+
"@default": "argument.identifier"
|
|
126
|
+
} }],
|
|
127
|
+
[/[A-Z][\w\$]*/, { cases: {
|
|
128
|
+
"@typeKeywords": "keyword",
|
|
129
|
+
"@default": "type.identifier"
|
|
130
|
+
} }],
|
|
131
|
+
{ include: "@whitespace" },
|
|
132
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
133
|
+
[/@symbols/, { cases: {
|
|
134
|
+
"@operators": "operator",
|
|
135
|
+
"@default": ""
|
|
136
|
+
} }],
|
|
137
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, {
|
|
138
|
+
token: "annotation",
|
|
139
|
+
log: "annotation token: $0"
|
|
140
|
+
}],
|
|
141
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
142
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
143
|
+
[/\d+/, "number"],
|
|
144
|
+
[/[;,.]/, "delimiter"],
|
|
145
|
+
[/"""/, {
|
|
146
|
+
token: "string",
|
|
147
|
+
next: "@mlstring",
|
|
148
|
+
nextEmbedded: "markdown"
|
|
149
|
+
}],
|
|
150
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
151
|
+
[/"/, {
|
|
152
|
+
token: "string.quote",
|
|
153
|
+
bracket: "@open",
|
|
154
|
+
next: "@string"
|
|
155
|
+
}]
|
|
156
|
+
],
|
|
157
|
+
mlstring: [[/[^"]+/, "string"], ["\"\"\"", {
|
|
158
|
+
token: "string",
|
|
159
|
+
next: "@pop",
|
|
160
|
+
nextEmbedded: "@pop"
|
|
161
|
+
}]],
|
|
162
|
+
string: [
|
|
163
|
+
[/[^\\"]+/, "string"],
|
|
164
|
+
[/@escapes/, "string.escape"],
|
|
165
|
+
[/\\./, "string.escape.invalid"],
|
|
166
|
+
[/"/, {
|
|
167
|
+
token: "string.quote",
|
|
168
|
+
bracket: "@close",
|
|
169
|
+
next: "@pop"
|
|
170
|
+
}]
|
|
171
|
+
],
|
|
172
|
+
whitespace: [[/[ \t\r\n]+/, ""], [/#.*$/, "comment"]]
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
//#endregion
|
|
176
|
+
export { e as conf, t as language };
|