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,239 @@
1
+ import { m as d } 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 s = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, m = Object.prototype.hasOwnProperty, a = (t, e, r, n) => {
10
+ if (e && typeof e == "object" || typeof e == "function")
11
+ for (let i of u(e))
12
+ !m.call(t, i) && i !== r && s(t, i, { get: () => e[i], enumerable: !(n = c(e, i)) || n.enumerable });
13
+ return t;
14
+ }, p = (t, e, r) => (a(t, e, "default"), r && a(r, e, "default")), o = {};
15
+ p(o, d);
16
+ var l = [
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
+ ], _ = {
34
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
35
+ brackets: [
36
+ ["<!--", "-->"],
37
+ ["<", ">"],
38
+ ["{{", "}}"],
39
+ ["{%", "%}"],
40
+ ["{", "}"],
41
+ ["(", ")"]
42
+ ],
43
+ autoClosingPairs: [
44
+ { open: "{", close: "}" },
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(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
59
+ afterText: /^<\/(\w[\w\d]*)\s*>$/i,
60
+ action: {
61
+ indentAction: o.languages.IndentAction.IndentOutdent
62
+ }
63
+ },
64
+ {
65
+ beforeText: new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
66
+ action: { indentAction: o.languages.IndentAction.Indent }
67
+ }
68
+ ]
69
+ }, b = {
70
+ defaultToken: "",
71
+ tokenPostfix: "",
72
+ builtinTags: [
73
+ "if",
74
+ "else",
75
+ "elseif",
76
+ "endif",
77
+ "render",
78
+ "assign",
79
+ "capture",
80
+ "endcapture",
81
+ "case",
82
+ "endcase",
83
+ "comment",
84
+ "endcomment",
85
+ "cycle",
86
+ "decrement",
87
+ "for",
88
+ "endfor",
89
+ "include",
90
+ "increment",
91
+ "layout",
92
+ "raw",
93
+ "endraw",
94
+ "render",
95
+ "tablerow",
96
+ "endtablerow",
97
+ "unless",
98
+ "endunless"
99
+ ],
100
+ builtinFilters: [
101
+ "abs",
102
+ "append",
103
+ "at_least",
104
+ "at_most",
105
+ "capitalize",
106
+ "ceil",
107
+ "compact",
108
+ "date",
109
+ "default",
110
+ "divided_by",
111
+ "downcase",
112
+ "escape",
113
+ "escape_once",
114
+ "first",
115
+ "floor",
116
+ "join",
117
+ "json",
118
+ "last",
119
+ "lstrip",
120
+ "map",
121
+ "minus",
122
+ "modulo",
123
+ "newline_to_br",
124
+ "plus",
125
+ "prepend",
126
+ "remove",
127
+ "remove_first",
128
+ "replace",
129
+ "replace_first",
130
+ "reverse",
131
+ "round",
132
+ "rstrip",
133
+ "size",
134
+ "slice",
135
+ "sort",
136
+ "sort_natural",
137
+ "split",
138
+ "strip",
139
+ "strip_html",
140
+ "strip_newlines",
141
+ "times",
142
+ "truncate",
143
+ "truncatewords",
144
+ "uniq",
145
+ "upcase",
146
+ "url_decode",
147
+ "url_encode",
148
+ "where"
149
+ ],
150
+ constants: ["true", "false"],
151
+ operators: ["==", "!=", ">", "<", ">=", "<="],
152
+ symbol: /[=><!]+/,
153
+ identifier: /[a-zA-Z_][\w]*/,
154
+ tokenizer: {
155
+ root: [
156
+ [/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
157
+ [/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
158
+ [/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
159
+ [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
160
+ [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
161
+ [/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
162
+ [/</, "delimiter.html"],
163
+ [/\{/, "delimiter.html"],
164
+ [/[^<{]+/]
165
+ ],
166
+ comment: [
167
+ [/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
168
+ [/./, "comment.content.liquid"]
169
+ ],
170
+ otherTag: [
171
+ [
172
+ /\{\{/,
173
+ {
174
+ token: "@rematch",
175
+ switchTo: "@liquidState.otherTag"
176
+ }
177
+ ],
178
+ [
179
+ /\{\%/,
180
+ {
181
+ token: "@rematch",
182
+ switchTo: "@liquidState.otherTag"
183
+ }
184
+ ],
185
+ [/\/?>/, "delimiter.html", "@pop"],
186
+ [/"([^"]*)"/, "attribute.value"],
187
+ [/'([^']*)'/, "attribute.value"],
188
+ [/[\w\-]+/, "attribute.name"],
189
+ [/=/, "delimiter"],
190
+ [/[ \t\r\n]+/]
191
+ ],
192
+ liquidState: [
193
+ [/\{\{/, "delimiter.output.liquid"],
194
+ [/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
195
+ [/\{\%/, "delimiter.tag.liquid"],
196
+ [/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
197
+ [/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
198
+ { include: "liquidRoot" }
199
+ ],
200
+ liquidRaw: [
201
+ [/^(?!\{\%\s*endraw\s*\%\}).+/],
202
+ [/\{\%/, "delimiter.tag.liquid"],
203
+ [/@identifier/],
204
+ [/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
205
+ ],
206
+ liquidRoot: [
207
+ [/\d+(\.\d+)?/, "number.liquid"],
208
+ [/"[^"]*"/, "string.liquid"],
209
+ [/'[^']*'/, "string.liquid"],
210
+ [/\s+/],
211
+ [
212
+ /@symbol/,
213
+ {
214
+ cases: {
215
+ "@operators": "operator.liquid",
216
+ "@default": ""
217
+ }
218
+ }
219
+ ],
220
+ [/\./],
221
+ [
222
+ /@identifier/,
223
+ {
224
+ cases: {
225
+ "@constants": "keyword.liquid",
226
+ "@builtinFilters": "predefined.liquid",
227
+ "@builtinTags": "predefined.liquid",
228
+ "@default": "variable.liquid"
229
+ }
230
+ }
231
+ ],
232
+ [/[^}|%]/, "variable.liquid"]
233
+ ]
234
+ }
235
+ };
236
+ export {
237
+ _ as conf,
238
+ b as language
239
+ };
@@ -0,0 +1,157 @@
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
+ blockComment: ["--[[", "]]"]
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"]
16
+ ],
17
+ autoClosingPairs: [
18
+ { open: "{", close: "}" },
19
+ { open: "[", close: "]" },
20
+ { open: "(", close: ")" },
21
+ { open: '"', close: '"' },
22
+ { open: "'", close: "'" }
23
+ ],
24
+ surroundingPairs: [
25
+ { open: "{", close: "}" },
26
+ { open: "[", close: "]" },
27
+ { open: "(", close: ")" },
28
+ { open: '"', close: '"' },
29
+ { open: "'", close: "'" }
30
+ ]
31
+ }, o = {
32
+ defaultToken: "",
33
+ tokenPostfix: ".lua",
34
+ keywords: [
35
+ "and",
36
+ "break",
37
+ "do",
38
+ "else",
39
+ "elseif",
40
+ "end",
41
+ "false",
42
+ "for",
43
+ "function",
44
+ "goto",
45
+ "if",
46
+ "in",
47
+ "local",
48
+ "nil",
49
+ "not",
50
+ "or",
51
+ "repeat",
52
+ "return",
53
+ "then",
54
+ "true",
55
+ "until",
56
+ "while"
57
+ ],
58
+ brackets: [
59
+ { token: "delimiter.bracket", open: "{", close: "}" },
60
+ { token: "delimiter.array", open: "[", close: "]" },
61
+ { token: "delimiter.parenthesis", open: "(", close: ")" }
62
+ ],
63
+ operators: [
64
+ "+",
65
+ "-",
66
+ "*",
67
+ "/",
68
+ "%",
69
+ "^",
70
+ "#",
71
+ "==",
72
+ "~=",
73
+ "<=",
74
+ ">=",
75
+ "<",
76
+ ">",
77
+ "=",
78
+ ";",
79
+ ":",
80
+ ",",
81
+ ".",
82
+ "..",
83
+ "..."
84
+ ],
85
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
86
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
87
+ tokenizer: {
88
+ root: [
89
+ [
90
+ /[a-zA-Z_]\w*/,
91
+ {
92
+ cases: {
93
+ "@keywords": { token: "keyword.$0" },
94
+ "@default": "identifier"
95
+ }
96
+ }
97
+ ],
98
+ { include: "@whitespace" },
99
+ [/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]],
100
+ [/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]],
101
+ [/[{}()\[\]]/, "@brackets"],
102
+ [
103
+ /@symbols/,
104
+ {
105
+ cases: {
106
+ "@operators": "delimiter",
107
+ "@default": ""
108
+ }
109
+ }
110
+ ],
111
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
112
+ [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
113
+ [/\d+?/, "number"],
114
+ [/[;,.]/, "delimiter"],
115
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
116
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
117
+ [/"/, "string", '@string."'],
118
+ [/'/, "string", "@string.'"]
119
+ ],
120
+ whitespace: [
121
+ [/[ \t\r\n]+/, ""],
122
+ [/--\[([=]*)\[/, "comment", "@comment.$1"],
123
+ [/--.*$/, "comment"]
124
+ ],
125
+ comment: [
126
+ [/[^\]]+/, "comment"],
127
+ [
128
+ /\]([=]*)\]/,
129
+ {
130
+ cases: {
131
+ "$1==$S2": { token: "comment", next: "@pop" },
132
+ "@default": "comment"
133
+ }
134
+ }
135
+ ],
136
+ [/./, "comment"]
137
+ ],
138
+ string: [
139
+ [/[^\\"']+/, "string"],
140
+ [/@escapes/, "string.escape"],
141
+ [/\\./, "string.escape.invalid"],
142
+ [
143
+ /["']/,
144
+ {
145
+ cases: {
146
+ "$#==$S2": { token: "string", next: "@pop" },
147
+ "@default": "string"
148
+ }
149
+ }
150
+ ]
151
+ ]
152
+ }
153
+ };
154
+ export {
155
+ e as conf,
156
+ o as language
157
+ };
@@ -0,0 +1,210 @@
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
+ },
11
+ brackets: [
12
+ ["{", "}"],
13
+ ["[", "]"],
14
+ ["(", ")"]
15
+ ],
16
+ autoClosingPairs: [
17
+ { open: "[", close: "]" },
18
+ { open: "{", close: "}" },
19
+ { open: "(", close: ")" },
20
+ { open: "(*", close: "*)" },
21
+ { open: "<*", close: "*>" },
22
+ { open: "'", close: "'", notIn: ["string", "comment"] },
23
+ { open: '"', close: '"', notIn: ["string", "comment"] }
24
+ ]
25
+ }, o = {
26
+ defaultToken: "",
27
+ tokenPostfix: ".m3",
28
+ brackets: [
29
+ { token: "delimiter.curly", open: "{", close: "}" },
30
+ { token: "delimiter.parenthesis", open: "(", close: ")" },
31
+ { token: "delimiter.square", open: "[", close: "]" }
32
+ ],
33
+ keywords: [
34
+ "AND",
35
+ "ANY",
36
+ "ARRAY",
37
+ "AS",
38
+ "BEGIN",
39
+ "BITS",
40
+ "BRANDED",
41
+ "BY",
42
+ "CASE",
43
+ "CONST",
44
+ "DIV",
45
+ "DO",
46
+ "ELSE",
47
+ "ELSIF",
48
+ "END",
49
+ "EVAL",
50
+ "EXCEPT",
51
+ "EXCEPTION",
52
+ "EXIT",
53
+ "EXPORTS",
54
+ "FINALLY",
55
+ "FOR",
56
+ "FROM",
57
+ "GENERIC",
58
+ "IF",
59
+ "IMPORT",
60
+ "IN",
61
+ "INTERFACE",
62
+ "LOCK",
63
+ "LOOP",
64
+ "METHODS",
65
+ "MOD",
66
+ "MODULE",
67
+ "NOT",
68
+ "OBJECT",
69
+ "OF",
70
+ "OR",
71
+ "OVERRIDES",
72
+ "PROCEDURE",
73
+ "RAISE",
74
+ "RAISES",
75
+ "READONLY",
76
+ "RECORD",
77
+ "REF",
78
+ "REPEAT",
79
+ "RETURN",
80
+ "REVEAL",
81
+ "SET",
82
+ "THEN",
83
+ "TO",
84
+ "TRY",
85
+ "TYPE",
86
+ "TYPECASE",
87
+ "UNSAFE",
88
+ "UNTIL",
89
+ "UNTRACED",
90
+ "VALUE",
91
+ "VAR",
92
+ "WHILE",
93
+ "WITH"
94
+ ],
95
+ reservedConstNames: [
96
+ "ABS",
97
+ "ADR",
98
+ "ADRSIZE",
99
+ "BITSIZE",
100
+ "BYTESIZE",
101
+ "CEILING",
102
+ "DEC",
103
+ "DISPOSE",
104
+ "FALSE",
105
+ "FIRST",
106
+ "FLOAT",
107
+ "FLOOR",
108
+ "INC",
109
+ "ISTYPE",
110
+ "LAST",
111
+ "LOOPHOLE",
112
+ "MAX",
113
+ "MIN",
114
+ "NARROW",
115
+ "NEW",
116
+ "NIL",
117
+ "NUMBER",
118
+ "ORD",
119
+ "ROUND",
120
+ "SUBARRAY",
121
+ "TRUE",
122
+ "TRUNC",
123
+ "TYPECODE",
124
+ "VAL"
125
+ ],
126
+ reservedTypeNames: [
127
+ "ADDRESS",
128
+ "ANY",
129
+ "BOOLEAN",
130
+ "CARDINAL",
131
+ "CHAR",
132
+ "EXTENDED",
133
+ "INTEGER",
134
+ "LONGCARD",
135
+ "LONGINT",
136
+ "LONGREAL",
137
+ "MUTEX",
138
+ "NULL",
139
+ "REAL",
140
+ "REFANY",
141
+ "ROOT",
142
+ "TEXT"
143
+ ],
144
+ operators: ["+", "-", "*", "/", "&", "^", "."],
145
+ relations: ["=", "#", "<", "<=", ">", ">=", "<:", ":"],
146
+ delimiters: ["|", "..", "=>", ",", ";", ":="],
147
+ symbols: /[>=<#.,:;+\-*/&^]+/,
148
+ escapes: /\\(?:[\\fnrt"']|[0-7]{3})/,
149
+ tokenizer: {
150
+ root: [
151
+ [/_\w*/, "invalid"],
152
+ [
153
+ /[a-zA-Z][a-zA-Z0-9_]*/,
154
+ {
155
+ cases: {
156
+ "@keywords": { token: "keyword.$0" },
157
+ "@reservedConstNames": { token: "constant.reserved.$0" },
158
+ "@reservedTypeNames": { token: "type.reserved.$0" },
159
+ "@default": "identifier"
160
+ }
161
+ }
162
+ ],
163
+ { include: "@whitespace" },
164
+ [/[{}()\[\]]/, "@brackets"],
165
+ [/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/, "number.float"],
166
+ [/[0-9]+(?:\_[0-9a-fA-F]+)?L?/, "number"],
167
+ [
168
+ /@symbols/,
169
+ {
170
+ cases: {
171
+ "@operators": "operators",
172
+ "@relations": "operators",
173
+ "@delimiters": "delimiter",
174
+ "@default": "invalid"
175
+ }
176
+ }
177
+ ],
178
+ [/'[^\\']'/, "string.char"],
179
+ [/(')(@escapes)(')/, ["string.char", "string.escape", "string.char"]],
180
+ [/'/, "invalid"],
181
+ [/"([^"\\]|\\.)*$/, "invalid"],
182
+ [/"/, "string.text", "@text"]
183
+ ],
184
+ text: [
185
+ [/[^\\"]+/, "string.text"],
186
+ [/@escapes/, "string.escape"],
187
+ [/\\./, "invalid"],
188
+ [/"/, "string.text", "@pop"]
189
+ ],
190
+ comment: [
191
+ [/\(\*/, "comment", "@push"],
192
+ [/\*\)/, "comment", "@pop"],
193
+ [/./, "comment"]
194
+ ],
195
+ pragma: [
196
+ [/<\*/, "keyword.pragma", "@push"],
197
+ [/\*>/, "keyword.pragma", "@pop"],
198
+ [/./, "keyword.pragma"]
199
+ ],
200
+ whitespace: [
201
+ [/[ \t\r\n]+/, "white"],
202
+ [/\(\*/, "comment", "@comment"],
203
+ [/<\*/, "keyword.pragma", "@pragma"]
204
+ ]
205
+ }
206
+ };
207
+ export {
208
+ e as conf,
209
+ o as language
210
+ };