@univerjs/uniscript 0.3.0 → 0.4.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. package/lib/abap-BZS-1p12.js +6 -0
  2. package/lib/abap-D8H3nII2.mjs +1404 -0
  3. package/lib/apex-B2xdRF0k.js +6 -0
  4. package/lib/apex-BVHYDV51.mjs +334 -0
  5. package/lib/azcli-BwJ4gbR1.mjs +74 -0
  6. package/lib/azcli-CKk2q0zF.js +6 -0
  7. package/lib/bat-BDmMqWXx.mjs +106 -0
  8. package/lib/bat-Ehz5Z_mk.js +6 -0
  9. package/lib/bicep-B5L2IbSj.mjs +110 -0
  10. package/lib/bicep-WbLMPUMj.js +7 -0
  11. package/lib/cameligo-B_ldnAvM.js +6 -0
  12. package/lib/cameligo-CmyOPZUd.mjs +180 -0
  13. package/lib/cjs/index.js +1 -9
  14. package/lib/clojure-Dg-qgg-1.js +6 -0
  15. package/lib/clojure-iSXHsTlR.mjs +767 -0
  16. package/lib/coffee-BCg0pb49.js +6 -0
  17. package/lib/coffee-BUCk2FHC.mjs +238 -0
  18. package/lib/cpp-CJWZ7Zo7.js +6 -0
  19. package/lib/cpp-MUyeqRt5.mjs +395 -0
  20. package/lib/csharp-B9vyMfVU.mjs +332 -0
  21. package/lib/csharp-BZypj8XG.js +6 -0
  22. package/lib/csp-BfXxGnNN.js +6 -0
  23. package/lib/csp-CbylPXe5.mjs +59 -0
  24. package/lib/css-BPDnvT2s.js +8 -0
  25. package/lib/css-BQSMT8k7.mjs +193 -0
  26. package/lib/cssMode-B_of5tVd.js +9 -0
  27. package/lib/cssMode-BuX-eUHc.mjs +1604 -0
  28. package/lib/cypher-3bNWMNCJ.js +6 -0
  29. package/lib/cypher-D7IWy_82.mjs +269 -0
  30. package/lib/dart-BCVbUKaH.mjs +287 -0
  31. package/lib/dart-C9Glm5m-.js +6 -0
  32. package/lib/dockerfile-CjnlcV5o.js +6 -0
  33. package/lib/dockerfile-D2-hSnDX.mjs +136 -0
  34. package/lib/ecl-DRJlPmOb.mjs +462 -0
  35. package/lib/ecl-UyoSfv7F.js +6 -0
  36. package/lib/elixir-Bol0p0Ia.js +6 -0
  37. package/lib/elixir-D8NBXKCb.mjs +575 -0
  38. package/lib/es/index.js +5 -262
  39. package/lib/flow9-Be1OUdJl.js +6 -0
  40. package/lib/flow9-Dp7h8rKW.mjs +148 -0
  41. package/lib/freemarker2-D8-fH4uC.mjs +1001 -0
  42. package/lib/freemarker2-S5ay_GEf.js +8 -0
  43. package/lib/fsharp-CJxdVP7r.mjs +223 -0
  44. package/lib/fsharp-CKIYWNYJ.js +6 -0
  45. package/lib/go-DWj6zslQ.js +6 -0
  46. package/lib/go-IPaMO3Uz.mjs +224 -0
  47. package/lib/graphql-BzJpwfxN.js +6 -0
  48. package/lib/graphql-CMoDK5uf.mjs +157 -0
  49. package/lib/handlebars-CEMNnGaU.mjs +427 -0
  50. package/lib/handlebars-CM3PRDRO.js +6 -0
  51. package/lib/hcl-BCY6T0iq.js +6 -0
  52. package/lib/hcl-BTAYK4pT.mjs +189 -0
  53. package/lib/html-BSUn7oJR.mjs +316 -0
  54. package/lib/html-Df-Osxjs.js +6 -0
  55. package/lib/htmlMode-Bj4CfAzA.js +9 -0
  56. package/lib/htmlMode-xJPwX0cD.mjs +1615 -0
  57. package/lib/index-D6nY5NdF.mjs +116821 -0
  58. package/lib/index-rYV4VmC2.js +1163 -0
  59. package/lib/index.css +1 -1
  60. package/lib/ini-CC3_THb4.js +6 -0
  61. package/lib/ini-CiaphB6F.mjs +77 -0
  62. package/lib/java-CwRV8Dsg.js +6 -0
  63. package/lib/java-DxksziCw.mjs +238 -0
  64. package/lib/javascript-D1eKEotE.js +6 -0
  65. package/lib/javascript-c8D1_K05.mjs +76 -0
  66. package/lib/jsonMode-8-L3-E9k.mjs +2042 -0
  67. package/lib/jsonMode-BdBVsN9_.js +15 -0
  68. package/lib/julia-7Z1jwT4W.js +6 -0
  69. package/lib/julia-TTty8och.mjs +517 -0
  70. package/lib/kotlin-BAXgl2QX.js +6 -0
  71. package/lib/kotlin-Dzand-bM.mjs +259 -0
  72. package/lib/less-CSG9Zdoy.js +7 -0
  73. package/lib/less-CWDFQI_i.mjs +168 -0
  74. package/lib/lexon-BiTtMD9F.js +6 -0
  75. package/lib/lexon-bZpjZioh.mjs +163 -0
  76. package/lib/liquid-BmlJOXgY.js +6 -0
  77. package/lib/liquid-Bs7DM5cg.mjs +248 -0
  78. package/lib/locale/fa-IR.json +17 -0
  79. package/lib/lua-CoWYKXUu.mjs +168 -0
  80. package/lib/lua-o7UTFJ05.js +6 -0
  81. package/lib/m3-DIJY3uEe.mjs +216 -0
  82. package/lib/m3-DOYTRLxi.js +6 -0
  83. package/lib/markdown-CDlkMTMZ.mjs +235 -0
  84. package/lib/markdown-Di5faXtP.js +6 -0
  85. package/lib/mdx-BEI71kqO.mjs +173 -0
  86. package/lib/mdx-DJV2KJ98.js +6 -0
  87. package/lib/mips-CIiuS33B.mjs +204 -0
  88. package/lib/mips-CjGjcf9D.js +6 -0
  89. package/lib/msdax-4_jBeazN.mjs +381 -0
  90. package/lib/msdax-DZFpIwAH.js +6 -0
  91. package/lib/mysql-6Y0DL_eO.js +6 -0
  92. package/lib/mysql-D_KZRjSR.mjs +884 -0
  93. package/lib/objective-c-7nsY1fc1.mjs +189 -0
  94. package/lib/objective-c-BtrzMwBz.js +6 -0
  95. package/lib/pascal-BF06Dt9I.js +6 -0
  96. package/lib/pascal-BHpF9PW1.mjs +257 -0
  97. package/lib/pascaligo-BDrxVOcH.js +6 -0
  98. package/lib/pascaligo-C3mRbxmU.mjs +170 -0
  99. package/lib/perl-BMlqAyyD.js +6 -0
  100. package/lib/perl-F3tWDMLI.mjs +632 -0
  101. package/lib/pgsql-D62t1RD_.mjs +857 -0
  102. package/lib/pgsql-DXYBcnYD.js +6 -0
  103. package/lib/php-C8GGPjjI.mjs +506 -0
  104. package/lib/php-DmDmMNs3.js +6 -0
  105. package/lib/pla-2A6q3K8_.js +6 -0
  106. package/lib/pla-C_W_x2fV.mjs +143 -0
  107. package/lib/postiats-CMS8WwLg.mjs +913 -0
  108. package/lib/postiats-DQ-6iLGI.js +6 -0
  109. package/lib/powerquery-CuZPk7NC.js +6 -0
  110. package/lib/powerquery-Dcs0XplE.mjs +896 -0
  111. package/lib/powershell-Brx1N_3T.mjs +245 -0
  112. package/lib/powershell-D7BqJxnS.js +6 -0
  113. package/lib/protobuf-CkqkhuUG.js +7 -0
  114. package/lib/protobuf-UEJDuX6l.mjs +426 -0
  115. package/lib/pug-65DF18O8.js +6 -0
  116. package/lib/pug-LDwDmrMc.mjs +408 -0
  117. package/lib/python-BOeTitp9.mjs +309 -0
  118. package/lib/python-DRyE-VQQ.js +6 -0
  119. package/lib/qsharp-Cb7hPwnM.mjs +307 -0
  120. package/lib/qsharp-Dw07PXbd.js +6 -0
  121. package/lib/r-BHuY0po5.js +6 -0
  122. package/lib/r-BiFgSgcs.mjs +249 -0
  123. package/lib/razor-D0RPXCAO.mjs +558 -0
  124. package/lib/razor-DtDOotKq.js +6 -0
  125. package/lib/redis-BdzqoKC2.mjs +308 -0
  126. package/lib/redis-_Q4kv9ug.js +6 -0
  127. package/lib/redshift-DNNCHCLR.js +6 -0
  128. package/lib/redshift-Df6PoiEL.mjs +815 -0
  129. package/lib/restructuredtext-C9FM3r80.js +6 -0
  130. package/lib/restructuredtext-CW0ZtQ2l.mjs +180 -0
  131. package/lib/ruby-DyIFepcy.mjs +517 -0
  132. package/lib/ruby-DyJmXCYh.js +6 -0
  133. package/lib/rust-BiRHKB0S.mjs +349 -0
  134. package/lib/rust-DVvzZ_uH.js +6 -0
  135. package/lib/sb-CFwmZh3c.js +6 -0
  136. package/lib/sb-CahkGwPC.mjs +121 -0
  137. package/lib/scala-Cg9Wfw6B.mjs +376 -0
  138. package/lib/scala-DjaRe0PR.js +6 -0
  139. package/lib/scheme-Bqb0wlMX.mjs +114 -0
  140. package/lib/scheme-ZdeLzG0d.js +6 -0
  141. package/lib/scss-3qd2syug.mjs +268 -0
  142. package/lib/scss-Dqv1RljX.js +8 -0
  143. package/lib/shell-B5iW6U-v.mjs +227 -0
  144. package/lib/shell-BJ5zD_-e.js +6 -0
  145. package/lib/solidity-8Ys0iSgd.mjs +1373 -0
  146. package/lib/solidity-CagYWQAe.js +6 -0
  147. package/lib/sophia-PnZfErC3.mjs +205 -0
  148. package/lib/sophia-szuux90p.js +6 -0
  149. package/lib/sparql-CXz1-gkd.js +6 -0
  150. package/lib/sparql-CgWX-KRM.mjs +207 -0
  151. package/lib/sql-CN3Vg4Sm.mjs +859 -0
  152. package/lib/sql-CWZ5x4mg.js +6 -0
  153. package/lib/st-CcWMPoh3.js +6 -0
  154. package/lib/st-DKDuarOh.mjs +422 -0
  155. package/lib/swift-DUBoAkDR.js +8 -0
  156. package/lib/swift-DnXH6Con.mjs +318 -0
  157. package/lib/systemverilog-5hQzl-99.js +6 -0
  158. package/lib/systemverilog-pJOgZU46.mjs +582 -0
  159. package/lib/tcl-Bls9iNXn.mjs +238 -0
  160. package/lib/tcl-CiK0GhJi.js +6 -0
  161. package/lib/tsMode-BB2mDc5d.mjs +906 -0
  162. package/lib/tsMode-N-LS5RKx.js +16 -0
  163. package/lib/twig-B14HEeE0.mjs +398 -0
  164. package/lib/twig-Cbq-Ua-E.js +6 -0
  165. package/lib/types/locale/fa-IR.d.ts +3 -0
  166. package/lib/types/plugin.d.ts +2 -1
  167. package/lib/typescript-CZplv8KD.js +6 -0
  168. package/lib/typescript-f9PHTVoW.mjs +351 -0
  169. package/lib/typespec-Br_LC070.js +6 -0
  170. package/lib/typespec-dAaIdBal.mjs +125 -0
  171. package/lib/umd/index.js +1914 -2
  172. package/lib/vb-B1HzwoGL.js +6 -0
  173. package/lib/vb-CPBujGrP.mjs +378 -0
  174. package/lib/wgsl-BNAUPMiJ.js +303 -0
  175. package/lib/wgsl-CqCqdnZC.mjs +448 -0
  176. package/lib/xml-BSe-ETnG.js +6 -0
  177. package/lib/xml-Dv0cmUxw.mjs +103 -0
  178. package/lib/yaml-O_DoXtBP.js +6 -0
  179. package/lib/yaml-eXS7QSgG.mjs +214 -0
  180. package/package.json +13 -21
@@ -0,0 +1,558 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
3
+ import { m as monaco_editor_core_star } from "./index-D6nY5NdF.mjs";
4
+ /*!-----------------------------------------------------------------------------
5
+ * Copyright (c) Microsoft Corporation. All rights reserved.
6
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
7
+ * Released under the MIT license
8
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
+ *-----------------------------------------------------------------------------*/
10
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ }, "__copyProps"), __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget), "__reExport"), monaco_editor_core_exports = {};
16
+ __reExport(monaco_editor_core_exports, monaco_editor_core_star);
17
+ var EMPTY_ELEMENTS = [
18
+ "area",
19
+ "base",
20
+ "br",
21
+ "col",
22
+ "embed",
23
+ "hr",
24
+ "img",
25
+ "input",
26
+ "keygen",
27
+ "link",
28
+ "menuitem",
29
+ "meta",
30
+ "param",
31
+ "source",
32
+ "track",
33
+ "wbr"
34
+ ], conf = {
35
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
36
+ comments: {
37
+ blockComment: ["<!--", "-->"]
38
+ },
39
+ brackets: [
40
+ ["<!--", "-->"],
41
+ ["<", ">"],
42
+ ["{", "}"],
43
+ ["(", ")"]
44
+ ],
45
+ autoClosingPairs: [
46
+ { open: "{", close: "}" },
47
+ { open: "[", close: "]" },
48
+ { open: "(", close: ")" },
49
+ { open: '"', close: '"' },
50
+ { open: "'", close: "'" }
51
+ ],
52
+ surroundingPairs: [
53
+ { open: '"', close: '"' },
54
+ { open: "'", close: "'" },
55
+ { open: "<", close: ">" }
56
+ ],
57
+ onEnterRules: [
58
+ {
59
+ beforeText: new RegExp(
60
+ `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
61
+ "i"
62
+ ),
63
+ afterText: /^<\/(\w[\w\d]*)\s*>$/i,
64
+ action: {
65
+ indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
66
+ }
67
+ },
68
+ {
69
+ beforeText: new RegExp(
70
+ `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
71
+ "i"
72
+ ),
73
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
74
+ }
75
+ ]
76
+ }, language = {
77
+ defaultToken: "",
78
+ tokenPostfix: "",
79
+ // ignoreCase: true,
80
+ // The main tokenizer for our languages
81
+ tokenizer: {
82
+ root: [
83
+ [/@@@@/],
84
+ // text
85
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.root" }],
86
+ [/<!DOCTYPE/, "metatag.html", "@doctype"],
87
+ [/<!--/, "comment.html", "@comment"],
88
+ [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
89
+ [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
90
+ [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
91
+ [/(<)([:\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
92
+ [/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
93
+ [/</, "delimiter.html"],
94
+ [/[ \t\r\n]+/],
95
+ // whitespace
96
+ [/[^<@]+/]
97
+ // text
98
+ ],
99
+ doctype: [
100
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
101
+ [/[^>]+/, "metatag.content.html"],
102
+ [/>/, "metatag.html", "@pop"]
103
+ ],
104
+ comment: [
105
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
106
+ [/-->/, "comment.html", "@pop"],
107
+ [/[^-]+/, "comment.content.html"],
108
+ [/./, "comment.content.html"]
109
+ ],
110
+ otherTag: [
111
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.otherTag" }],
112
+ [/\/?>/, "delimiter.html", "@pop"],
113
+ [/"([^"]*)"/, "attribute.value"],
114
+ [/'([^']*)'/, "attribute.value"],
115
+ [/[\w\-]+/, "attribute.name"],
116
+ [/=/, "delimiter"],
117
+ [/[ \t\r\n]+/]
118
+ // whitespace
119
+ ],
120
+ // -- BEGIN <script> tags handling
121
+ // After <script
122
+ script: [
123
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.script" }],
124
+ [/type/, "attribute.name", "@scriptAfterType"],
125
+ [/"([^"]*)"/, "attribute.value"],
126
+ [/'([^']*)'/, "attribute.value"],
127
+ [/[\w\-]+/, "attribute.name"],
128
+ [/=/, "delimiter"],
129
+ [
130
+ />/,
131
+ {
132
+ token: "delimiter.html",
133
+ next: "@scriptEmbedded.text/javascript",
134
+ nextEmbedded: "text/javascript"
135
+ }
136
+ ],
137
+ [/[ \t\r\n]+/],
138
+ // whitespace
139
+ [
140
+ /(<\/)(script\s*)(>)/,
141
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
142
+ ]
143
+ ],
144
+ // After <script ... type
145
+ scriptAfterType: [
146
+ [
147
+ /@[^@]/,
148
+ {
149
+ token: "@rematch",
150
+ switchTo: "@razorInSimpleState.scriptAfterType"
151
+ }
152
+ ],
153
+ [/=/, "delimiter", "@scriptAfterTypeEquals"],
154
+ [
155
+ />/,
156
+ {
157
+ token: "delimiter.html",
158
+ next: "@scriptEmbedded.text/javascript",
159
+ nextEmbedded: "text/javascript"
160
+ }
161
+ ],
162
+ // cover invalid e.g. <script type>
163
+ [/[ \t\r\n]+/],
164
+ // whitespace
165
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
166
+ ],
167
+ // After <script ... type =
168
+ scriptAfterTypeEquals: [
169
+ [
170
+ /@[^@]/,
171
+ {
172
+ token: "@rematch",
173
+ switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
174
+ }
175
+ ],
176
+ [
177
+ /"([^"]*)"/,
178
+ {
179
+ token: "attribute.value",
180
+ switchTo: "@scriptWithCustomType.$1"
181
+ }
182
+ ],
183
+ [
184
+ /'([^']*)'/,
185
+ {
186
+ token: "attribute.value",
187
+ switchTo: "@scriptWithCustomType.$1"
188
+ }
189
+ ],
190
+ [
191
+ />/,
192
+ {
193
+ token: "delimiter.html",
194
+ next: "@scriptEmbedded.text/javascript",
195
+ nextEmbedded: "text/javascript"
196
+ }
197
+ ],
198
+ // cover invalid e.g. <script type=>
199
+ [/[ \t\r\n]+/],
200
+ // whitespace
201
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
202
+ ],
203
+ // After <script ... type = $S2
204
+ scriptWithCustomType: [
205
+ [
206
+ /@[^@]/,
207
+ {
208
+ token: "@rematch",
209
+ switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
210
+ }
211
+ ],
212
+ [
213
+ />/,
214
+ {
215
+ token: "delimiter.html",
216
+ next: "@scriptEmbedded.$S2",
217
+ nextEmbedded: "$S2"
218
+ }
219
+ ],
220
+ [/"([^"]*)"/, "attribute.value"],
221
+ [/'([^']*)'/, "attribute.value"],
222
+ [/[\w\-]+/, "attribute.name"],
223
+ [/=/, "delimiter"],
224
+ [/[ \t\r\n]+/],
225
+ // whitespace
226
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
227
+ ],
228
+ scriptEmbedded: [
229
+ [
230
+ /@[^@]/,
231
+ {
232
+ token: "@rematch",
233
+ switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
234
+ nextEmbedded: "@pop"
235
+ }
236
+ ],
237
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
238
+ ],
239
+ // -- END <script> tags handling
240
+ // -- BEGIN <style> tags handling
241
+ // After <style
242
+ style: [
243
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.style" }],
244
+ [/type/, "attribute.name", "@styleAfterType"],
245
+ [/"([^"]*)"/, "attribute.value"],
246
+ [/'([^']*)'/, "attribute.value"],
247
+ [/[\w\-]+/, "attribute.name"],
248
+ [/=/, "delimiter"],
249
+ [
250
+ />/,
251
+ {
252
+ token: "delimiter.html",
253
+ next: "@styleEmbedded.text/css",
254
+ nextEmbedded: "text/css"
255
+ }
256
+ ],
257
+ [/[ \t\r\n]+/],
258
+ // whitespace
259
+ [
260
+ /(<\/)(style\s*)(>)/,
261
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
262
+ ]
263
+ ],
264
+ // After <style ... type
265
+ styleAfterType: [
266
+ [
267
+ /@[^@]/,
268
+ {
269
+ token: "@rematch",
270
+ switchTo: "@razorInSimpleState.styleAfterType"
271
+ }
272
+ ],
273
+ [/=/, "delimiter", "@styleAfterTypeEquals"],
274
+ [
275
+ />/,
276
+ {
277
+ token: "delimiter.html",
278
+ next: "@styleEmbedded.text/css",
279
+ nextEmbedded: "text/css"
280
+ }
281
+ ],
282
+ // cover invalid e.g. <style type>
283
+ [/[ \t\r\n]+/],
284
+ // whitespace
285
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
286
+ ],
287
+ // After <style ... type =
288
+ styleAfterTypeEquals: [
289
+ [
290
+ /@[^@]/,
291
+ {
292
+ token: "@rematch",
293
+ switchTo: "@razorInSimpleState.styleAfterTypeEquals"
294
+ }
295
+ ],
296
+ [
297
+ /"([^"]*)"/,
298
+ {
299
+ token: "attribute.value",
300
+ switchTo: "@styleWithCustomType.$1"
301
+ }
302
+ ],
303
+ [
304
+ /'([^']*)'/,
305
+ {
306
+ token: "attribute.value",
307
+ switchTo: "@styleWithCustomType.$1"
308
+ }
309
+ ],
310
+ [
311
+ />/,
312
+ {
313
+ token: "delimiter.html",
314
+ next: "@styleEmbedded.text/css",
315
+ nextEmbedded: "text/css"
316
+ }
317
+ ],
318
+ // cover invalid e.g. <style type=>
319
+ [/[ \t\r\n]+/],
320
+ // whitespace
321
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
322
+ ],
323
+ // After <style ... type = $S2
324
+ styleWithCustomType: [
325
+ [
326
+ /@[^@]/,
327
+ {
328
+ token: "@rematch",
329
+ switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
330
+ }
331
+ ],
332
+ [
333
+ />/,
334
+ {
335
+ token: "delimiter.html",
336
+ next: "@styleEmbedded.$S2",
337
+ nextEmbedded: "$S2"
338
+ }
339
+ ],
340
+ [/"([^"]*)"/, "attribute.value"],
341
+ [/'([^']*)'/, "attribute.value"],
342
+ [/[\w\-]+/, "attribute.name"],
343
+ [/=/, "delimiter"],
344
+ [/[ \t\r\n]+/],
345
+ // whitespace
346
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
347
+ ],
348
+ styleEmbedded: [
349
+ [
350
+ /@[^@]/,
351
+ {
352
+ token: "@rematch",
353
+ switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
354
+ nextEmbedded: "@pop"
355
+ }
356
+ ],
357
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
358
+ ],
359
+ // -- END <style> tags handling
360
+ razorInSimpleState: [
361
+ [/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
362
+ [/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
363
+ [/(@)(\s*[\w]+)/, ["metatag.cs", { token: "identifier.cs", switchTo: "@$S2.$S3" }]],
364
+ [/[})]/, { token: "metatag.cs", switchTo: "@$S2.$S3" }],
365
+ [/\*@/, { token: "comment.cs", switchTo: "@$S2.$S3" }]
366
+ ],
367
+ razorInEmbeddedState: [
368
+ [/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
369
+ [/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
370
+ [
371
+ /(@)(\s*[\w]+)/,
372
+ [
373
+ "metatag.cs",
374
+ {
375
+ token: "identifier.cs",
376
+ switchTo: "@$S2.$S3",
377
+ nextEmbedded: "$S3"
378
+ }
379
+ ]
380
+ ],
381
+ [
382
+ /[})]/,
383
+ {
384
+ token: "metatag.cs",
385
+ switchTo: "@$S2.$S3",
386
+ nextEmbedded: "$S3"
387
+ }
388
+ ],
389
+ [
390
+ /\*@/,
391
+ {
392
+ token: "comment.cs",
393
+ switchTo: "@$S2.$S3",
394
+ nextEmbedded: "$S3"
395
+ }
396
+ ]
397
+ ],
398
+ razorBlockCommentTopLevel: [
399
+ [/\*@/, "@rematch", "@pop"],
400
+ [/[^*]+/, "comment.cs"],
401
+ [/./, "comment.cs"]
402
+ ],
403
+ razorBlockComment: [
404
+ [/\*@/, "comment.cs", "@pop"],
405
+ [/[^*]+/, "comment.cs"],
406
+ [/./, "comment.cs"]
407
+ ],
408
+ razorRootTopLevel: [
409
+ [/\{/, "delimiter.bracket.cs", "@razorRoot"],
410
+ [/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
411
+ [/[})]/, "@rematch", "@pop"],
412
+ { include: "razorCommon" }
413
+ ],
414
+ razorRoot: [
415
+ [/\{/, "delimiter.bracket.cs", "@razorRoot"],
416
+ [/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
417
+ [/\}/, "delimiter.bracket.cs", "@pop"],
418
+ [/\)/, "delimiter.parenthesis.cs", "@pop"],
419
+ { include: "razorCommon" }
420
+ ],
421
+ razorCommon: [
422
+ [
423
+ /[a-zA-Z_]\w*/,
424
+ {
425
+ cases: {
426
+ "@razorKeywords": { token: "keyword.cs" },
427
+ "@default": "identifier.cs"
428
+ }
429
+ }
430
+ ],
431
+ // brackets
432
+ [/[\[\]]/, "delimiter.array.cs"],
433
+ // whitespace
434
+ [/[ \t\r\n]+/],
435
+ // comments
436
+ [/\/\/.*$/, "comment.cs"],
437
+ [/@\*/, "comment.cs", "@razorBlockComment"],
438
+ // strings
439
+ [/"([^"]*)"/, "string.cs"],
440
+ [/'([^']*)'/, "string.cs"],
441
+ // simple html
442
+ [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
443
+ [/(<)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
444
+ [/(<\/)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
445
+ // delimiters
446
+ [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
447
+ // numbers
448
+ [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
449
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
450
+ [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
451
+ [/0[0-7']*[0-7]/, "number.octal.cs"],
452
+ [/0[bB][0-1']*[0-1]/, "number.binary.cs"],
453
+ [/\d[\d']*/, "number.cs"],
454
+ [/\d/, "number.cs"]
455
+ ]
456
+ },
457
+ razorKeywords: [
458
+ "abstract",
459
+ "as",
460
+ "async",
461
+ "await",
462
+ "base",
463
+ "bool",
464
+ "break",
465
+ "by",
466
+ "byte",
467
+ "case",
468
+ "catch",
469
+ "char",
470
+ "checked",
471
+ "class",
472
+ "const",
473
+ "continue",
474
+ "decimal",
475
+ "default",
476
+ "delegate",
477
+ "do",
478
+ "double",
479
+ "descending",
480
+ "explicit",
481
+ "event",
482
+ "extern",
483
+ "else",
484
+ "enum",
485
+ "false",
486
+ "finally",
487
+ "fixed",
488
+ "float",
489
+ "for",
490
+ "foreach",
491
+ "from",
492
+ "goto",
493
+ "group",
494
+ "if",
495
+ "implicit",
496
+ "in",
497
+ "int",
498
+ "interface",
499
+ "internal",
500
+ "into",
501
+ "is",
502
+ "lock",
503
+ "long",
504
+ "nameof",
505
+ "new",
506
+ "null",
507
+ "namespace",
508
+ "object",
509
+ "operator",
510
+ "out",
511
+ "override",
512
+ "orderby",
513
+ "params",
514
+ "private",
515
+ "protected",
516
+ "public",
517
+ "readonly",
518
+ "ref",
519
+ "return",
520
+ "switch",
521
+ "struct",
522
+ "sbyte",
523
+ "sealed",
524
+ "short",
525
+ "sizeof",
526
+ "stackalloc",
527
+ "static",
528
+ "string",
529
+ "select",
530
+ "this",
531
+ "throw",
532
+ "true",
533
+ "try",
534
+ "typeof",
535
+ "uint",
536
+ "ulong",
537
+ "unchecked",
538
+ "unsafe",
539
+ "ushort",
540
+ "using",
541
+ "var",
542
+ "virtual",
543
+ "volatile",
544
+ "void",
545
+ "when",
546
+ "while",
547
+ "where",
548
+ "yield",
549
+ "model",
550
+ "inject"
551
+ // Razor specific
552
+ ],
553
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
554
+ };
555
+ export {
556
+ conf,
557
+ language
558
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("./index-rYV4VmC2.js");/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=__name((to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:__name(()=>from[key],"get"),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget),"__reExport"),monaco_editor_core_exports={};__reExport(monaco_editor_core_exports,index.monaco_editor_core_star);var EMPTY_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}}]},language={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["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"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};exports.conf=conf;exports.language=language;