monacozen 0.0.1 → 0.1.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 +124 -0
- package/assets/antimono-ClsI0fxy.js +5 -0
- package/assets/antimono-zBXMptjq.css +1 -0
- package/assets/azcli-ue5GhsHI.js +55 -0
- package/assets/bat-C6DzPBcU.js +125 -0
- package/assets/bicep-B6UDBWZN.js +220 -0
- package/assets/cameligo-BoKy-zSd.js +191 -0
- package/assets/clojure-D8WHGr6v.js +148 -0
- package/assets/coffee-C16Mnhbm.js +262 -0
- package/assets/cpp-_HbkGdoj.js +232 -0
- package/assets/csharp-DeGXkEgi.js +262 -0
- package/assets/csp-DGVEba9U.js +48 -0
- package/assets/css-DmO2GtiT.js +286 -0
- package/assets/css.worker-B59bB4vF.js +6 -0
- package/assets/css.worker-zFzGcGyJ.js +96 -0
- package/assets/cssMode-B-yiAIn5.js +65 -0
- package/assets/cypher-5654EJL_.js +214 -0
- package/assets/dart-BjXVSQM-.js +238 -0
- package/assets/dist-Bx9hOuoB.js +624 -0
- package/assets/dockerfile-DSA8TJLS.js +193 -0
- package/assets/ecl-DoDWSDGs.js +228 -0
- package/assets/editor.api-C_6h_pYy.js +83476 -0
- package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
- package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
- package/assets/elixir-CzC02SL7.js +525 -0
- package/assets/freemarker2-Jvnudjht.js +718 -0
- package/assets/fsharp-DRGCXPNW.js +149 -0
- package/assets/go-CyErB8P9.js +167 -0
- package/assets/graphql-CNnvnjR8.js +176 -0
- package/assets/handlebars-B9HHtHT5.js +412 -0
- package/assets/hcl-D4a6HBjk.js +221 -0
- package/assets/html-B5_5MvV-.js +333 -0
- package/assets/html.worker-Czi9KUKj.js +6 -0
- package/assets/html.worker-D4M1xqlZ.js +509 -0
- package/assets/htmlMode-DcETbRqN.js +74 -0
- package/assets/ini-CpSjysbn.js +96 -0
- package/assets/java-DkRrYYRp.js +175 -0
- package/assets/javascript-Da2MNB2t.js +20 -0
- package/assets/json.worker-D3-21m4I.js +65 -0
- package/assets/json.worker-pkLWnKxn.js +6 -0
- package/assets/jsonMode-BtwFVp_X.js +450 -0
- package/assets/julia-DXDdnD4p.js +416 -0
- package/assets/kotlin-BNDyMshT.js +184 -0
- package/assets/less-3yDKfG4U.js +244 -0
- package/assets/liquid-DCciKNzb.js +199 -0
- package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
- package/assets/lua-CqDy9oHE.js +202 -0
- package/assets/m3-DyBtJGhR.js +195 -0
- package/assets/main-16cPxgwS.js +107 -0
- package/assets/main-CB71Lf5W.js +129 -0
- package/assets/main-HEYSEiwe.js +66 -0
- package/assets/markdown-DIkeztiD.js +264 -0
- package/assets/mdx-BcOG7QFm.js +329 -0
- package/assets/mips-BUbWxz0r.js +130 -0
- package/assets/monaco-BMsB0TPD.js +39430 -0
- package/assets/monaco-ffd8b062.css +3 -0
- package/assets/msdax-95fojGvn.js +158 -0
- package/assets/mysql-CX3tETwr.js +170 -0
- package/assets/objective-c-CK2i53vc.js +146 -0
- package/assets/pascal-wnGRqmNG.js +178 -0
- package/assets/pascaligo-DR2NqTqc.js +203 -0
- package/assets/perl-DXuijcFO.js +318 -0
- package/assets/pgsql-BFvD7ctB.js +160 -0
- package/assets/php-FZHoZ5C_.js +473 -0
- package/assets/pla-Cmb_VVG6.js +148 -0
- package/assets/postiats-DUwtyBVk.js +506 -0
- package/assets/powerquery-wUlwxvME.js +192 -0
- package/assets/powershell-Wf4X7WOf.js +213 -0
- package/assets/protobuf-CcMDFVG6.js +661 -0
- package/assets/pug-OPBd_9cN.js +302 -0
- package/assets/python-D2Z49Cw8.js +254 -0
- package/assets/qsharp-C4P6iWbB.js +145 -0
- package/assets/r-FHjiK9Ff.js +191 -0
- package/assets/razor-CfcSDTvR.js +519 -0
- package/assets/redis-CLJ_Tkzp.js +125 -0
- package/assets/redshift-Cn0YgnO8.js +160 -0
- package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
- package/assets/ruby-Dhjv9xsd.js +529 -0
- package/assets/rust-Bq7le2bN.js +180 -0
- package/assets/scala-Bth6QY64.js +553 -0
- package/assets/scheme-BHXdn3HT.js +172 -0
- package/assets/scss-DVPfVfp2.js +419 -0
- package/assets/shell-DYY2DoAm.js +225 -0
- package/assets/solidity-C2dWya5C.js +149 -0
- package/assets/sophia-BdPli0VA.js +149 -0
- package/assets/sparql-Ca6NBL_y.js +126 -0
- package/assets/sql-CE5EfRV1.js +173 -0
- package/assets/st-BKcHiAlg.js +478 -0
- package/assets/swift-v0LuaFKN.js +215 -0
- package/assets/systemverilog-BRC61WOW.js +300 -0
- package/assets/tcl-Xx48oN1j.js +225 -0
- package/assets/ts.worker-CokkJ1Lk.js +6 -0
- package/assets/ts.worker-De3FAST6.js +67741 -0
- package/assets/tsMode-cdcRizUc.js +567 -0
- package/assets/twig-Dq5WyzaF.js +390 -0
- package/assets/typescript-B25ZZJLy.js +257 -0
- package/assets/typespec-DVZXVZWY.js +236 -0
- package/assets/vb--Ows3SAS.js +262 -0
- package/assets/wgsl-gwRTfDFE.js +147 -0
- package/assets/workers-qpP7-_JR.js +48 -0
- package/assets/xml-BD6eVsMx.js +130 -0
- package/assets/yaml-unVkvP57.js +223 -0
- package/lib.d.ts +8379 -0
- package/package.json +1 -1
- package/src/main.js +24 -0
- package/index.d.ts +0 -6
- package/index.js +0 -1
- package/readme.md +0 -1
- /package/{license.txt → LICENSE} +0 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/r/r.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
|
+
}
|
|
26
|
+
],
|
|
27
|
+
surroundingPairs: [
|
|
28
|
+
{
|
|
29
|
+
open: "{",
|
|
30
|
+
close: "}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
open: "[",
|
|
34
|
+
close: "]"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
open: "(",
|
|
38
|
+
close: ")"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "\"",
|
|
42
|
+
close: "\""
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}, t = {
|
|
46
|
+
defaultToken: "",
|
|
47
|
+
tokenPostfix: ".r",
|
|
48
|
+
roxygen: /* @__PURE__ */ "@alias.@aliases.@assignee.@author.@backref.@callGraph.@callGraphDepth.@callGraphPrimitives.@concept.@describeIn.@description.@details.@docType.@encoding.@evalNamespace.@evalRd.@example.@examples.@export.@exportClass.@exportMethod.@exportPattern.@family.@field.@formals.@format.@import.@importClassesFrom.@importFrom.@importMethodsFrom.@include.@inherit.@inheritDotParams.@inheritParams.@inheritSection.@keywords.@md.@method.@name.@noMd.@noRd.@note.@param.@rawNamespace.@rawRd.@rdname.@references.@return.@S3method.@section.@seealso.@setClass.@slot.@source.@template.@templateVar.@title.@TODO.@usage.@useDynLib".split("."),
|
|
49
|
+
constants: [
|
|
50
|
+
"NULL",
|
|
51
|
+
"FALSE",
|
|
52
|
+
"TRUE",
|
|
53
|
+
"NA",
|
|
54
|
+
"Inf",
|
|
55
|
+
"NaN",
|
|
56
|
+
"NA_integer_",
|
|
57
|
+
"NA_real_",
|
|
58
|
+
"NA_complex_",
|
|
59
|
+
"NA_character_",
|
|
60
|
+
"T",
|
|
61
|
+
"F",
|
|
62
|
+
"LETTERS",
|
|
63
|
+
"letters",
|
|
64
|
+
"month.abb",
|
|
65
|
+
"month.name",
|
|
66
|
+
"pi",
|
|
67
|
+
"R.version.string"
|
|
68
|
+
],
|
|
69
|
+
keywords: /* @__PURE__ */ "break,next,return,if,else,for,in,repeat,while,array,category,character,complex,double,function,integer,list,logical,matrix,numeric,vector,data.frame,factor,library,require,attach,detach,source".split(","),
|
|
70
|
+
special: [
|
|
71
|
+
"\\n",
|
|
72
|
+
"\\r",
|
|
73
|
+
"\\t",
|
|
74
|
+
"\\b",
|
|
75
|
+
"\\a",
|
|
76
|
+
"\\f",
|
|
77
|
+
"\\v",
|
|
78
|
+
"\\'",
|
|
79
|
+
"\\\"",
|
|
80
|
+
"\\\\"
|
|
81
|
+
],
|
|
82
|
+
brackets: [
|
|
83
|
+
{
|
|
84
|
+
open: "{",
|
|
85
|
+
close: "}",
|
|
86
|
+
token: "delimiter.curly"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
open: "[",
|
|
90
|
+
close: "]",
|
|
91
|
+
token: "delimiter.bracket"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
open: "(",
|
|
95
|
+
close: ")",
|
|
96
|
+
token: "delimiter.parenthesis"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
tokenizer: {
|
|
100
|
+
root: [
|
|
101
|
+
{ include: "@numbers" },
|
|
102
|
+
{ include: "@strings" },
|
|
103
|
+
[/[{}\[\]()]/, "@brackets"],
|
|
104
|
+
{ include: "@operators" },
|
|
105
|
+
[/#'$/, "comment.doc"],
|
|
106
|
+
[
|
|
107
|
+
/#'/,
|
|
108
|
+
"comment.doc",
|
|
109
|
+
"@roxygen"
|
|
110
|
+
],
|
|
111
|
+
[/(^#.*$)/, "comment"],
|
|
112
|
+
[/\s+/, "white"],
|
|
113
|
+
[/[,:;]/, "delimiter"],
|
|
114
|
+
[/@[a-zA-Z]\w*/, "tag"],
|
|
115
|
+
[/[a-zA-Z]\w*/, { cases: {
|
|
116
|
+
"@keywords": "keyword",
|
|
117
|
+
"@constants": "constant",
|
|
118
|
+
"@default": "identifier"
|
|
119
|
+
} }]
|
|
120
|
+
],
|
|
121
|
+
roxygen: [
|
|
122
|
+
[/@\w+/, { cases: {
|
|
123
|
+
"@roxygen": "tag",
|
|
124
|
+
"@eos": {
|
|
125
|
+
token: "comment.doc",
|
|
126
|
+
next: "@pop"
|
|
127
|
+
},
|
|
128
|
+
"@default": "comment.doc"
|
|
129
|
+
} }],
|
|
130
|
+
[/\s+/, { cases: {
|
|
131
|
+
"@eos": {
|
|
132
|
+
token: "comment.doc",
|
|
133
|
+
next: "@pop"
|
|
134
|
+
},
|
|
135
|
+
"@default": "comment.doc"
|
|
136
|
+
} }],
|
|
137
|
+
[/.*/, {
|
|
138
|
+
token: "comment.doc",
|
|
139
|
+
next: "@pop"
|
|
140
|
+
}]
|
|
141
|
+
],
|
|
142
|
+
numbers: [[/0[xX][0-9a-fA-F]+/, "number.hex"], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]],
|
|
143
|
+
operators: [
|
|
144
|
+
[/<{1,2}-/, "operator"],
|
|
145
|
+
[/->{1,2}/, "operator"],
|
|
146
|
+
[/%[^%\s]+%/, "operator"],
|
|
147
|
+
[/\*\*/, "operator"],
|
|
148
|
+
[/%%/, "operator"],
|
|
149
|
+
[/&&/, "operator"],
|
|
150
|
+
[/\|\|/, "operator"],
|
|
151
|
+
[/<</, "operator"],
|
|
152
|
+
[/>>/, "operator"],
|
|
153
|
+
[/[-+=&|!<>^~*/:$]/, "operator"]
|
|
154
|
+
],
|
|
155
|
+
strings: [[
|
|
156
|
+
/'/,
|
|
157
|
+
"string.escape",
|
|
158
|
+
"@stringBody"
|
|
159
|
+
], [
|
|
160
|
+
/"/,
|
|
161
|
+
"string.escape",
|
|
162
|
+
"@dblStringBody"
|
|
163
|
+
]],
|
|
164
|
+
stringBody: [
|
|
165
|
+
[/\\./, { cases: {
|
|
166
|
+
"@special": "string",
|
|
167
|
+
"@default": "error-token"
|
|
168
|
+
} }],
|
|
169
|
+
[
|
|
170
|
+
/'/,
|
|
171
|
+
"string.escape",
|
|
172
|
+
"@popall"
|
|
173
|
+
],
|
|
174
|
+
[/./, "string"]
|
|
175
|
+
],
|
|
176
|
+
dblStringBody: [
|
|
177
|
+
[/\\./, { cases: {
|
|
178
|
+
"@special": "string",
|
|
179
|
+
"@default": "error-token"
|
|
180
|
+
} }],
|
|
181
|
+
[
|
|
182
|
+
/"/,
|
|
183
|
+
"string.escape",
|
|
184
|
+
"@popall"
|
|
185
|
+
],
|
|
186
|
+
[/./, "string"]
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
//#endregion
|
|
191
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,519 @@
|
|
|
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 };
|