form-imagining 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +13 -16
  2. package/dist/abap-5361cc9f.js +1314 -0
  3. package/dist/apex-f9413e6f.js +315 -0
  4. package/dist/assets/css.worker-c3850ceb.js +88 -0
  5. package/dist/assets/editor.worker-94ffd778.js +12 -0
  6. package/dist/assets/html.worker-88b237e1.js +460 -0
  7. package/dist/assets/json.worker-8dd963f3.js +43 -0
  8. package/dist/assets/ts.worker-184cdfdf.js +37022 -0
  9. package/dist/azcli-36f2cb5e.js +74 -0
  10. package/dist/bat-6b05202d.js +95 -0
  11. package/dist/bicep-788415e3.js +108 -0
  12. package/dist/cameligo-4e85ec93.js +168 -0
  13. package/dist/clojure-40fa5799.js +754 -0
  14. package/dist/coffee-f557f5e0.js +228 -0
  15. package/dist/cpp-ebbf7759.js +390 -0
  16. package/dist/csharp-1616f566.js +320 -0
  17. package/dist/csp-5f0bc3c4.js +57 -0
  18. package/dist/css-2b1aec9b.js +186 -0
  19. package/dist/cssMode-8c659100.js +1447 -0
  20. package/dist/cypher-b12b4ba8.js +262 -0
  21. package/dist/dart-e0d70030.js +270 -0
  22. package/dist/dockerfile-f9d4b2b0.js +132 -0
  23. package/dist/ecl-5b91fdec.js +454 -0
  24. package/dist/elixir-deffd5a6.js +489 -0
  25. package/dist/flow9-84cd00d7.js +141 -0
  26. package/dist/form-imagining.js +3 -16340
  27. package/dist/form-imagining.umd.cjs +1974 -101
  28. package/dist/freemarker2-0d5627bc.js +644 -0
  29. package/dist/fsharp-d296151f.js +210 -0
  30. package/dist/go-7e72ff3b.js +208 -0
  31. package/dist/graphql-a93568a1.js +141 -0
  32. package/dist/handlebars-f4513b36.js +392 -0
  33. package/dist/hcl-b3994d8f.js +177 -0
  34. package/dist/html-8bedbbe0.js +282 -0
  35. package/dist/htmlMode-659c9ca3.js +1457 -0
  36. package/dist/index-dfad4f82.js +122025 -0
  37. package/dist/ini-df84509a.js +68 -0
  38. package/dist/java-fba3d046.js +221 -0
  39. package/dist/javascript-b0034508.js +77 -0
  40. package/dist/jsonMode-92a1ff9b.js +1868 -0
  41. package/dist/julia-cefd45f6.js +496 -0
  42. package/dist/kotlin-b87b6942.js +245 -0
  43. package/dist/less-8a7f37bc.js +168 -0
  44. package/dist/lexon-cb95cd13.js +151 -0
  45. package/dist/liquid-ce28d1ae.js +239 -0
  46. package/dist/lua-6d5b3ea4.js +157 -0
  47. package/dist/m3-d0daf5d0.js +210 -0
  48. package/dist/markdown-48bb0c6f.js +202 -0
  49. package/dist/mdx-470c6c12.js +172 -0
  50. package/dist/mips-20dcf886.js +194 -0
  51. package/dist/msdax-e9759e23.js +377 -0
  52. package/dist/mysql-95f335b2.js +876 -0
  53. package/dist/objective-c-ad0cfb47.js +188 -0
  54. package/dist/pascal-eda19dc3.js +245 -0
  55. package/dist/pascaligo-b7e0c89b.js +158 -0
  56. package/dist/perl-bbe5d32a.js +599 -0
  57. package/dist/pgsql-7ebaee1c.js +847 -0
  58. package/dist/php-2526756d.js +471 -0
  59. package/dist/pla-9ebd6f68.js +131 -0
  60. package/dist/postiats-9ac05cf6.js +544 -0
  61. package/dist/powerquery-1cae399d.js +890 -0
  62. package/dist/powershell-093b5b87.js +233 -0
  63. package/dist/protobuf-37993cbc.js +422 -0
  64. package/dist/pug-c2a5db5f.js +393 -0
  65. package/dist/python-8f0249df.js +260 -0
  66. package/dist/qsharp-1450aac5.js +282 -0
  67. package/dist/r-a0642b90.js +245 -0
  68. package/dist/razor-e4b6515c.js +513 -0
  69. package/dist/redis-405cb63d.js +298 -0
  70. package/dist/redshift-830f82de.js +806 -0
  71. package/dist/restructuredtext-d81f5ef4.js +162 -0
  72. package/dist/ruby-d607b87e.js +444 -0
  73. package/dist/rust-86e74dbb.js +337 -0
  74. package/dist/sb-b7e5010d.js +110 -0
  75. package/dist/scala-a4d4a3c6.js +353 -0
  76. package/dist/scheme-81927e94.js +114 -0
  77. package/dist/scss-3f112fcd.js +244 -0
  78. package/dist/shell-d795bcaa.js +224 -0
  79. package/dist/solidity-5b556d3e.js +1351 -0
  80. package/dist/sophia-1da55998.js +190 -0
  81. package/dist/sparql-ac34318e.js +193 -0
  82. package/dist/sql-eef6393b.js +818 -0
  83. package/dist/st-758b1972.js +415 -0
  84. package/dist/style.css +1 -1
  85. package/dist/swift-63cb1847.js +315 -0
  86. package/dist/systemverilog-2538c608.js +556 -0
  87. package/dist/tcl-53e6282a.js +232 -0
  88. package/dist/tsMode-ddb992e8.js +815 -0
  89. package/dist/twig-80c3dc23.js +323 -0
  90. package/dist/typescript-7135e9ac.js +329 -0
  91. package/dist/vb-32089525.js +364 -0
  92. package/dist/wgsl-e681d5a0.js +420 -0
  93. package/dist/xml-1e98ce31.js +96 -0
  94. package/dist/yaml-ad99967d.js +185 -0
  95. package/package.json +11 -18
  96. package/dist/components/generate/GenerateForm.vue.d.ts +0 -2
  97. package/dist/components/index.d.ts +0 -9
  98. package/dist/components/model/baseModel.d.ts +0 -8
  99. package/dist/components/model/dataSourceModel.d.ts +0 -19
  100. package/dist/components/model/gridModel.d.ts +0 -55
  101. package/dist/components/model/inputModel.d.ts +0 -14
  102. package/dist/components/model/reportModel.d.ts +0 -43
  103. package/dist/components/model/scriptModel.d.ts +0 -6
  104. package/dist/components/model/sqlModel.d.ts +0 -7
  105. package/dist/components/model/tableModel.d.ts +0 -16
  106. package/dist/components/model/textModel.d.ts +0 -14
  107. package/dist/components/monaco/monacoEditorType.d.ts +0 -56
  108. package/dist/components/registerGlobComp.d.ts +0 -3
  109. package/dist/components/wonderform/HelloWord.vue.d.ts +0 -2
  110. package/dist/components/wonderform/config/index.vue.d.ts +0 -14
  111. package/dist/components/wonderform/config/modules/Col.vue.d.ts +0 -14
  112. package/dist/components/wonderform/config/modules/DataSource.vue.d.ts +0 -2
  113. package/dist/components/wonderform/config/modules/Form.vue.d.ts +0 -2
  114. package/dist/components/wonderform/config/modules/Grid.vue.d.ts +0 -14
  115. package/dist/components/wonderform/config/modules/Properties.vue.d.ts +0 -14
  116. package/dist/components/wonderform/config/modules/Table.vue.d.ts +0 -14
  117. package/dist/components/wonderform/config/modules/TypeScript.vue.d.ts +0 -2
  118. package/dist/components/wonderform/design/index.vue.d.ts +0 -6
  119. package/dist/components/wonderform/design/modules/FormGrid.vue.d.ts +0 -38
  120. package/dist/components/wonderform/design/modules/FormInput.vue.d.ts +0 -26
  121. package/dist/components/wonderform/design/modules/FormReport.vue.d.ts +0 -32
  122. package/dist/components/wonderform/design/modules/FormTable.vue.d.ts +0 -32
  123. package/dist/components/wonderform/dsource/index.vue.d.ts +0 -14
  124. package/dist/components/wonderform/dsource/modules/SqlModule.vue.d.ts +0 -40
  125. package/dist/components/wonderform/header/Header.vue.d.ts +0 -2
  126. package/dist/components/wonderform/header/modules/Code.vue.d.ts +0 -23
  127. package/dist/components/wonderform/header/modules/events.d.ts +0 -1
  128. package/dist/components/wonderform/index.vue.d.ts +0 -2
  129. package/dist/components/wonderform/tool/index.vue.d.ts +0 -2
  130. package/dist/enums/httpEnum.d.ts +0 -37
  131. package/dist/main.d.ts +0 -1
  132. package/dist/mock/dict.d.ts +0 -8
  133. package/dist/router/guard/index.d.ts +0 -2
  134. package/dist/router/guard/permissionGuard.d.ts +0 -2
  135. package/dist/router/index.d.ts +0 -3
  136. package/dist/router/routes/basicRoutes.d.ts +0 -8
  137. package/dist/stores/index.d.ts +0 -4
  138. package/dist/stores/modules/data.d.ts +0 -7177
  139. package/dist/stores/modules/form.d.ts +0 -2060
  140. package/dist/utils/form/commonUtils.d.ts +0 -8
  141. package/dist/utils/form/config.d.ts +0 -107
  142. package/dist/utils/form/generatecode.d.ts +0 -23
  143. package/dist/utils/form/validateUtil.d.ts +0 -13
  144. package/dist/utils/form/wonder1.0.1.d.ts +0 -29
  145. package/dist/utils/http/axios/axios.d.ts +0 -48
  146. package/dist/utils/http/axios/axiosModel.d.ts +0 -8
  147. package/dist/utils/http/axios/index.d.ts +0 -2
  148. package/dist/utils/utils.d.ts +0 -1
@@ -0,0 +1,513 @@
1
+ import { m as s } from "./index-dfad4f82.js";
2
+ import "vue";
3
+ /*!-----------------------------------------------------------------------------
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Released under the MIT license
7
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
8
+ *-----------------------------------------------------------------------------*/
9
+ var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, p = Object.prototype.hasOwnProperty, i = (t, e, o, n) => {
10
+ if (e && typeof e == "object" || typeof e == "function")
11
+ for (let r of d(e))
12
+ !p.call(t, r) && r !== o && c(t, r, { get: () => e[r], enumerable: !(n = l(e, r)) || n.enumerable });
13
+ return t;
14
+ }, h = (t, e, o) => (i(t, e, "default"), o && i(o, e, "default")), a = {};
15
+ h(a, s);
16
+ var m = [
17
+ "area",
18
+ "base",
19
+ "br",
20
+ "col",
21
+ "embed",
22
+ "hr",
23
+ "img",
24
+ "input",
25
+ "keygen",
26
+ "link",
27
+ "menuitem",
28
+ "meta",
29
+ "param",
30
+ "source",
31
+ "track",
32
+ "wbr"
33
+ ], y = {
34
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
35
+ comments: {
36
+ blockComment: ["<!--", "-->"]
37
+ },
38
+ brackets: [
39
+ ["<!--", "-->"],
40
+ ["<", ">"],
41
+ ["{", "}"],
42
+ ["(", ")"]
43
+ ],
44
+ autoClosingPairs: [
45
+ { open: "{", close: "}" },
46
+ { open: "[", close: "]" },
47
+ { open: "(", close: ")" },
48
+ { open: '"', close: '"' },
49
+ { open: "'", close: "'" }
50
+ ],
51
+ surroundingPairs: [
52
+ { open: '"', close: '"' },
53
+ { open: "'", close: "'" },
54
+ { open: "<", close: ">" }
55
+ ],
56
+ onEnterRules: [
57
+ {
58
+ beforeText: new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
59
+ afterText: /^<\/(\w[\w\d]*)\s*>$/i,
60
+ action: {
61
+ indentAction: a.languages.IndentAction.IndentOutdent
62
+ }
63
+ },
64
+ {
65
+ beforeText: new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
66
+ action: { indentAction: a.languages.IndentAction.Indent }
67
+ }
68
+ ]
69
+ }, k = {
70
+ defaultToken: "",
71
+ tokenPostfix: "",
72
+ tokenizer: {
73
+ root: [
74
+ [/@@@@/],
75
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.root" }],
76
+ [/<!DOCTYPE/, "metatag.html", "@doctype"],
77
+ [/<!--/, "comment.html", "@comment"],
78
+ [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
79
+ [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
80
+ [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
81
+ [/(<)([:\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
82
+ [/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
83
+ [/</, "delimiter.html"],
84
+ [/[ \t\r\n]+/],
85
+ [/[^<@]+/]
86
+ ],
87
+ doctype: [
88
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
89
+ [/[^>]+/, "metatag.content.html"],
90
+ [/>/, "metatag.html", "@pop"]
91
+ ],
92
+ comment: [
93
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
94
+ [/-->/, "comment.html", "@pop"],
95
+ [/[^-]+/, "comment.content.html"],
96
+ [/./, "comment.content.html"]
97
+ ],
98
+ otherTag: [
99
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.otherTag" }],
100
+ [/\/?>/, "delimiter.html", "@pop"],
101
+ [/"([^"]*)"/, "attribute.value"],
102
+ [/'([^']*)'/, "attribute.value"],
103
+ [/[\w\-]+/, "attribute.name"],
104
+ [/=/, "delimiter"],
105
+ [/[ \t\r\n]+/]
106
+ ],
107
+ script: [
108
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.script" }],
109
+ [/type/, "attribute.name", "@scriptAfterType"],
110
+ [/"([^"]*)"/, "attribute.value"],
111
+ [/'([^']*)'/, "attribute.value"],
112
+ [/[\w\-]+/, "attribute.name"],
113
+ [/=/, "delimiter"],
114
+ [
115
+ />/,
116
+ {
117
+ token: "delimiter.html",
118
+ next: "@scriptEmbedded.text/javascript",
119
+ nextEmbedded: "text/javascript"
120
+ }
121
+ ],
122
+ [/[ \t\r\n]+/],
123
+ [
124
+ /(<\/)(script\s*)(>)/,
125
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
126
+ ]
127
+ ],
128
+ scriptAfterType: [
129
+ [
130
+ /@[^@]/,
131
+ {
132
+ token: "@rematch",
133
+ switchTo: "@razorInSimpleState.scriptAfterType"
134
+ }
135
+ ],
136
+ [/=/, "delimiter", "@scriptAfterTypeEquals"],
137
+ [
138
+ />/,
139
+ {
140
+ token: "delimiter.html",
141
+ next: "@scriptEmbedded.text/javascript",
142
+ nextEmbedded: "text/javascript"
143
+ }
144
+ ],
145
+ [/[ \t\r\n]+/],
146
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
147
+ ],
148
+ scriptAfterTypeEquals: [
149
+ [
150
+ /@[^@]/,
151
+ {
152
+ token: "@rematch",
153
+ switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
154
+ }
155
+ ],
156
+ [
157
+ /"([^"]*)"/,
158
+ {
159
+ token: "attribute.value",
160
+ switchTo: "@scriptWithCustomType.$1"
161
+ }
162
+ ],
163
+ [
164
+ /'([^']*)'/,
165
+ {
166
+ token: "attribute.value",
167
+ switchTo: "@scriptWithCustomType.$1"
168
+ }
169
+ ],
170
+ [
171
+ />/,
172
+ {
173
+ token: "delimiter.html",
174
+ next: "@scriptEmbedded.text/javascript",
175
+ nextEmbedded: "text/javascript"
176
+ }
177
+ ],
178
+ [/[ \t\r\n]+/],
179
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
180
+ ],
181
+ scriptWithCustomType: [
182
+ [
183
+ /@[^@]/,
184
+ {
185
+ token: "@rematch",
186
+ switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
187
+ }
188
+ ],
189
+ [
190
+ />/,
191
+ {
192
+ token: "delimiter.html",
193
+ next: "@scriptEmbedded.$S2",
194
+ nextEmbedded: "$S2"
195
+ }
196
+ ],
197
+ [/"([^"]*)"/, "attribute.value"],
198
+ [/'([^']*)'/, "attribute.value"],
199
+ [/[\w\-]+/, "attribute.name"],
200
+ [/=/, "delimiter"],
201
+ [/[ \t\r\n]+/],
202
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
203
+ ],
204
+ scriptEmbedded: [
205
+ [
206
+ /@[^@]/,
207
+ {
208
+ token: "@rematch",
209
+ switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
210
+ nextEmbedded: "@pop"
211
+ }
212
+ ],
213
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
214
+ ],
215
+ style: [
216
+ [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.style" }],
217
+ [/type/, "attribute.name", "@styleAfterType"],
218
+ [/"([^"]*)"/, "attribute.value"],
219
+ [/'([^']*)'/, "attribute.value"],
220
+ [/[\w\-]+/, "attribute.name"],
221
+ [/=/, "delimiter"],
222
+ [
223
+ />/,
224
+ {
225
+ token: "delimiter.html",
226
+ next: "@styleEmbedded.text/css",
227
+ nextEmbedded: "text/css"
228
+ }
229
+ ],
230
+ [/[ \t\r\n]+/],
231
+ [
232
+ /(<\/)(style\s*)(>)/,
233
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
234
+ ]
235
+ ],
236
+ styleAfterType: [
237
+ [
238
+ /@[^@]/,
239
+ {
240
+ token: "@rematch",
241
+ switchTo: "@razorInSimpleState.styleAfterType"
242
+ }
243
+ ],
244
+ [/=/, "delimiter", "@styleAfterTypeEquals"],
245
+ [
246
+ />/,
247
+ {
248
+ token: "delimiter.html",
249
+ next: "@styleEmbedded.text/css",
250
+ nextEmbedded: "text/css"
251
+ }
252
+ ],
253
+ [/[ \t\r\n]+/],
254
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
255
+ ],
256
+ styleAfterTypeEquals: [
257
+ [
258
+ /@[^@]/,
259
+ {
260
+ token: "@rematch",
261
+ switchTo: "@razorInSimpleState.styleAfterTypeEquals"
262
+ }
263
+ ],
264
+ [
265
+ /"([^"]*)"/,
266
+ {
267
+ token: "attribute.value",
268
+ switchTo: "@styleWithCustomType.$1"
269
+ }
270
+ ],
271
+ [
272
+ /'([^']*)'/,
273
+ {
274
+ token: "attribute.value",
275
+ switchTo: "@styleWithCustomType.$1"
276
+ }
277
+ ],
278
+ [
279
+ />/,
280
+ {
281
+ token: "delimiter.html",
282
+ next: "@styleEmbedded.text/css",
283
+ nextEmbedded: "text/css"
284
+ }
285
+ ],
286
+ [/[ \t\r\n]+/],
287
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
288
+ ],
289
+ styleWithCustomType: [
290
+ [
291
+ /@[^@]/,
292
+ {
293
+ token: "@rematch",
294
+ switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
295
+ }
296
+ ],
297
+ [
298
+ />/,
299
+ {
300
+ token: "delimiter.html",
301
+ next: "@styleEmbedded.$S2",
302
+ nextEmbedded: "$S2"
303
+ }
304
+ ],
305
+ [/"([^"]*)"/, "attribute.value"],
306
+ [/'([^']*)'/, "attribute.value"],
307
+ [/[\w\-]+/, "attribute.name"],
308
+ [/=/, "delimiter"],
309
+ [/[ \t\r\n]+/],
310
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
311
+ ],
312
+ styleEmbedded: [
313
+ [
314
+ /@[^@]/,
315
+ {
316
+ token: "@rematch",
317
+ switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
318
+ nextEmbedded: "@pop"
319
+ }
320
+ ],
321
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
322
+ ],
323
+ razorInSimpleState: [
324
+ [/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
325
+ [/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
326
+ [/(@)(\s*[\w]+)/, ["metatag.cs", { token: "identifier.cs", switchTo: "@$S2.$S3" }]],
327
+ [/[})]/, { token: "metatag.cs", switchTo: "@$S2.$S3" }],
328
+ [/\*@/, { token: "comment.cs", switchTo: "@$S2.$S3" }]
329
+ ],
330
+ razorInEmbeddedState: [
331
+ [/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
332
+ [/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
333
+ [
334
+ /(@)(\s*[\w]+)/,
335
+ [
336
+ "metatag.cs",
337
+ {
338
+ token: "identifier.cs",
339
+ switchTo: "@$S2.$S3",
340
+ nextEmbedded: "$S3"
341
+ }
342
+ ]
343
+ ],
344
+ [
345
+ /[})]/,
346
+ {
347
+ token: "metatag.cs",
348
+ switchTo: "@$S2.$S3",
349
+ nextEmbedded: "$S3"
350
+ }
351
+ ],
352
+ [
353
+ /\*@/,
354
+ {
355
+ token: "comment.cs",
356
+ switchTo: "@$S2.$S3",
357
+ nextEmbedded: "$S3"
358
+ }
359
+ ]
360
+ ],
361
+ razorBlockCommentTopLevel: [
362
+ [/\*@/, "@rematch", "@pop"],
363
+ [/[^*]+/, "comment.cs"],
364
+ [/./, "comment.cs"]
365
+ ],
366
+ razorBlockComment: [
367
+ [/\*@/, "comment.cs", "@pop"],
368
+ [/[^*]+/, "comment.cs"],
369
+ [/./, "comment.cs"]
370
+ ],
371
+ razorRootTopLevel: [
372
+ [/\{/, "delimiter.bracket.cs", "@razorRoot"],
373
+ [/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
374
+ [/[})]/, "@rematch", "@pop"],
375
+ { include: "razorCommon" }
376
+ ],
377
+ razorRoot: [
378
+ [/\{/, "delimiter.bracket.cs", "@razorRoot"],
379
+ [/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
380
+ [/\}/, "delimiter.bracket.cs", "@pop"],
381
+ [/\)/, "delimiter.parenthesis.cs", "@pop"],
382
+ { include: "razorCommon" }
383
+ ],
384
+ razorCommon: [
385
+ [
386
+ /[a-zA-Z_]\w*/,
387
+ {
388
+ cases: {
389
+ "@razorKeywords": { token: "keyword.cs" },
390
+ "@default": "identifier.cs"
391
+ }
392
+ }
393
+ ],
394
+ [/[\[\]]/, "delimiter.array.cs"],
395
+ [/[ \t\r\n]+/],
396
+ [/\/\/.*$/, "comment.cs"],
397
+ [/@\*/, "comment.cs", "@razorBlockComment"],
398
+ [/"([^"]*)"/, "string.cs"],
399
+ [/'([^']*)'/, "string.cs"],
400
+ [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
401
+ [/(<)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
402
+ [/(<\/)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
403
+ [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
404
+ [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
405
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
406
+ [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
407
+ [/0[0-7']*[0-7]/, "number.octal.cs"],
408
+ [/0[bB][0-1']*[0-1]/, "number.binary.cs"],
409
+ [/\d[\d']*/, "number.cs"],
410
+ [/\d/, "number.cs"]
411
+ ]
412
+ },
413
+ razorKeywords: [
414
+ "abstract",
415
+ "as",
416
+ "async",
417
+ "await",
418
+ "base",
419
+ "bool",
420
+ "break",
421
+ "by",
422
+ "byte",
423
+ "case",
424
+ "catch",
425
+ "char",
426
+ "checked",
427
+ "class",
428
+ "const",
429
+ "continue",
430
+ "decimal",
431
+ "default",
432
+ "delegate",
433
+ "do",
434
+ "double",
435
+ "descending",
436
+ "explicit",
437
+ "event",
438
+ "extern",
439
+ "else",
440
+ "enum",
441
+ "false",
442
+ "finally",
443
+ "fixed",
444
+ "float",
445
+ "for",
446
+ "foreach",
447
+ "from",
448
+ "goto",
449
+ "group",
450
+ "if",
451
+ "implicit",
452
+ "in",
453
+ "int",
454
+ "interface",
455
+ "internal",
456
+ "into",
457
+ "is",
458
+ "lock",
459
+ "long",
460
+ "nameof",
461
+ "new",
462
+ "null",
463
+ "namespace",
464
+ "object",
465
+ "operator",
466
+ "out",
467
+ "override",
468
+ "orderby",
469
+ "params",
470
+ "private",
471
+ "protected",
472
+ "public",
473
+ "readonly",
474
+ "ref",
475
+ "return",
476
+ "switch",
477
+ "struct",
478
+ "sbyte",
479
+ "sealed",
480
+ "short",
481
+ "sizeof",
482
+ "stackalloc",
483
+ "static",
484
+ "string",
485
+ "select",
486
+ "this",
487
+ "throw",
488
+ "true",
489
+ "try",
490
+ "typeof",
491
+ "uint",
492
+ "ulong",
493
+ "unchecked",
494
+ "unsafe",
495
+ "ushort",
496
+ "using",
497
+ "var",
498
+ "virtual",
499
+ "volatile",
500
+ "void",
501
+ "when",
502
+ "while",
503
+ "where",
504
+ "yield",
505
+ "model",
506
+ "inject"
507
+ ],
508
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
509
+ };
510
+ export {
511
+ y as conf,
512
+ k as language
513
+ };