monacozen 0.1.0 → 0.2.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/README.md +119 -24
- package/assets/{bat-C6DzPBcU.js → bat-T2vjbQzY.js} +1 -1
- package/assets/{clojure-D8WHGr6v.js → clojure-BvXzD8Uz.js} +1 -1
- package/assets/{coffee-C16Mnhbm.js → coffee-D_yet6sT.js} +1 -1
- package/assets/{cpp-_HbkGdoj.js → cpp-CsfEADPM.js} +1 -1
- package/assets/{csharp-DeGXkEgi.js → csharp-jw3fFksF.js} +1 -1
- package/assets/{css-DmO2GtiT.js → css-FsiUe-xI.js} +1 -1
- package/assets/{css.worker-zFzGcGyJ.js → css.worker-BIsSvM_Q.js} +36 -36
- package/assets/{css.worker-B59bB4vF.js → css.worker-BSHdDU9y.js} +2 -2
- package/assets/cssMode-7U-ime2d.js +65 -0
- package/assets/{cypher-5654EJL_.js → cypher-B8DgU2PH.js} +1 -1
- package/assets/{dart-BjXVSQM-.js → dart-D1x60wEn.js} +1 -1
- package/assets/{dockerfile-DSA8TJLS.js → dockerfile-DSHxsy4G.js} +1 -1
- package/assets/{editor.api-C_6h_pYy.js → editor.api-ZYFspLPt.js} +15851 -13551
- package/assets/editorWebWorkerMain-BioN9fGU.js +33 -0
- package/assets/{editorWebWorkerMain-Cpqca1A3.js → editorWebWorkerMain-DXr8-Jst.js} +2 -2
- package/assets/{elixir-CzC02SL7.js → elixir-Cr7BtjRU.js} +1 -1
- package/assets/{fsharp-DRGCXPNW.js → fsharp-CeVKIr0d.js} +1 -1
- package/assets/{go-CyErB8P9.js → go-BL4_0srD.js} +1 -1
- package/assets/{graphql-CNnvnjR8.js → graphql-mhWekwK0.js} +1 -1
- package/assets/{handlebars-B9HHtHT5.js → handlebars-rQdtgZoQ.js} +2 -2
- package/assets/{hcl-D4a6HBjk.js → hcl-CfyDj6z_.js} +1 -1
- package/assets/{html-B5_5MvV-.js → html-DIDrd2Z7.js} +2 -2
- package/assets/{html.worker-Czi9KUKj.js → html.worker-BrBx6eB3.js} +2 -2
- package/assets/{html.worker-D4M1xqlZ.js → html.worker-CEvqvEpu.js} +27 -27
- package/assets/htmlMode-i6u-9r7u.js +74 -0
- package/assets/{ini-CpSjysbn.js → ini-DhiXkl_g.js} +1 -1
- package/assets/{java-DkRrYYRp.js → java-Ct9YHm5L.js} +1 -1
- package/assets/{javascript-Da2MNB2t.js → javascript-By915NHa.js} +2 -2
- package/assets/{json.worker-pkLWnKxn.js → json.worker-B0PzJ5jL.js} +2 -2
- package/assets/json.worker-CAiVr-gV.js +65 -0
- package/assets/{jsonMode-BtwFVp_X.js → jsonMode-DAP8CNa2.js} +47 -47
- package/assets/{julia-DXDdnD4p.js → julia-BAYXm_pL.js} +1 -1
- package/assets/{kotlin-BNDyMshT.js → kotlin-JEujETri.js} +1 -1
- package/assets/{less-3yDKfG4U.js → less-oHZXXDVD.js} +1 -1
- package/assets/{liquid-DCciKNzb.js → liquid-Cvs1eMgo.js} +2 -2
- package/assets/{lspLanguageFeatures-CAn_K3Js.js → lspLanguageFeatures-D6P77uh_.js} +3 -3
- package/assets/{lua-CqDy9oHE.js → lua-B3ViXcD8.js} +1 -1
- package/assets/{markdown-DIkeztiD.js → markdown-Ggb6Rgvc.js} +1 -1
- package/assets/{mdx-BcOG7QFm.js → mdx-Ce7sXDA4.js} +2 -2
- package/assets/{mips-BUbWxz0r.js → mips-cYdfQChM.js} +1 -1
- package/assets/monaco-d37b1a8f.css +3 -0
- package/assets/{monaco-BMsB0TPD.js → monaco-o5F6wkXp.js} +10917 -9482
- package/assets/{mysql-CX3tETwr.js → mysql-nklBC2QL.js} +1 -1
- package/assets/{objective-c-CK2i53vc.js → objective-c-x5BzCYEv.js} +1 -1
- package/assets/{pascal-wnGRqmNG.js → pascal-DWL5ya_C.js} +1 -1
- package/assets/{perl-DXuijcFO.js → perl-CbRoLks6.js} +1 -1
- package/assets/{pgsql-BFvD7ctB.js → pgsql-CVS-AsDB.js} +1 -1
- package/assets/{php-FZHoZ5C_.js → php-6gZIubF1.js} +1 -1
- package/assets/{powershell-Wf4X7WOf.js → powershell-DKgJI7BG.js} +1 -1
- package/assets/{protobuf-CcMDFVG6.js → protobuf-N0VyW3k9.js} +1 -1
- package/assets/{pug-OPBd_9cN.js → pug-BIMEUctf.js} +1 -1
- package/assets/{python-D2Z49Cw8.js → python-BKt2Winm.js} +2 -2
- package/assets/{r-FHjiK9Ff.js → r-Cb2uCcX6.js} +1 -1
- package/assets/{redis-CLJ_Tkzp.js → redis-D1CRAuQ1.js} +1 -1
- package/assets/{ruby-Dhjv9xsd.js → ruby-BzpgsYNr.js} +1 -1
- package/assets/{rust-Bq7le2bN.js → rust-CkIXqWDr.js} +1 -1
- package/assets/{scala-Bth6QY64.js → scala-CnJ7htCu.js} +1 -1
- package/assets/{scss-DVPfVfp2.js → scss-xP2eAFyY.js} +1 -1
- package/assets/{shell-DYY2DoAm.js → shell-JSjWPSrk.js} +1 -1
- package/assets/{solidity-C2dWya5C.js → solidity-C8AFhoIi.js} +1 -1
- package/assets/{sql-CE5EfRV1.js → sql-DqW-LmZI.js} +1 -1
- package/assets/{swift-v0LuaFKN.js → swift-BcHKQY-M.js} +1 -1
- package/assets/{systemverilog-BRC61WOW.js → systemverilog-Dmu-Ht4V.js} +1 -1
- package/assets/{ts.worker-CokkJ1Lk.js → ts.worker-BAchZA3W.js} +2 -2
- package/assets/{ts.worker-De3FAST6.js → ts.worker-DZhhT1EO.js} +131 -131
- package/assets/{tsMode-cdcRizUc.js → tsMode-C_Fsqh0j.js} +7 -8
- package/assets/{twig-Dq5WyzaF.js → twig-Bj4rwioa.js} +1 -1
- package/assets/{typescript-B25ZZJLy.js → typescript-Djsb1cC9.js} +2 -2
- package/assets/{typespec-DVZXVZWY.js → typespec-xwJ6QpRP.js} +1 -1
- package/assets/{vb--Ows3SAS.js → vb-CMxAjmFH.js} +1 -1
- package/assets/{wgsl-gwRTfDFE.js → wgsl-CTYGQRo2.js} +1 -1
- package/assets/{xml-BD6eVsMx.js → xml-D7cJD5hW.js} +2 -2
- package/assets/{yaml-unVkvP57.js → yaml-B8A0QdVf.js} +2 -2
- package/assets/yaml.worker-Crtsysk5.js +474 -0
- package/assets/yaml.worker-DZ36155v.js +6 -0
- package/lib.d.ts +41 -17
- package/lib.js +2 -0
- package/package.json +1 -1
- package/src/main.js +19 -14
- package/assets/azcli-ue5GhsHI.js +0 -55
- package/assets/cameligo-BoKy-zSd.js +0 -191
- package/assets/csp-DGVEba9U.js +0 -48
- package/assets/cssMode-B-yiAIn5.js +0 -65
- package/assets/ecl-DoDWSDGs.js +0 -228
- package/assets/editorWebWorkerMain-_4oyTYIl.js +0 -33
- package/assets/freemarker2-Jvnudjht.js +0 -718
- package/assets/htmlMode-DcETbRqN.js +0 -74
- package/assets/json.worker-D3-21m4I.js +0 -65
- package/assets/m3-DyBtJGhR.js +0 -195
- package/assets/monaco-ffd8b062.css +0 -3
- package/assets/msdax-95fojGvn.js +0 -158
- package/assets/pascaligo-DR2NqTqc.js +0 -203
- package/assets/pla-Cmb_VVG6.js +0 -148
- package/assets/postiats-DUwtyBVk.js +0 -506
- package/assets/powerquery-wUlwxvME.js +0 -192
- package/assets/qsharp-C4P6iWbB.js +0 -145
- package/assets/razor-CfcSDTvR.js +0 -519
- package/assets/redshift-Cn0YgnO8.js +0 -160
- package/assets/restructuredtext-Ckzl4aRZ.js +0 -289
- package/assets/scheme-BHXdn3HT.js +0 -172
- package/assets/sophia-BdPli0VA.js +0 -149
- package/assets/sparql-Ca6NBL_y.js +0 -126
- package/assets/st-BKcHiAlg.js +0 -478
- package/assets/tcl-Xx48oN1j.js +0 -225
- package/assets/workers-qpP7-_JR.js +0 -48
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/qsharp/qsharp.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
|
-
surroundingPairs: [
|
|
29
|
-
{
|
|
30
|
-
open: "{",
|
|
31
|
-
close: "}"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
open: "[",
|
|
35
|
-
close: "]"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
open: "(",
|
|
39
|
-
close: ")"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
open: "\"",
|
|
43
|
-
close: "\""
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
}, t = {
|
|
47
|
-
keywords: /* @__PURE__ */ "namespace.open.import.export.as.operation.function.body.adjoint.newtype.struct.controlled.if.elif.else.repeat.until.fixup.for.in.while.return.fail.within.apply.Adjoint.Controlled.Adj.Ctl.is.self.auto.distribute.invert.intrinsic.let.set.w/.new.not.and.or.use.borrow.using.borrowing.mutable.internal".split("."),
|
|
48
|
-
typeKeywords: [
|
|
49
|
-
"Unit",
|
|
50
|
-
"Int",
|
|
51
|
-
"BigInt",
|
|
52
|
-
"Double",
|
|
53
|
-
"Bool",
|
|
54
|
-
"String",
|
|
55
|
-
"Qubit",
|
|
56
|
-
"Result",
|
|
57
|
-
"Pauli",
|
|
58
|
-
"Range"
|
|
59
|
-
],
|
|
60
|
-
invalidKeywords: /* @__PURE__ */ "abstract.base.bool.break.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.enum.event.explicit.extern.finally.fixed.float.foreach.goto.implicit.int.interface.lock.long.null.object.operator.out.override.params.private.protected.public.readonly.ref.sbyte.sealed.short.sizeof.stackalloc.static.string.switch.this.throw.try.typeof.unit.ulong.unchecked.unsafe.ushort.virtual.void.volatile".split("."),
|
|
61
|
-
constants: [
|
|
62
|
-
"true",
|
|
63
|
-
"false",
|
|
64
|
-
"PauliI",
|
|
65
|
-
"PauliX",
|
|
66
|
-
"PauliY",
|
|
67
|
-
"PauliZ",
|
|
68
|
-
"One",
|
|
69
|
-
"Zero"
|
|
70
|
-
],
|
|
71
|
-
builtin: /* @__PURE__ */ "X.Y.Z.H.HY.S.T.SWAP.CNOT.CCNOT.MultiX.R.RFrac.Rx.Ry.Rz.R1.R1Frac.Exp.ExpFrac.Measure.M.MultiM.Message.Length.Assert.AssertProb.AssertEqual".split("."),
|
|
72
|
-
operators: /* @__PURE__ */ "and=,<-,->,*,*=,@,!,^,^=,:,::,.,..,==,...,=,=>,>,>=,<,<=,-,-=,!=,or=,%,%=,|,+,+=,?,/,/=,&&&,&&&=,^^^,^^^=,>>>,>>>=,<<<,<<<=,|||,|||=,~~~,_,w/,w/=".split(","),
|
|
73
|
-
namespaceFollows: ["namespace", "open"],
|
|
74
|
-
importsFollows: ["import"],
|
|
75
|
-
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
|
76
|
-
escapes: /\\[\s\S]/,
|
|
77
|
-
tokenizer: {
|
|
78
|
-
root: [
|
|
79
|
-
[/[a-zA-Z_$][\w$]*/, { cases: {
|
|
80
|
-
"@namespaceFollows": {
|
|
81
|
-
token: "keyword.$0",
|
|
82
|
-
next: "@namespace"
|
|
83
|
-
},
|
|
84
|
-
"@importsFollows": {
|
|
85
|
-
token: "keyword.$0",
|
|
86
|
-
next: "@imports"
|
|
87
|
-
},
|
|
88
|
-
"@typeKeywords": "type",
|
|
89
|
-
"@keywords": "keyword",
|
|
90
|
-
"@constants": "constant",
|
|
91
|
-
"@builtin": "keyword",
|
|
92
|
-
"@invalidKeywords": "invalid",
|
|
93
|
-
"@default": "identifier"
|
|
94
|
-
} }],
|
|
95
|
-
{ include: "@whitespace" },
|
|
96
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
97
|
-
[/@symbols/, { cases: {
|
|
98
|
-
"@operators": "operator",
|
|
99
|
-
"@default": ""
|
|
100
|
-
} }],
|
|
101
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
102
|
-
[/\d+/, "number"],
|
|
103
|
-
[/[;,.]/, "delimiter"],
|
|
104
|
-
[/"/, {
|
|
105
|
-
token: "string.quote",
|
|
106
|
-
bracket: "@open",
|
|
107
|
-
next: "@string"
|
|
108
|
-
}]
|
|
109
|
-
],
|
|
110
|
-
string: [
|
|
111
|
-
[/[^\\"]+/, "string"],
|
|
112
|
-
[/@escapes/, "string.escape"],
|
|
113
|
-
[/"/, {
|
|
114
|
-
token: "string.quote",
|
|
115
|
-
bracket: "@close",
|
|
116
|
-
next: "@pop"
|
|
117
|
-
}]
|
|
118
|
-
],
|
|
119
|
-
namespace: [
|
|
120
|
-
{ include: "@whitespace" },
|
|
121
|
-
[/[A-Za-z]\w*/, "namespace"],
|
|
122
|
-
[/[\.]/, "delimiter"],
|
|
123
|
-
[
|
|
124
|
-
"",
|
|
125
|
-
"",
|
|
126
|
-
"@pop"
|
|
127
|
-
]
|
|
128
|
-
],
|
|
129
|
-
imports: [
|
|
130
|
-
{ include: "@whitespace" },
|
|
131
|
-
[/[A-Za-z]\w*(?=\.)/, "namespace"],
|
|
132
|
-
[/[A-Za-z]\w*/, "identifier"],
|
|
133
|
-
[/\*/, "wildcard"],
|
|
134
|
-
[/[\.,]/, "delimiter"],
|
|
135
|
-
[
|
|
136
|
-
"",
|
|
137
|
-
"",
|
|
138
|
-
"@pop"
|
|
139
|
-
]
|
|
140
|
-
],
|
|
141
|
-
whitespace: [[/[ \t\r\n]+/, "white"], [/(\/\/).*/, "comment"]]
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
//#endregion
|
|
145
|
-
export { e as conf, t as language };
|
package/assets/razor-CfcSDTvR.js
DELETED
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./editor.api-C_6h_pYy.js";
|
|
2
|
-
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/razor/razor.js
|
|
3
|
-
var t = [
|
|
4
|
-
"area",
|
|
5
|
-
"base",
|
|
6
|
-
"br",
|
|
7
|
-
"col",
|
|
8
|
-
"embed",
|
|
9
|
-
"hr",
|
|
10
|
-
"img",
|
|
11
|
-
"input",
|
|
12
|
-
"keygen",
|
|
13
|
-
"link",
|
|
14
|
-
"menuitem",
|
|
15
|
-
"meta",
|
|
16
|
-
"param",
|
|
17
|
-
"source",
|
|
18
|
-
"track",
|
|
19
|
-
"wbr"
|
|
20
|
-
], n = {
|
|
21
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
22
|
-
comments: { blockComment: ["<!--", "-->"] },
|
|
23
|
-
brackets: [
|
|
24
|
-
["<!--", "-->"],
|
|
25
|
-
["<", ">"],
|
|
26
|
-
["{", "}"],
|
|
27
|
-
["(", ")"]
|
|
28
|
-
],
|
|
29
|
-
autoClosingPairs: [
|
|
30
|
-
{
|
|
31
|
-
open: "{",
|
|
32
|
-
close: "}"
|
|
33
|
-
},
|
|
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
|
-
surroundingPairs: [
|
|
52
|
-
{
|
|
53
|
-
open: "\"",
|
|
54
|
-
close: "\""
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
open: "'",
|
|
58
|
-
close: "'"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
open: "<",
|
|
62
|
-
close: ">"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
onEnterRules: [{
|
|
66
|
-
beforeText: RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
67
|
-
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
68
|
-
action: { indentAction: e.IndentAction.IndentOutdent }
|
|
69
|
-
}, {
|
|
70
|
-
beforeText: RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
71
|
-
action: { indentAction: e.IndentAction.Indent }
|
|
72
|
-
}]
|
|
73
|
-
}, r = {
|
|
74
|
-
defaultToken: "",
|
|
75
|
-
tokenPostfix: "",
|
|
76
|
-
tokenizer: {
|
|
77
|
-
root: [
|
|
78
|
-
[/@@@@/],
|
|
79
|
-
[/@[^@]/, {
|
|
80
|
-
token: "@rematch",
|
|
81
|
-
switchTo: "@razorInSimpleState.root"
|
|
82
|
-
}],
|
|
83
|
-
[
|
|
84
|
-
/<!DOCTYPE/,
|
|
85
|
-
"metatag.html",
|
|
86
|
-
"@doctype"
|
|
87
|
-
],
|
|
88
|
-
[
|
|
89
|
-
/<!--/,
|
|
90
|
-
"comment.html",
|
|
91
|
-
"@comment"
|
|
92
|
-
],
|
|
93
|
-
[/(<)([\w\-]+)(\/>)/, [
|
|
94
|
-
"delimiter.html",
|
|
95
|
-
"tag.html",
|
|
96
|
-
"delimiter.html"
|
|
97
|
-
]],
|
|
98
|
-
[/(<)(script)/, ["delimiter.html", {
|
|
99
|
-
token: "tag.html",
|
|
100
|
-
next: "@script"
|
|
101
|
-
}]],
|
|
102
|
-
[/(<)(style)/, ["delimiter.html", {
|
|
103
|
-
token: "tag.html",
|
|
104
|
-
next: "@style"
|
|
105
|
-
}]],
|
|
106
|
-
[/(<)([:\w\-]+)/, ["delimiter.html", {
|
|
107
|
-
token: "tag.html",
|
|
108
|
-
next: "@otherTag"
|
|
109
|
-
}]],
|
|
110
|
-
[/(<\/)([\w\-]+)/, ["delimiter.html", {
|
|
111
|
-
token: "tag.html",
|
|
112
|
-
next: "@otherTag"
|
|
113
|
-
}]],
|
|
114
|
-
[/</, "delimiter.html"],
|
|
115
|
-
[/[ \t\r\n]+/],
|
|
116
|
-
[/[^<@]+/]
|
|
117
|
-
],
|
|
118
|
-
doctype: [
|
|
119
|
-
[/@[^@]/, {
|
|
120
|
-
token: "@rematch",
|
|
121
|
-
switchTo: "@razorInSimpleState.comment"
|
|
122
|
-
}],
|
|
123
|
-
[/[^>]+/, "metatag.content.html"],
|
|
124
|
-
[
|
|
125
|
-
/>/,
|
|
126
|
-
"metatag.html",
|
|
127
|
-
"@pop"
|
|
128
|
-
]
|
|
129
|
-
],
|
|
130
|
-
comment: [
|
|
131
|
-
[/@[^@]/, {
|
|
132
|
-
token: "@rematch",
|
|
133
|
-
switchTo: "@razorInSimpleState.comment"
|
|
134
|
-
}],
|
|
135
|
-
[
|
|
136
|
-
/-->/,
|
|
137
|
-
"comment.html",
|
|
138
|
-
"@pop"
|
|
139
|
-
],
|
|
140
|
-
[/[^-]+/, "comment.content.html"],
|
|
141
|
-
[/./, "comment.content.html"]
|
|
142
|
-
],
|
|
143
|
-
otherTag: [
|
|
144
|
-
[/@[^@]/, {
|
|
145
|
-
token: "@rematch",
|
|
146
|
-
switchTo: "@razorInSimpleState.otherTag"
|
|
147
|
-
}],
|
|
148
|
-
[
|
|
149
|
-
/\/?>/,
|
|
150
|
-
"delimiter.html",
|
|
151
|
-
"@pop"
|
|
152
|
-
],
|
|
153
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
154
|
-
[/'([^']*)'/, "attribute.value"],
|
|
155
|
-
[/[\w\-]+/, "attribute.name"],
|
|
156
|
-
[/=/, "delimiter"],
|
|
157
|
-
[/[ \t\r\n]+/]
|
|
158
|
-
],
|
|
159
|
-
script: [
|
|
160
|
-
[/@[^@]/, {
|
|
161
|
-
token: "@rematch",
|
|
162
|
-
switchTo: "@razorInSimpleState.script"
|
|
163
|
-
}],
|
|
164
|
-
[
|
|
165
|
-
/type/,
|
|
166
|
-
"attribute.name",
|
|
167
|
-
"@scriptAfterType"
|
|
168
|
-
],
|
|
169
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
170
|
-
[/'([^']*)'/, "attribute.value"],
|
|
171
|
-
[/[\w\-]+/, "attribute.name"],
|
|
172
|
-
[/=/, "delimiter"],
|
|
173
|
-
[/>/, {
|
|
174
|
-
token: "delimiter.html",
|
|
175
|
-
next: "@scriptEmbedded.text/javascript",
|
|
176
|
-
nextEmbedded: "text/javascript"
|
|
177
|
-
}],
|
|
178
|
-
[/[ \t\r\n]+/],
|
|
179
|
-
[/(<\/)(script\s*)(>)/, [
|
|
180
|
-
"delimiter.html",
|
|
181
|
-
"tag.html",
|
|
182
|
-
{
|
|
183
|
-
token: "delimiter.html",
|
|
184
|
-
next: "@pop"
|
|
185
|
-
}
|
|
186
|
-
]]
|
|
187
|
-
],
|
|
188
|
-
scriptAfterType: [
|
|
189
|
-
[/@[^@]/, {
|
|
190
|
-
token: "@rematch",
|
|
191
|
-
switchTo: "@razorInSimpleState.scriptAfterType"
|
|
192
|
-
}],
|
|
193
|
-
[
|
|
194
|
-
/=/,
|
|
195
|
-
"delimiter",
|
|
196
|
-
"@scriptAfterTypeEquals"
|
|
197
|
-
],
|
|
198
|
-
[/>/, {
|
|
199
|
-
token: "delimiter.html",
|
|
200
|
-
next: "@scriptEmbedded.text/javascript",
|
|
201
|
-
nextEmbedded: "text/javascript"
|
|
202
|
-
}],
|
|
203
|
-
[/[ \t\r\n]+/],
|
|
204
|
-
[/<\/script\s*>/, {
|
|
205
|
-
token: "@rematch",
|
|
206
|
-
next: "@pop"
|
|
207
|
-
}]
|
|
208
|
-
],
|
|
209
|
-
scriptAfterTypeEquals: [
|
|
210
|
-
[/@[^@]/, {
|
|
211
|
-
token: "@rematch",
|
|
212
|
-
switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
|
|
213
|
-
}],
|
|
214
|
-
[/"([^"]*)"/, {
|
|
215
|
-
token: "attribute.value",
|
|
216
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
217
|
-
}],
|
|
218
|
-
[/'([^']*)'/, {
|
|
219
|
-
token: "attribute.value",
|
|
220
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
221
|
-
}],
|
|
222
|
-
[/>/, {
|
|
223
|
-
token: "delimiter.html",
|
|
224
|
-
next: "@scriptEmbedded.text/javascript",
|
|
225
|
-
nextEmbedded: "text/javascript"
|
|
226
|
-
}],
|
|
227
|
-
[/[ \t\r\n]+/],
|
|
228
|
-
[/<\/script\s*>/, {
|
|
229
|
-
token: "@rematch",
|
|
230
|
-
next: "@pop"
|
|
231
|
-
}]
|
|
232
|
-
],
|
|
233
|
-
scriptWithCustomType: [
|
|
234
|
-
[/@[^@]/, {
|
|
235
|
-
token: "@rematch",
|
|
236
|
-
switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
|
|
237
|
-
}],
|
|
238
|
-
[/>/, {
|
|
239
|
-
token: "delimiter.html",
|
|
240
|
-
next: "@scriptEmbedded.$S2",
|
|
241
|
-
nextEmbedded: "$S2"
|
|
242
|
-
}],
|
|
243
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
244
|
-
[/'([^']*)'/, "attribute.value"],
|
|
245
|
-
[/[\w\-]+/, "attribute.name"],
|
|
246
|
-
[/=/, "delimiter"],
|
|
247
|
-
[/[ \t\r\n]+/],
|
|
248
|
-
[/<\/script\s*>/, {
|
|
249
|
-
token: "@rematch",
|
|
250
|
-
next: "@pop"
|
|
251
|
-
}]
|
|
252
|
-
],
|
|
253
|
-
scriptEmbedded: [[/@[^@]/, {
|
|
254
|
-
token: "@rematch",
|
|
255
|
-
switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
|
|
256
|
-
nextEmbedded: "@pop"
|
|
257
|
-
}], [/<\/script/, {
|
|
258
|
-
token: "@rematch",
|
|
259
|
-
next: "@pop",
|
|
260
|
-
nextEmbedded: "@pop"
|
|
261
|
-
}]],
|
|
262
|
-
style: [
|
|
263
|
-
[/@[^@]/, {
|
|
264
|
-
token: "@rematch",
|
|
265
|
-
switchTo: "@razorInSimpleState.style"
|
|
266
|
-
}],
|
|
267
|
-
[
|
|
268
|
-
/type/,
|
|
269
|
-
"attribute.name",
|
|
270
|
-
"@styleAfterType"
|
|
271
|
-
],
|
|
272
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
273
|
-
[/'([^']*)'/, "attribute.value"],
|
|
274
|
-
[/[\w\-]+/, "attribute.name"],
|
|
275
|
-
[/=/, "delimiter"],
|
|
276
|
-
[/>/, {
|
|
277
|
-
token: "delimiter.html",
|
|
278
|
-
next: "@styleEmbedded.text/css",
|
|
279
|
-
nextEmbedded: "text/css"
|
|
280
|
-
}],
|
|
281
|
-
[/[ \t\r\n]+/],
|
|
282
|
-
[/(<\/)(style\s*)(>)/, [
|
|
283
|
-
"delimiter.html",
|
|
284
|
-
"tag.html",
|
|
285
|
-
{
|
|
286
|
-
token: "delimiter.html",
|
|
287
|
-
next: "@pop"
|
|
288
|
-
}
|
|
289
|
-
]]
|
|
290
|
-
],
|
|
291
|
-
styleAfterType: [
|
|
292
|
-
[/@[^@]/, {
|
|
293
|
-
token: "@rematch",
|
|
294
|
-
switchTo: "@razorInSimpleState.styleAfterType"
|
|
295
|
-
}],
|
|
296
|
-
[
|
|
297
|
-
/=/,
|
|
298
|
-
"delimiter",
|
|
299
|
-
"@styleAfterTypeEquals"
|
|
300
|
-
],
|
|
301
|
-
[/>/, {
|
|
302
|
-
token: "delimiter.html",
|
|
303
|
-
next: "@styleEmbedded.text/css",
|
|
304
|
-
nextEmbedded: "text/css"
|
|
305
|
-
}],
|
|
306
|
-
[/[ \t\r\n]+/],
|
|
307
|
-
[/<\/style\s*>/, {
|
|
308
|
-
token: "@rematch",
|
|
309
|
-
next: "@pop"
|
|
310
|
-
}]
|
|
311
|
-
],
|
|
312
|
-
styleAfterTypeEquals: [
|
|
313
|
-
[/@[^@]/, {
|
|
314
|
-
token: "@rematch",
|
|
315
|
-
switchTo: "@razorInSimpleState.styleAfterTypeEquals"
|
|
316
|
-
}],
|
|
317
|
-
[/"([^"]*)"/, {
|
|
318
|
-
token: "attribute.value",
|
|
319
|
-
switchTo: "@styleWithCustomType.$1"
|
|
320
|
-
}],
|
|
321
|
-
[/'([^']*)'/, {
|
|
322
|
-
token: "attribute.value",
|
|
323
|
-
switchTo: "@styleWithCustomType.$1"
|
|
324
|
-
}],
|
|
325
|
-
[/>/, {
|
|
326
|
-
token: "delimiter.html",
|
|
327
|
-
next: "@styleEmbedded.text/css",
|
|
328
|
-
nextEmbedded: "text/css"
|
|
329
|
-
}],
|
|
330
|
-
[/[ \t\r\n]+/],
|
|
331
|
-
[/<\/style\s*>/, {
|
|
332
|
-
token: "@rematch",
|
|
333
|
-
next: "@pop"
|
|
334
|
-
}]
|
|
335
|
-
],
|
|
336
|
-
styleWithCustomType: [
|
|
337
|
-
[/@[^@]/, {
|
|
338
|
-
token: "@rematch",
|
|
339
|
-
switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
|
|
340
|
-
}],
|
|
341
|
-
[/>/, {
|
|
342
|
-
token: "delimiter.html",
|
|
343
|
-
next: "@styleEmbedded.$S2",
|
|
344
|
-
nextEmbedded: "$S2"
|
|
345
|
-
}],
|
|
346
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
347
|
-
[/'([^']*)'/, "attribute.value"],
|
|
348
|
-
[/[\w\-]+/, "attribute.name"],
|
|
349
|
-
[/=/, "delimiter"],
|
|
350
|
-
[/[ \t\r\n]+/],
|
|
351
|
-
[/<\/style\s*>/, {
|
|
352
|
-
token: "@rematch",
|
|
353
|
-
next: "@pop"
|
|
354
|
-
}]
|
|
355
|
-
],
|
|
356
|
-
styleEmbedded: [[/@[^@]/, {
|
|
357
|
-
token: "@rematch",
|
|
358
|
-
switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
|
|
359
|
-
nextEmbedded: "@pop"
|
|
360
|
-
}], [/<\/style/, {
|
|
361
|
-
token: "@rematch",
|
|
362
|
-
next: "@pop",
|
|
363
|
-
nextEmbedded: "@pop"
|
|
364
|
-
}]],
|
|
365
|
-
razorInSimpleState: [
|
|
366
|
-
[
|
|
367
|
-
/@\*/,
|
|
368
|
-
"comment.cs",
|
|
369
|
-
"@razorBlockCommentTopLevel"
|
|
370
|
-
],
|
|
371
|
-
[
|
|
372
|
-
/@[{(]/,
|
|
373
|
-
"metatag.cs",
|
|
374
|
-
"@razorRootTopLevel"
|
|
375
|
-
],
|
|
376
|
-
[/(@)(\s*[\w]+)/, ["metatag.cs", {
|
|
377
|
-
token: "identifier.cs",
|
|
378
|
-
switchTo: "@$S2.$S3"
|
|
379
|
-
}]],
|
|
380
|
-
[/[})]/, {
|
|
381
|
-
token: "metatag.cs",
|
|
382
|
-
switchTo: "@$S2.$S3"
|
|
383
|
-
}],
|
|
384
|
-
[/\*@/, {
|
|
385
|
-
token: "comment.cs",
|
|
386
|
-
switchTo: "@$S2.$S3"
|
|
387
|
-
}]
|
|
388
|
-
],
|
|
389
|
-
razorInEmbeddedState: [
|
|
390
|
-
[
|
|
391
|
-
/@\*/,
|
|
392
|
-
"comment.cs",
|
|
393
|
-
"@razorBlockCommentTopLevel"
|
|
394
|
-
],
|
|
395
|
-
[
|
|
396
|
-
/@[{(]/,
|
|
397
|
-
"metatag.cs",
|
|
398
|
-
"@razorRootTopLevel"
|
|
399
|
-
],
|
|
400
|
-
[/(@)(\s*[\w]+)/, ["metatag.cs", {
|
|
401
|
-
token: "identifier.cs",
|
|
402
|
-
switchTo: "@$S2.$S3",
|
|
403
|
-
nextEmbedded: "$S3"
|
|
404
|
-
}]],
|
|
405
|
-
[/[})]/, {
|
|
406
|
-
token: "metatag.cs",
|
|
407
|
-
switchTo: "@$S2.$S3",
|
|
408
|
-
nextEmbedded: "$S3"
|
|
409
|
-
}],
|
|
410
|
-
[/\*@/, {
|
|
411
|
-
token: "comment.cs",
|
|
412
|
-
switchTo: "@$S2.$S3",
|
|
413
|
-
nextEmbedded: "$S3"
|
|
414
|
-
}]
|
|
415
|
-
],
|
|
416
|
-
razorBlockCommentTopLevel: [
|
|
417
|
-
[
|
|
418
|
-
/\*@/,
|
|
419
|
-
"@rematch",
|
|
420
|
-
"@pop"
|
|
421
|
-
],
|
|
422
|
-
[/[^*]+/, "comment.cs"],
|
|
423
|
-
[/./, "comment.cs"]
|
|
424
|
-
],
|
|
425
|
-
razorBlockComment: [
|
|
426
|
-
[
|
|
427
|
-
/\*@/,
|
|
428
|
-
"comment.cs",
|
|
429
|
-
"@pop"
|
|
430
|
-
],
|
|
431
|
-
[/[^*]+/, "comment.cs"],
|
|
432
|
-
[/./, "comment.cs"]
|
|
433
|
-
],
|
|
434
|
-
razorRootTopLevel: [
|
|
435
|
-
[
|
|
436
|
-
/\{/,
|
|
437
|
-
"delimiter.bracket.cs",
|
|
438
|
-
"@razorRoot"
|
|
439
|
-
],
|
|
440
|
-
[
|
|
441
|
-
/\(/,
|
|
442
|
-
"delimiter.parenthesis.cs",
|
|
443
|
-
"@razorRoot"
|
|
444
|
-
],
|
|
445
|
-
[
|
|
446
|
-
/[})]/,
|
|
447
|
-
"@rematch",
|
|
448
|
-
"@pop"
|
|
449
|
-
],
|
|
450
|
-
{ include: "razorCommon" }
|
|
451
|
-
],
|
|
452
|
-
razorRoot: [
|
|
453
|
-
[
|
|
454
|
-
/\{/,
|
|
455
|
-
"delimiter.bracket.cs",
|
|
456
|
-
"@razorRoot"
|
|
457
|
-
],
|
|
458
|
-
[
|
|
459
|
-
/\(/,
|
|
460
|
-
"delimiter.parenthesis.cs",
|
|
461
|
-
"@razorRoot"
|
|
462
|
-
],
|
|
463
|
-
[
|
|
464
|
-
/\}/,
|
|
465
|
-
"delimiter.bracket.cs",
|
|
466
|
-
"@pop"
|
|
467
|
-
],
|
|
468
|
-
[
|
|
469
|
-
/\)/,
|
|
470
|
-
"delimiter.parenthesis.cs",
|
|
471
|
-
"@pop"
|
|
472
|
-
],
|
|
473
|
-
{ include: "razorCommon" }
|
|
474
|
-
],
|
|
475
|
-
razorCommon: [
|
|
476
|
-
[/[a-zA-Z_]\w*/, { cases: {
|
|
477
|
-
"@razorKeywords": { token: "keyword.cs" },
|
|
478
|
-
"@default": "identifier.cs"
|
|
479
|
-
} }],
|
|
480
|
-
[/[\[\]]/, "delimiter.array.cs"],
|
|
481
|
-
[/[ \t\r\n]+/],
|
|
482
|
-
[/\/\/.*$/, "comment.cs"],
|
|
483
|
-
[
|
|
484
|
-
/@\*/,
|
|
485
|
-
"comment.cs",
|
|
486
|
-
"@razorBlockComment"
|
|
487
|
-
],
|
|
488
|
-
[/"([^"]*)"/, "string.cs"],
|
|
489
|
-
[/'([^']*)'/, "string.cs"],
|
|
490
|
-
[/(<)([\w\-]+)(\/>)/, [
|
|
491
|
-
"delimiter.html",
|
|
492
|
-
"tag.html",
|
|
493
|
-
"delimiter.html"
|
|
494
|
-
]],
|
|
495
|
-
[/(<)([\w\-]+)(>)/, [
|
|
496
|
-
"delimiter.html",
|
|
497
|
-
"tag.html",
|
|
498
|
-
"delimiter.html"
|
|
499
|
-
]],
|
|
500
|
-
[/(<\/)([\w\-]+)(>)/, [
|
|
501
|
-
"delimiter.html",
|
|
502
|
-
"tag.html",
|
|
503
|
-
"delimiter.html"
|
|
504
|
-
]],
|
|
505
|
-
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
|
|
506
|
-
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
|
|
507
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
|
|
508
|
-
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
|
|
509
|
-
[/0[0-7']*[0-7]/, "number.octal.cs"],
|
|
510
|
-
[/0[bB][0-1']*[0-1]/, "number.binary.cs"],
|
|
511
|
-
[/\d[\d']*/, "number.cs"],
|
|
512
|
-
[/\d/, "number.cs"]
|
|
513
|
-
]
|
|
514
|
-
},
|
|
515
|
-
razorKeywords: /* @__PURE__ */ "abstract.as.async.await.base.bool.break.by.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.descending.explicit.event.extern.else.enum.false.finally.fixed.float.for.foreach.from.goto.group.if.implicit.in.int.interface.internal.into.is.lock.long.nameof.new.null.namespace.object.operator.out.override.orderby.params.private.protected.public.readonly.ref.return.switch.struct.sbyte.sealed.short.sizeof.stackalloc.static.string.select.this.throw.true.try.typeof.uint.ulong.unchecked.unsafe.ushort.using.var.virtual.volatile.void.when.while.where.yield.model.inject".split("."),
|
|
516
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
|
517
|
-
};
|
|
518
|
-
//#endregion
|
|
519
|
-
export { n as conf, r as language };
|