form-imagining 0.0.6 → 0.0.8

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-0bcb1554.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 +1978 -102
  28. package/dist/freemarker2-4d8e8e55.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-c43672f7.js +392 -0
  33. package/dist/hcl-b3994d8f.js +177 -0
  34. package/dist/html-c6099a2e.js +282 -0
  35. package/dist/htmlMode-31c10440.js +1457 -0
  36. package/dist/index-a3197e12.js +122055 -0
  37. package/dist/ini-df84509a.js +68 -0
  38. package/dist/java-fba3d046.js +221 -0
  39. package/dist/javascript-ac2b4ae2.js +77 -0
  40. package/dist/jsonMode-36333022.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-b5021331.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-bbae5f86.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-fc373d9f.js +260 -0
  66. package/dist/qsharp-1450aac5.js +282 -0
  67. package/dist/r-a0642b90.js +245 -0
  68. package/dist/razor-1e9d135a.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-ea3b05db.js +815 -0
  89. package/dist/twig-80c3dc23.js +323 -0
  90. package/dist/typescript-b2ef5e0f.js +329 -0
  91. package/dist/vb-32089525.js +364 -0
  92. package/dist/wgsl-e681d5a0.js +420 -0
  93. package/dist/xml-579a5775.js +96 -0
  94. package/dist/yaml-c31c56b7.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,489 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var e = {
8
+ comments: {
9
+ lineComment: "#"
10
+ },
11
+ brackets: [
12
+ ["{", "}"],
13
+ ["[", "]"],
14
+ ["(", ")"]
15
+ ],
16
+ surroundingPairs: [
17
+ { open: "{", close: "}" },
18
+ { open: "[", close: "]" },
19
+ { open: "(", close: ")" },
20
+ { open: "'", close: "'" },
21
+ { open: '"', close: '"' }
22
+ ],
23
+ autoClosingPairs: [
24
+ { open: "'", close: "'", notIn: ["string", "comment"] },
25
+ { open: '"', close: '"', notIn: ["comment"] },
26
+ { open: '"""', close: '"""' },
27
+ { open: "`", close: "`", notIn: ["string", "comment"] },
28
+ { open: "(", close: ")" },
29
+ { open: "{", close: "}" },
30
+ { open: "[", close: "]" },
31
+ { open: "<<", close: ">>" }
32
+ ],
33
+ indentationRules: {
34
+ increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
35
+ decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
36
+ }
37
+ }, t = {
38
+ defaultToken: "source",
39
+ tokenPostfix: ".elixir",
40
+ brackets: [
41
+ { open: "[", close: "]", token: "delimiter.square" },
42
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
43
+ { open: "{", close: "}", token: "delimiter.curly" },
44
+ { open: "<<", close: ">>", token: "delimiter.angle.special" }
45
+ ],
46
+ declarationKeywords: [
47
+ "def",
48
+ "defp",
49
+ "defn",
50
+ "defnp",
51
+ "defguard",
52
+ "defguardp",
53
+ "defmacro",
54
+ "defmacrop",
55
+ "defdelegate",
56
+ "defcallback",
57
+ "defmacrocallback",
58
+ "defmodule",
59
+ "defprotocol",
60
+ "defexception",
61
+ "defimpl",
62
+ "defstruct"
63
+ ],
64
+ operatorKeywords: ["and", "in", "not", "or", "when"],
65
+ namespaceKeywords: ["alias", "import", "require", "use"],
66
+ otherKeywords: [
67
+ "after",
68
+ "case",
69
+ "catch",
70
+ "cond",
71
+ "do",
72
+ "else",
73
+ "end",
74
+ "fn",
75
+ "for",
76
+ "if",
77
+ "quote",
78
+ "raise",
79
+ "receive",
80
+ "rescue",
81
+ "super",
82
+ "throw",
83
+ "try",
84
+ "unless",
85
+ "unquote_splicing",
86
+ "unquote",
87
+ "with"
88
+ ],
89
+ constants: ["true", "false", "nil"],
90
+ nameBuiltin: ["__MODULE__", "__DIR__", "__ENV__", "__CALLER__", "__STACKTRACE__"],
91
+ operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
92
+ variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
93
+ atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
94
+ specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
95
+ aliasPart: /[A-Z][a-zA-Z0-9_]*/,
96
+ moduleName: /@aliasPart(?:\.@aliasPart)*/,
97
+ sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
98
+ sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
99
+ sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
100
+ sigilModifiers: /[a-zA-Z0-9]*/,
101
+ decimal: /\d(?:_?\d)*/,
102
+ hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
103
+ octal: /[0-7](_?[0-7])*/,
104
+ binary: /[01](_?[01])*/,
105
+ escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
106
+ tokenizer: {
107
+ root: [
108
+ { include: "@whitespace" },
109
+ { include: "@comments" },
110
+ { include: "@keywordsShorthand" },
111
+ { include: "@numbers" },
112
+ { include: "@identifiers" },
113
+ { include: "@strings" },
114
+ { include: "@atoms" },
115
+ { include: "@sigils" },
116
+ { include: "@attributes" },
117
+ { include: "@symbols" }
118
+ ],
119
+ whitespace: [[/\s+/, "white"]],
120
+ comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
121
+ keywordsShorthand: [
122
+ [/(@atomName)(:)(\s+)/, ["constant", "constant.punctuation", "white"]],
123
+ [
124
+ /"(?=([^"]|#\{.*?\}|\\")*":)/,
125
+ { token: "constant.delimiter", next: "@doubleQuotedStringKeyword" }
126
+ ],
127
+ [
128
+ /'(?=([^']|#\{.*?\}|\\')*':)/,
129
+ { token: "constant.delimiter", next: "@singleQuotedStringKeyword" }
130
+ ]
131
+ ],
132
+ doubleQuotedStringKeyword: [
133
+ [/":/, { token: "constant.delimiter", next: "@pop" }],
134
+ { include: "@stringConstantContentInterpol" }
135
+ ],
136
+ singleQuotedStringKeyword: [
137
+ [/':/, { token: "constant.delimiter", next: "@pop" }],
138
+ { include: "@stringConstantContentInterpol" }
139
+ ],
140
+ numbers: [
141
+ [/0b@binary/, "number.binary"],
142
+ [/0o@octal/, "number.octal"],
143
+ [/0x@hex/, "number.hex"],
144
+ [/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
145
+ [/@decimal/, "number"]
146
+ ],
147
+ identifiers: [
148
+ [
149
+ /\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
150
+ [
151
+ "keyword.declaration",
152
+ "white",
153
+ {
154
+ cases: {
155
+ unquote: "keyword",
156
+ "@default": "function"
157
+ }
158
+ }
159
+ ]
160
+ ],
161
+ [
162
+ /(@variableName)(?=\s*\.?\s*\()/,
163
+ {
164
+ cases: {
165
+ "@declarationKeywords": "keyword.declaration",
166
+ "@namespaceKeywords": "keyword",
167
+ "@otherKeywords": "keyword",
168
+ "@default": "function.call"
169
+ }
170
+ }
171
+ ],
172
+ [
173
+ /(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
174
+ ["type.identifier", "white", "operator", "white", "function.call"]
175
+ ],
176
+ [
177
+ /(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
178
+ ["constant.punctuation", "constant", "white", "operator", "white", "function.call"]
179
+ ],
180
+ [
181
+ /(\|>)(\s*)(@variableName)/,
182
+ [
183
+ "operator",
184
+ "white",
185
+ {
186
+ cases: {
187
+ "@otherKeywords": "keyword",
188
+ "@default": "function.call"
189
+ }
190
+ }
191
+ ]
192
+ ],
193
+ [
194
+ /(&)(\s*)(@variableName)/,
195
+ ["operator", "white", "function.call"]
196
+ ],
197
+ [
198
+ /@variableName/,
199
+ {
200
+ cases: {
201
+ "@declarationKeywords": "keyword.declaration",
202
+ "@operatorKeywords": "keyword.operator",
203
+ "@namespaceKeywords": "keyword",
204
+ "@otherKeywords": "keyword",
205
+ "@constants": "constant.language",
206
+ "@nameBuiltin": "variable.language",
207
+ "_.*": "comment.unused",
208
+ "@default": "identifier"
209
+ }
210
+ }
211
+ ],
212
+ [/@moduleName/, "type.identifier"]
213
+ ],
214
+ strings: [
215
+ [/"""/, { token: "string.delimiter", next: "@doubleQuotedHeredoc" }],
216
+ [/'''/, { token: "string.delimiter", next: "@singleQuotedHeredoc" }],
217
+ [/"/, { token: "string.delimiter", next: "@doubleQuotedString" }],
218
+ [/'/, { token: "string.delimiter", next: "@singleQuotedString" }]
219
+ ],
220
+ doubleQuotedHeredoc: [
221
+ [/"""/, { token: "string.delimiter", next: "@pop" }],
222
+ { include: "@stringContentInterpol" }
223
+ ],
224
+ singleQuotedHeredoc: [
225
+ [/'''/, { token: "string.delimiter", next: "@pop" }],
226
+ { include: "@stringContentInterpol" }
227
+ ],
228
+ doubleQuotedString: [
229
+ [/"/, { token: "string.delimiter", next: "@pop" }],
230
+ { include: "@stringContentInterpol" }
231
+ ],
232
+ singleQuotedString: [
233
+ [/'/, { token: "string.delimiter", next: "@pop" }],
234
+ { include: "@stringContentInterpol" }
235
+ ],
236
+ atoms: [
237
+ [/(:)(@atomName)/, ["constant.punctuation", "constant"]],
238
+ [/:"/, { token: "constant.delimiter", next: "@doubleQuotedStringAtom" }],
239
+ [/:'/, { token: "constant.delimiter", next: "@singleQuotedStringAtom" }]
240
+ ],
241
+ doubleQuotedStringAtom: [
242
+ [/"/, { token: "constant.delimiter", next: "@pop" }],
243
+ { include: "@stringConstantContentInterpol" }
244
+ ],
245
+ singleQuotedStringAtom: [
246
+ [/'/, { token: "constant.delimiter", next: "@pop" }],
247
+ { include: "@stringConstantContentInterpol" }
248
+ ],
249
+ sigils: [
250
+ [/~[a-z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.interpol" }],
251
+ [/~([A-Z]+)@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.noInterpol" }]
252
+ ],
253
+ sigil: [
254
+ [/~([a-z]|[A-Z]+)\{/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.{.}" }],
255
+ [/~([a-z]|[A-Z]+)\[/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.[.]" }],
256
+ [/~([a-z]|[A-Z]+)\(/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.(.)" }],
257
+ [/~([a-z]|[A-Z]+)\</, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.<.>" }],
258
+ [
259
+ /~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,
260
+ { token: "@rematch", switchTo: "@sigilStart.$S2.$1.$2.$2" }
261
+ ]
262
+ ],
263
+ "sigilStart.interpol.s": [
264
+ [
265
+ /~s@sigilStartDelimiter/,
266
+ {
267
+ token: "string.delimiter",
268
+ switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
269
+ }
270
+ ]
271
+ ],
272
+ "sigilContinue.interpol.s": [
273
+ [
274
+ /(@sigilEndDelimiter)@sigilModifiers/,
275
+ {
276
+ cases: {
277
+ "$1==$S5": { token: "string.delimiter", next: "@pop" },
278
+ "@default": "string"
279
+ }
280
+ }
281
+ ],
282
+ { include: "@stringContentInterpol" }
283
+ ],
284
+ "sigilStart.noInterpol.S": [
285
+ [
286
+ /~S@sigilStartDelimiter/,
287
+ {
288
+ token: "string.delimiter",
289
+ switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
290
+ }
291
+ ]
292
+ ],
293
+ "sigilContinue.noInterpol.S": [
294
+ [/(^|[^\\])\\@sigilEndDelimiter/, "string"],
295
+ [
296
+ /(@sigilEndDelimiter)@sigilModifiers/,
297
+ {
298
+ cases: {
299
+ "$1==$S5": { token: "string.delimiter", next: "@pop" },
300
+ "@default": "string"
301
+ }
302
+ }
303
+ ],
304
+ { include: "@stringContent" }
305
+ ],
306
+ "sigilStart.interpol.r": [
307
+ [
308
+ /~r@sigilStartDelimiter/,
309
+ {
310
+ token: "regexp.delimiter",
311
+ switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
312
+ }
313
+ ]
314
+ ],
315
+ "sigilContinue.interpol.r": [
316
+ [
317
+ /(@sigilEndDelimiter)@sigilModifiers/,
318
+ {
319
+ cases: {
320
+ "$1==$S5": { token: "regexp.delimiter", next: "@pop" },
321
+ "@default": "regexp"
322
+ }
323
+ }
324
+ ],
325
+ { include: "@regexpContentInterpol" }
326
+ ],
327
+ "sigilStart.noInterpol.R": [
328
+ [
329
+ /~R@sigilStartDelimiter/,
330
+ {
331
+ token: "regexp.delimiter",
332
+ switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
333
+ }
334
+ ]
335
+ ],
336
+ "sigilContinue.noInterpol.R": [
337
+ [/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
338
+ [
339
+ /(@sigilEndDelimiter)@sigilModifiers/,
340
+ {
341
+ cases: {
342
+ "$1==$S5": { token: "regexp.delimiter", next: "@pop" },
343
+ "@default": "regexp"
344
+ }
345
+ }
346
+ ],
347
+ { include: "@regexpContent" }
348
+ ],
349
+ "sigilStart.interpol": [
350
+ [
351
+ /~([a-z]|[A-Z]+)@sigilStartDelimiter/,
352
+ {
353
+ token: "sigil.delimiter",
354
+ switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
355
+ }
356
+ ]
357
+ ],
358
+ "sigilContinue.interpol": [
359
+ [
360
+ /(@sigilEndDelimiter)@sigilModifiers/,
361
+ {
362
+ cases: {
363
+ "$1==$S5": { token: "sigil.delimiter", next: "@pop" },
364
+ "@default": "sigil"
365
+ }
366
+ }
367
+ ],
368
+ { include: "@sigilContentInterpol" }
369
+ ],
370
+ "sigilStart.noInterpol": [
371
+ [
372
+ /~([a-z]|[A-Z]+)@sigilStartDelimiter/,
373
+ {
374
+ token: "sigil.delimiter",
375
+ switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
376
+ }
377
+ ]
378
+ ],
379
+ "sigilContinue.noInterpol": [
380
+ [/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
381
+ [
382
+ /(@sigilEndDelimiter)@sigilModifiers/,
383
+ {
384
+ cases: {
385
+ "$1==$S5": { token: "sigil.delimiter", next: "@pop" },
386
+ "@default": "sigil"
387
+ }
388
+ }
389
+ ],
390
+ { include: "@sigilContent" }
391
+ ],
392
+ attributes: [
393
+ [
394
+ /\@(module|type)?doc (~[sS])?"""/,
395
+ {
396
+ token: "comment.block.documentation",
397
+ next: "@doubleQuotedHeredocDocstring"
398
+ }
399
+ ],
400
+ [
401
+ /\@(module|type)?doc (~[sS])?'''/,
402
+ {
403
+ token: "comment.block.documentation",
404
+ next: "@singleQuotedHeredocDocstring"
405
+ }
406
+ ],
407
+ [
408
+ /\@(module|type)?doc (~[sS])?"/,
409
+ {
410
+ token: "comment.block.documentation",
411
+ next: "@doubleQuotedStringDocstring"
412
+ }
413
+ ],
414
+ [
415
+ /\@(module|type)?doc (~[sS])?'/,
416
+ {
417
+ token: "comment.block.documentation",
418
+ next: "@singleQuotedStringDocstring"
419
+ }
420
+ ],
421
+ [/\@(module|type)?doc false/, "comment.block.documentation"],
422
+ [/\@(@variableName)/, "variable"]
423
+ ],
424
+ doubleQuotedHeredocDocstring: [
425
+ [/"""/, { token: "comment.block.documentation", next: "@pop" }],
426
+ { include: "@docstringContent" }
427
+ ],
428
+ singleQuotedHeredocDocstring: [
429
+ [/'''/, { token: "comment.block.documentation", next: "@pop" }],
430
+ { include: "@docstringContent" }
431
+ ],
432
+ doubleQuotedStringDocstring: [
433
+ [/"/, { token: "comment.block.documentation", next: "@pop" }],
434
+ { include: "@docstringContent" }
435
+ ],
436
+ singleQuotedStringDocstring: [
437
+ [/'/, { token: "comment.block.documentation", next: "@pop" }],
438
+ { include: "@docstringContent" }
439
+ ],
440
+ symbols: [
441
+ [/\?(\\.|[^\\\s])/, "number.constant"],
442
+ [/&\d+/, "operator"],
443
+ [/<<<|>>>/, "operator"],
444
+ [/[()\[\]\{\}]|<<|>>/, "@brackets"],
445
+ [/\.\.\./, "identifier"],
446
+ [/=>/, "punctuation"],
447
+ [/@operator/, "operator"],
448
+ [/[:;,.%]/, "punctuation"]
449
+ ],
450
+ stringContentInterpol: [
451
+ { include: "@interpolation" },
452
+ { include: "@escapeChar" },
453
+ { include: "@stringContent" }
454
+ ],
455
+ stringContent: [[/./, "string"]],
456
+ stringConstantContentInterpol: [
457
+ { include: "@interpolation" },
458
+ { include: "@escapeChar" },
459
+ { include: "@stringConstantContent" }
460
+ ],
461
+ stringConstantContent: [[/./, "constant"]],
462
+ regexpContentInterpol: [
463
+ { include: "@interpolation" },
464
+ { include: "@escapeChar" },
465
+ { include: "@regexpContent" }
466
+ ],
467
+ regexpContent: [
468
+ [/(\s)(#)(\s.*)$/, ["white", "comment.punctuation", "comment"]],
469
+ [/./, "regexp"]
470
+ ],
471
+ sigilContentInterpol: [
472
+ { include: "@interpolation" },
473
+ { include: "@escapeChar" },
474
+ { include: "@sigilContent" }
475
+ ],
476
+ sigilContent: [[/./, "sigil"]],
477
+ docstringContent: [[/./, "comment.block.documentation"]],
478
+ escapeChar: [[/@escape/, "constant.character.escape"]],
479
+ interpolation: [[/#{/, { token: "delimiter.bracket.embed", next: "@interpolationContinue" }]],
480
+ interpolationContinue: [
481
+ [/}/, { token: "delimiter.bracket.embed", next: "@pop" }],
482
+ { include: "@root" }
483
+ ]
484
+ }
485
+ };
486
+ export {
487
+ e as conf,
488
+ t as language
489
+ };
@@ -0,0 +1,141 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var e = {
8
+ comments: {
9
+ blockComment: ["/*", "*/"],
10
+ lineComment: "//"
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"]
16
+ ],
17
+ autoClosingPairs: [
18
+ { open: "{", close: "}", notIn: ["string"] },
19
+ { open: "[", close: "]", notIn: ["string"] },
20
+ { open: "(", close: ")", notIn: ["string"] },
21
+ { open: '"', close: '"', notIn: ["string"] },
22
+ { open: "'", close: "'", notIn: ["string"] }
23
+ ],
24
+ surroundingPairs: [
25
+ { open: "{", close: "}" },
26
+ { open: "[", close: "]" },
27
+ { open: "(", close: ")" },
28
+ { open: '"', close: '"' },
29
+ { open: "'", close: "'" },
30
+ { open: "<", close: ">" }
31
+ ]
32
+ }, o = {
33
+ defaultToken: "",
34
+ tokenPostfix: ".flow",
35
+ keywords: [
36
+ "import",
37
+ "require",
38
+ "export",
39
+ "forbid",
40
+ "native",
41
+ "if",
42
+ "else",
43
+ "cast",
44
+ "unsafe",
45
+ "switch",
46
+ "default"
47
+ ],
48
+ types: [
49
+ "io",
50
+ "mutable",
51
+ "bool",
52
+ "int",
53
+ "double",
54
+ "string",
55
+ "flow",
56
+ "void",
57
+ "ref",
58
+ "true",
59
+ "false",
60
+ "with"
61
+ ],
62
+ operators: [
63
+ "=",
64
+ ">",
65
+ "<",
66
+ "<=",
67
+ ">=",
68
+ "==",
69
+ "!",
70
+ "!=",
71
+ ":=",
72
+ "::=",
73
+ "&&",
74
+ "||",
75
+ "+",
76
+ "-",
77
+ "*",
78
+ "/",
79
+ "@",
80
+ "&",
81
+ "%",
82
+ ":",
83
+ "->",
84
+ "\\",
85
+ "$",
86
+ "??",
87
+ "^"
88
+ ],
89
+ symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
90
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
91
+ tokenizer: {
92
+ root: [
93
+ [
94
+ /[a-zA-Z_]\w*/,
95
+ {
96
+ cases: {
97
+ "@keywords": "keyword",
98
+ "@types": "type",
99
+ "@default": "identifier"
100
+ }
101
+ }
102
+ ],
103
+ { include: "@whitespace" },
104
+ [/[{}()\[\]]/, "delimiter"],
105
+ [/[<>](?!@symbols)/, "delimiter"],
106
+ [
107
+ /@symbols/,
108
+ {
109
+ cases: {
110
+ "@operators": "delimiter",
111
+ "@default": ""
112
+ }
113
+ }
114
+ ],
115
+ [/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
116
+ [/[;,.]/, "delimiter"],
117
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
118
+ [/"/, "string", "@string"]
119
+ ],
120
+ whitespace: [
121
+ [/[ \t\r\n]+/, ""],
122
+ [/\/\*/, "comment", "@comment"],
123
+ [/\/\/.*$/, "comment"]
124
+ ],
125
+ comment: [
126
+ [/[^\/*]+/, "comment"],
127
+ [/\*\//, "comment", "@pop"],
128
+ [/[\/*]/, "comment"]
129
+ ],
130
+ string: [
131
+ [/[^\\"]+/, "string"],
132
+ [/@escapes/, "string.escape"],
133
+ [/\\./, "string.escape.invalid"],
134
+ [/"/, "string", "@pop"]
135
+ ]
136
+ }
137
+ };
138
+ export {
139
+ e as conf,
140
+ o as language
141
+ };