sun-form-v3 1.0.71 → 1.0.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. package/dist/abap-DfvySaIJ.js +1404 -0
  2. package/dist/apex-B__0irD3.js +332 -0
  3. package/dist/assets/css.worker-OK053IOu.js +84 -0
  4. package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
  5. package/dist/assets/html.worker-CL40hqKM.js +458 -0
  6. package/dist/assets/json.worker-6f9bhSHY.js +42 -0
  7. package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
  8. package/dist/azcli-CDMGhRmx.js +74 -0
  9. package/dist/bat-0Mk8aqzx.js +106 -0
  10. package/dist/bicep-BBi_I06Z.js +108 -0
  11. package/dist/cameligo-D0G_Zm6X.js +180 -0
  12. package/dist/clojure-o2ZKLeMp.js +767 -0
  13. package/dist/coffee-DOQff5VC.js +238 -0
  14. package/dist/cpp-CQGJnWhD.js +395 -0
  15. package/dist/csharp-C1jLsHl8.js +332 -0
  16. package/dist/csp-C_ttMQaW.js +59 -0
  17. package/dist/css-BC202kVV.js +193 -0
  18. package/dist/cssMode-D3INtz5D.js +1541 -0
  19. package/dist/cypher-DwtEH7Fi.js +269 -0
  20. package/dist/dart-D9XknsP2.js +287 -0
  21. package/dist/dockerfile-DgsNjqqa.js +136 -0
  22. package/dist/ecl-BAMCHBl6.js +462 -0
  23. package/dist/elixir-CegIttP8.js +575 -0
  24. package/dist/favicon.ico +0 -0
  25. package/dist/flow9-9608t7UV.js +148 -0
  26. package/dist/freemarker2-hasIzj0A.js +995 -0
  27. package/dist/fsharp-CCtt9-1_.js +223 -0
  28. package/dist/go-CGUIPbct.js +224 -0
  29. package/dist/graphql-BNRIFFIn.js +157 -0
  30. package/dist/handlebars-Cqza9dif.js +425 -0
  31. package/dist/hcl-C__KLIXe.js +189 -0
  32. package/dist/html-QpDlLWtS.js +314 -0
  33. package/dist/htmlMode-3p93KT8l.js +1551 -0
  34. package/dist/index2-jkDcibEo.js +120443 -0
  35. package/dist/ini-CeKYn_zA.js +77 -0
  36. package/dist/java-Dm24deQl.js +238 -0
  37. package/dist/javascript-CSPB5Brm.js +76 -0
  38. package/dist/jsonMode-qA6pURD0.js +1957 -0
  39. package/dist/julia-BImNW7VE.js +517 -0
  40. package/dist/kotlin-BfE79GEb.js +259 -0
  41. package/dist/less-DglNOcaC.js +168 -0
  42. package/dist/lexon-BA0dRz9Q.js +163 -0
  43. package/dist/liquid-BWuASSim.js +246 -0
  44. package/dist/lua-DMkWzJcm.js +168 -0
  45. package/dist/m3-sA-5shO8.js +216 -0
  46. package/dist/markdown-OYRB1igA.js +235 -0
  47. package/dist/mdx-CnHJXO9F.js +171 -0
  48. package/dist/mips-rRzkJ_7G.js +204 -0
  49. package/dist/msdax-DoVJdUhd.js +381 -0
  50. package/dist/mysql-Ty44IHXo.js +884 -0
  51. package/dist/objective-c-VUfyhYrA.js +189 -0
  52. package/dist/pascal-DkASiYyw.js +257 -0
  53. package/dist/pascaligo-p-ELPlVO.js +170 -0
  54. package/dist/perl-Cjl1FxLZ.js +632 -0
  55. package/dist/pgsql-DjVenF7s.js +857 -0
  56. package/dist/php-CwvGzZOO.js +506 -0
  57. package/dist/pla-Br1iaBIV.js +143 -0
  58. package/dist/postiats-BaeP8zZY.js +913 -0
  59. package/dist/powerquery-CLCshuo8.js +896 -0
  60. package/dist/powershell-CZV50w5N.js +245 -0
  61. package/dist/protobuf-MV3XTewJ.js +426 -0
  62. package/dist/pug-DkDg4c4l.js +408 -0
  63. package/dist/python-CRYsEVap.js +282 -0
  64. package/dist/qsharp-BAtiKA97.js +291 -0
  65. package/dist/r-8ocrd-h-.js +249 -0
  66. package/dist/razor-DyEtGntt.js +556 -0
  67. package/dist/redis-9sZiddxc.js +308 -0
  68. package/dist/redshift-DQfTOGC0.js +815 -0
  69. package/dist/restructuredtext-DXU-vkgr.js +180 -0
  70. package/dist/ruby-DotfqwMf.js +517 -0
  71. package/dist/rust-BIauJ5KN.js +349 -0
  72. package/dist/sb-CmWMvDEV.js +121 -0
  73. package/dist/scala-C81brEbk.js +376 -0
  74. package/dist/scheme-D0pcFz2x.js +114 -0
  75. package/dist/scss-BOdN2fGG.js +268 -0
  76. package/dist/shell-6E09eAkU.js +227 -0
  77. package/dist/solidity-CWStzA1K.js +1373 -0
  78. package/dist/sophia-76Sb6CWe.js +205 -0
  79. package/dist/sparql-BmZTkOWT.js +207 -0
  80. package/dist/sql-Cs9TBAW5.js +859 -0
  81. package/dist/st-B-rqE1Bu.js +422 -0
  82. package/dist/style.css +1 -0
  83. package/dist/sun-form-v3.es.js +4 -0
  84. package/dist/sun-form-v3.umd.js +1902 -0
  85. package/dist/swift-Btsj6YxQ.js +318 -0
  86. package/dist/systemverilog-B3RHBRa2.js +582 -0
  87. package/dist/tcl-Dpj776pn.js +238 -0
  88. package/dist/tsMode-BrlIPEQw.js +885 -0
  89. package/dist/twig-Bb9JmBsE.js +398 -0
  90. package/dist/typescript-CYTudnTM.js +349 -0
  91. package/dist/typespec-CDWeg3SU.js +123 -0
  92. package/dist/vb-DEXnYwEI.js +378 -0
  93. package/dist/wgsl-D602c1lx.js +445 -0
  94. package/dist/xml-B-x5164u.js +101 -0
  95. package/dist/yaml-Buq2hM65.js +212 -0
  96. package/package.json +7 -10
  97. package/src/App.vue +0 -9
  98. package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
  99. package/src/assets/font/demo.css +0 -539
  100. package/src/assets/font/demo_index.html +0 -1200
  101. package/src/assets/font/iconfont.css +0 -191
  102. package/src/assets/font/iconfont.js +0 -1
  103. package/src/assets/font/iconfont.json +0 -317
  104. package/src/assets/font/iconfont.ttf +0 -0
  105. package/src/assets/font/iconfont.woff +0 -0
  106. package/src/assets/font/iconfont.woff2 +0 -0
  107. package/src/assets/img/bg_footer.png +0 -0
  108. package/src/assets/img/bg_title.png +0 -0
  109. package/src/assets/img/file.png +0 -0
  110. package/src/assets/img/logo.png +0 -0
  111. package/src/assets/img/logo2.png +0 -0
  112. package/src/assets/img/logo22.png +0 -0
  113. package/src/assets/img/logo23.png +0 -0
  114. package/src/assets/img/logo3.png +0 -0
  115. package/src/assets/img//347/237/251/345/275/242@2x.png +0 -0
  116. package/src/assets/logo.svg +0 -1
  117. package/src/assets/styles/element/index.scss +0 -15
  118. package/src/assets/styles/index.css +0 -3
  119. package/src/components/a.js +0 -14
  120. package/src/components/aDesigner/config.vue +0 -127
  121. package/src/components/aDesigner/design.vue +0 -20
  122. package/src/components/aDesigner/index.vue +0 -144
  123. package/src/components/aDesigner/panel.vue +0 -144
  124. package/src/components/aDesigner/show.vue +0 -24
  125. package/src/components/widgetCommonComps/commonApiConfig/index.vue +0 -194
  126. package/src/components/widgetCommonComps/commonCard/index.vue +0 -36
  127. package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +0 -219
  128. package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +0 -68
  129. package/src/components/widgetCommonComps/commonCollapseCard/index.vue +0 -10
  130. package/src/components/widgetCommonComps/commonContainer/index.vue +0 -95
  131. package/src/components/widgetCommonComps/commonJsonInput/index.vue +0 -59
  132. package/src/components/widgetCommonComps/commonLabelContainer/index.vue +0 -39
  133. package/src/components/widgetCommonComps/commonSidetree/index.vue +0 -61
  134. package/src/components/widgetCommonComps/commonTypeInput/index.vue +0 -75
  135. package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +0 -55
  136. package/src/components/widgetCommonComps/index copy.js +0 -17
  137. package/src/components/widgetCommonComps/index.js +0 -17
  138. package/src/components/widgetConfigComps/config-input/index.vue +0 -60
  139. package/src/components/widgetConfigComps/index copy.js +0 -13
  140. package/src/components/widgetConfigComps/index.js +0 -17
  141. package/src/components/widgetShowComps/index.js +0 -29
  142. package/src/components/widgetShowComps/widget-form/index.vue +0 -43
  143. package/src/components/widgetShowComps/widget-homepage/index.vue +0 -41
  144. package/src/components/widgetShowComps/widget-input/index.vue +0 -85
  145. package/src/components/widgetShowComps/widget-select/index.vue +0 -31
  146. package/src/designer.js +0 -342
  147. package/src/http.js +0 -293
  148. package/src/index.js +0 -24
  149. package/src/index2.js +0 -23
  150. package/src/main.js +0 -19
  151. package/src/remark.js +0 -708
  152. package/src/testBtn.vue +0 -11
  153. package/src/testInput.vue +0 -12
  154. package/src/util/jsformat.js +0 -568
  155. package/src/widgetConfig.js +0 -1112
@@ -0,0 +1,189 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
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
+ }, n = {
32
+ defaultToken: "",
33
+ tokenPostfix: ".objective-c",
34
+ keywords: [
35
+ "#import",
36
+ "#include",
37
+ "#define",
38
+ "#else",
39
+ "#endif",
40
+ "#if",
41
+ "#ifdef",
42
+ "#ifndef",
43
+ "#ident",
44
+ "#undef",
45
+ "@class",
46
+ "@defs",
47
+ "@dynamic",
48
+ "@encode",
49
+ "@end",
50
+ "@implementation",
51
+ "@interface",
52
+ "@package",
53
+ "@private",
54
+ "@protected",
55
+ "@property",
56
+ "@protocol",
57
+ "@public",
58
+ "@selector",
59
+ "@synthesize",
60
+ "__declspec",
61
+ "assign",
62
+ "auto",
63
+ "BOOL",
64
+ "break",
65
+ "bycopy",
66
+ "byref",
67
+ "case",
68
+ "char",
69
+ "Class",
70
+ "const",
71
+ "copy",
72
+ "continue",
73
+ "default",
74
+ "do",
75
+ "double",
76
+ "else",
77
+ "enum",
78
+ "extern",
79
+ "FALSE",
80
+ "false",
81
+ "float",
82
+ "for",
83
+ "goto",
84
+ "if",
85
+ "in",
86
+ "int",
87
+ "id",
88
+ "inout",
89
+ "IMP",
90
+ "long",
91
+ "nil",
92
+ "nonatomic",
93
+ "NULL",
94
+ "oneway",
95
+ "out",
96
+ "private",
97
+ "public",
98
+ "protected",
99
+ "readwrite",
100
+ "readonly",
101
+ "register",
102
+ "return",
103
+ "SEL",
104
+ "self",
105
+ "short",
106
+ "signed",
107
+ "sizeof",
108
+ "static",
109
+ "struct",
110
+ "super",
111
+ "switch",
112
+ "typedef",
113
+ "TRUE",
114
+ "true",
115
+ "union",
116
+ "unsigned",
117
+ "volatile",
118
+ "void",
119
+ "while"
120
+ ],
121
+ decpart: /\d(_?\d)*/,
122
+ decimal: /0|@decpart/,
123
+ tokenizer: {
124
+ root: [
125
+ { include: "@comments" },
126
+ { include: "@whitespace" },
127
+ { include: "@numbers" },
128
+ { include: "@strings" },
129
+ [/[,:;]/, "delimiter"],
130
+ [/[{}\[\]()<>]/, "@brackets"],
131
+ [
132
+ /[a-zA-Z@#]\w*/,
133
+ {
134
+ cases: {
135
+ "@keywords": "keyword",
136
+ "@default": "identifier"
137
+ }
138
+ }
139
+ ],
140
+ [/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]
141
+ ],
142
+ whitespace: [[/\s+/, "white"]],
143
+ comments: [
144
+ ["\\/\\*", "comment", "@comment"],
145
+ ["\\/\\/+.*", "comment"]
146
+ ],
147
+ comment: [
148
+ ["\\*\\/", "comment", "@pop"],
149
+ [".", "comment"]
150
+ ],
151
+ numbers: [
152
+ [/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"],
153
+ [
154
+ /@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,
155
+ {
156
+ cases: {
157
+ "(\\d)*": "number",
158
+ $0: "number.float"
159
+ }
160
+ }
161
+ ]
162
+ ],
163
+ // Recognize strings, including those broken across lines with \ (but not without)
164
+ strings: [
165
+ [/'$/, "string.escape", "@popall"],
166
+ [/'/, "string.escape", "@stringBody"],
167
+ [/"$/, "string.escape", "@popall"],
168
+ [/"/, "string.escape", "@dblStringBody"]
169
+ ],
170
+ stringBody: [
171
+ [/[^\\']+$/, "string", "@popall"],
172
+ [/[^\\']+/, "string"],
173
+ [/\\./, "string"],
174
+ [/'/, "string.escape", "@popall"],
175
+ [/\\$/, "string"]
176
+ ],
177
+ dblStringBody: [
178
+ [/[^\\"]+$/, "string", "@popall"],
179
+ [/[^\\"]+/, "string"],
180
+ [/\\./, "string"],
181
+ [/"/, "string.escape", "@popall"],
182
+ [/\\$/, "string"]
183
+ ]
184
+ }
185
+ };
186
+ export {
187
+ e as conf,
188
+ n as language
189
+ };
@@ -0,0 +1,257 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var e = {
8
+ // the default separators except `@$`
9
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
10
+ comments: {
11
+ lineComment: "//",
12
+ blockComment: ["{", "}"]
13
+ },
14
+ brackets: [
15
+ ["{", "}"],
16
+ ["[", "]"],
17
+ ["(", ")"],
18
+ ["<", ">"]
19
+ ],
20
+ autoClosingPairs: [
21
+ { open: "{", close: "}" },
22
+ { open: "[", close: "]" },
23
+ { open: "(", close: ")" },
24
+ { open: "<", close: ">" },
25
+ { open: "'", close: "'" }
26
+ ],
27
+ surroundingPairs: [
28
+ { open: "{", close: "}" },
29
+ { open: "[", close: "]" },
30
+ { open: "(", close: ")" },
31
+ { open: "<", close: ">" },
32
+ { open: "'", close: "'" }
33
+ ],
34
+ folding: {
35
+ markers: {
36
+ start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),
37
+ end: new RegExp("^\\s*\\{\\$ENDREGION\\}")
38
+ }
39
+ }
40
+ }, t = {
41
+ defaultToken: "",
42
+ tokenPostfix: ".pascal",
43
+ ignoreCase: !0,
44
+ brackets: [
45
+ { open: "{", close: "}", token: "delimiter.curly" },
46
+ { open: "[", close: "]", token: "delimiter.square" },
47
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
48
+ { open: "<", close: ">", token: "delimiter.angle" }
49
+ ],
50
+ keywords: [
51
+ "absolute",
52
+ "abstract",
53
+ "all",
54
+ "and_then",
55
+ "array",
56
+ "as",
57
+ "asm",
58
+ "attribute",
59
+ "begin",
60
+ "bindable",
61
+ "case",
62
+ "class",
63
+ "const",
64
+ "contains",
65
+ "default",
66
+ "div",
67
+ "else",
68
+ "end",
69
+ "except",
70
+ "exports",
71
+ "external",
72
+ "far",
73
+ "file",
74
+ "finalization",
75
+ "finally",
76
+ "forward",
77
+ "generic",
78
+ "goto",
79
+ "if",
80
+ "implements",
81
+ "import",
82
+ "in",
83
+ "index",
84
+ "inherited",
85
+ "initialization",
86
+ "interrupt",
87
+ "is",
88
+ "label",
89
+ "library",
90
+ "mod",
91
+ "module",
92
+ "name",
93
+ "near",
94
+ "not",
95
+ "object",
96
+ "of",
97
+ "on",
98
+ "only",
99
+ "operator",
100
+ "or_else",
101
+ "otherwise",
102
+ "override",
103
+ "package",
104
+ "packed",
105
+ "pow",
106
+ "private",
107
+ "program",
108
+ "protected",
109
+ "public",
110
+ "published",
111
+ "interface",
112
+ "implementation",
113
+ "qualified",
114
+ "read",
115
+ "record",
116
+ "resident",
117
+ "requires",
118
+ "resourcestring",
119
+ "restricted",
120
+ "segment",
121
+ "set",
122
+ "shl",
123
+ "shr",
124
+ "specialize",
125
+ "stored",
126
+ "strict",
127
+ "then",
128
+ "threadvar",
129
+ "to",
130
+ "try",
131
+ "type",
132
+ "unit",
133
+ "uses",
134
+ "var",
135
+ "view",
136
+ "virtual",
137
+ "dynamic",
138
+ "overload",
139
+ "reintroduce",
140
+ "with",
141
+ "write",
142
+ "xor",
143
+ "true",
144
+ "false",
145
+ "procedure",
146
+ "function",
147
+ "constructor",
148
+ "destructor",
149
+ "property",
150
+ "break",
151
+ "continue",
152
+ "exit",
153
+ "abort",
154
+ "while",
155
+ "do",
156
+ "for",
157
+ "raise",
158
+ "repeat",
159
+ "until"
160
+ ],
161
+ typeKeywords: [
162
+ "boolean",
163
+ "double",
164
+ "byte",
165
+ "integer",
166
+ "shortint",
167
+ "char",
168
+ "longint",
169
+ "float",
170
+ "string"
171
+ ],
172
+ operators: [
173
+ "=",
174
+ ">",
175
+ "<",
176
+ "<=",
177
+ ">=",
178
+ "<>",
179
+ ":",
180
+ ":=",
181
+ "and",
182
+ "or",
183
+ "+",
184
+ "-",
185
+ "*",
186
+ "/",
187
+ "@",
188
+ "&",
189
+ "^",
190
+ "%"
191
+ ],
192
+ // we include these common regular expressions
193
+ symbols: /[=><:@\^&|+\-*\/\^%]+/,
194
+ // The main tokenizer for our languages
195
+ tokenizer: {
196
+ root: [
197
+ // identifiers and keywords
198
+ [
199
+ /[a-zA-Z_][\w]*/,
200
+ {
201
+ cases: {
202
+ "@keywords": { token: "keyword.$0" },
203
+ "@default": "identifier"
204
+ }
205
+ }
206
+ ],
207
+ // whitespace
208
+ { include: "@whitespace" },
209
+ // delimiters and operators
210
+ [/[{}()\[\]]/, "@brackets"],
211
+ [/[<>](?!@symbols)/, "@brackets"],
212
+ [
213
+ /@symbols/,
214
+ {
215
+ cases: {
216
+ "@operators": "delimiter",
217
+ "@default": ""
218
+ }
219
+ }
220
+ ],
221
+ // numbers
222
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
223
+ [/\$[0-9a-fA-F]{1,16}/, "number.hex"],
224
+ [/\d+/, "number"],
225
+ // delimiter: after number because of .\d floats
226
+ [/[;,.]/, "delimiter"],
227
+ // strings
228
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
229
+ // non-teminated string
230
+ [/'/, "string", "@string"],
231
+ // characters
232
+ [/'[^\\']'/, "string"],
233
+ [/'/, "string.invalid"],
234
+ [/\#\d+/, "string"]
235
+ ],
236
+ comment: [
237
+ [/[^\*\}]+/, "comment"],
238
+ //[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
239
+ [/\}/, "comment", "@pop"],
240
+ [/[\{]/, "comment"]
241
+ ],
242
+ string: [
243
+ [/[^\\']+/, "string"],
244
+ [/\\./, "string.escape.invalid"],
245
+ [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
246
+ ],
247
+ whitespace: [
248
+ [/[ \t\r\n]+/, "white"],
249
+ [/\{/, "comment", "@comment"],
250
+ [/\/\/.*$/, "comment"]
251
+ ]
252
+ }
253
+ };
254
+ export {
255
+ e as conf,
256
+ t as language
257
+ };
@@ -0,0 +1,170 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
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
+ ],
18
+ autoClosingPairs: [
19
+ { open: "{", close: "}" },
20
+ { open: "[", close: "]" },
21
+ { open: "(", close: ")" },
22
+ { open: "<", close: ">" },
23
+ { open: "'", close: "'" }
24
+ ],
25
+ surroundingPairs: [
26
+ { open: "{", close: "}" },
27
+ { open: "[", close: "]" },
28
+ { open: "(", close: ")" },
29
+ { open: "<", close: ">" },
30
+ { open: "'", close: "'" }
31
+ ]
32
+ }, o = {
33
+ defaultToken: "",
34
+ tokenPostfix: ".pascaligo",
35
+ ignoreCase: !0,
36
+ brackets: [
37
+ { open: "{", close: "}", token: "delimiter.curly" },
38
+ { open: "[", close: "]", token: "delimiter.square" },
39
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
40
+ { open: "<", close: ">", token: "delimiter.angle" }
41
+ ],
42
+ keywords: [
43
+ "begin",
44
+ "block",
45
+ "case",
46
+ "const",
47
+ "else",
48
+ "end",
49
+ "fail",
50
+ "for",
51
+ "from",
52
+ "function",
53
+ "if",
54
+ "is",
55
+ "nil",
56
+ "of",
57
+ "remove",
58
+ "return",
59
+ "skip",
60
+ "then",
61
+ "type",
62
+ "var",
63
+ "while",
64
+ "with",
65
+ "option",
66
+ "None",
67
+ "transaction"
68
+ ],
69
+ typeKeywords: [
70
+ "bool",
71
+ "int",
72
+ "list",
73
+ "map",
74
+ "nat",
75
+ "record",
76
+ "string",
77
+ "unit",
78
+ "address",
79
+ "map",
80
+ "mtz",
81
+ "xtz"
82
+ ],
83
+ operators: [
84
+ "=",
85
+ ">",
86
+ "<",
87
+ "<=",
88
+ ">=",
89
+ "<>",
90
+ ":",
91
+ ":=",
92
+ "and",
93
+ "mod",
94
+ "or",
95
+ "+",
96
+ "-",
97
+ "*",
98
+ "/",
99
+ "@",
100
+ "&",
101
+ "^",
102
+ "%"
103
+ ],
104
+ // we include these common regular expressions
105
+ symbols: /[=><:@\^&|+\-*\/\^%]+/,
106
+ // The main tokenizer for our languages
107
+ tokenizer: {
108
+ root: [
109
+ // identifiers and keywords
110
+ [
111
+ /[a-zA-Z_][\w]*/,
112
+ {
113
+ cases: {
114
+ "@keywords": { token: "keyword.$0" },
115
+ "@default": "identifier"
116
+ }
117
+ }
118
+ ],
119
+ // whitespace
120
+ { include: "@whitespace" },
121
+ // delimiters and operators
122
+ [/[{}()\[\]]/, "@brackets"],
123
+ [/[<>](?!@symbols)/, "@brackets"],
124
+ [
125
+ /@symbols/,
126
+ {
127
+ cases: {
128
+ "@operators": "delimiter",
129
+ "@default": ""
130
+ }
131
+ }
132
+ ],
133
+ // numbers
134
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
135
+ [/\$[0-9a-fA-F]{1,16}/, "number.hex"],
136
+ [/\d+/, "number"],
137
+ // delimiter: after number because of .\d floats
138
+ [/[;,.]/, "delimiter"],
139
+ // strings
140
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
141
+ // non-teminated string
142
+ [/'/, "string", "@string"],
143
+ // characters
144
+ [/'[^\\']'/, "string"],
145
+ [/'/, "string.invalid"],
146
+ [/\#\d+/, "string"]
147
+ ],
148
+ /* */
149
+ comment: [
150
+ [/[^\(\*]+/, "comment"],
151
+ //[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
152
+ [/\*\)/, "comment", "@pop"],
153
+ [/\(\*/, "comment"]
154
+ ],
155
+ string: [
156
+ [/[^\\']+/, "string"],
157
+ [/\\./, "string.escape.invalid"],
158
+ [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
159
+ ],
160
+ whitespace: [
161
+ [/[ \t\r\n]+/, "white"],
162
+ [/\(\*/, "comment", "@comment"],
163
+ [/\/\/.*$/, "comment"]
164
+ ]
165
+ }
166
+ };
167
+ export {
168
+ e as conf,
169
+ o as language
170
+ };