act-plus 1.1.18 → 1.1.19

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 (107) hide show
  1. package/act-plus.js +5 -3
  2. package/act-plus.umd.cjs +1729 -16
  3. package/assets/editor.worker-df55e1ff.js +8 -0
  4. package/assets/ts.worker-e151483b.js +33972 -0
  5. package/lib/abap-1354785f.js +1314 -0
  6. package/lib/apex-279d4f27.js +315 -0
  7. package/lib/azcli-ba812c55.js +74 -0
  8. package/lib/bat-4d77495d.js +95 -0
  9. package/lib/bicep-7b240724.js +108 -0
  10. package/lib/cameligo-5d2daeb8.js +168 -0
  11. package/lib/clojure-b7ea12a3.js +754 -0
  12. package/lib/coffee-1a8cfbf4.js +228 -0
  13. package/lib/{configBtns-58f43801.js → configBtns-3772e689.js} +2 -2
  14. package/lib/{configFileds-b537fd99.js → configFileds-d0911c87.js} +3 -3
  15. package/lib/{configForm-b9e9ca98.js → configForm-ae4b725e.js} +1 -1
  16. package/lib/{configTable-bdb56a9e.js → configTable-879063d4.js} +31 -24
  17. package/lib/cpp-642b10c4.js +387 -0
  18. package/lib/csharp-d987ddad.js +320 -0
  19. package/lib/csp-96407af0.js +57 -0
  20. package/lib/css-5dd354ac.js +186 -0
  21. package/lib/cssMode-6d02ab39.js +1448 -0
  22. package/lib/cypher-11e5a4b6.js +262 -0
  23. package/lib/dart-5d209f63.js +270 -0
  24. package/lib/{dialogAddField-b60d14ab.js → dialogAddField-d6b18048.js} +69 -69
  25. package/lib/{dialogConfigBtn-f5f8703d.js → dialogConfigBtn-75e37dc9.js} +74 -78
  26. package/lib/dockerfile-8739cff7.js +132 -0
  27. package/lib/ecl-a20c5155.js +454 -0
  28. package/lib/elixir-8b028584.js +467 -0
  29. package/lib/{enum-99519ce0.js → enum-cc58b8fe.js} +25 -22
  30. package/lib/flow9-0dea2e73.js +141 -0
  31. package/lib/freemarker2-205877bf.js +646 -0
  32. package/lib/fsharp-49a70fad.js +210 -0
  33. package/lib/go-46e3b371.js +208 -0
  34. package/lib/graphql-51a577e5.js +141 -0
  35. package/lib/handlebars-2d920faa.js +394 -0
  36. package/lib/hcl-56b85754.js +177 -0
  37. package/lib/html-6b99359b.js +284 -0
  38. package/lib/htmlMode-498c17d9.js +1458 -0
  39. package/lib/index-68063c4c.js +96 -0
  40. package/lib/index-7c264775.js +192 -0
  41. package/lib/index-a36b2284.js +304 -0
  42. package/lib/index-aff95ab9.js +63 -0
  43. package/lib/index-da0a0bfe.js +162173 -0
  44. package/lib/index-e2f2023d.js +35 -0
  45. package/lib/{index-9e3ed108.js → index-fb2754ee.js} +1 -1
  46. package/lib/ini-1d58d82f.js +68 -0
  47. package/lib/java-cd017f60.js +221 -0
  48. package/lib/javascript-5e40fe11.js +78 -0
  49. package/lib/jsonMode-2a821e9e.js +1869 -0
  50. package/lib/julia-a0caf483.js +496 -0
  51. package/lib/kotlin-c6e52a56.js +245 -0
  52. package/lib/less-718543b4.js +168 -0
  53. package/lib/lexon-5e6e7a44.js +151 -0
  54. package/lib/liquid-dc78aaf7.js +241 -0
  55. package/lib/lua-f159160b.js +157 -0
  56. package/lib/m3-aadaf771.js +210 -0
  57. package/lib/markdown-9b448c46.js +202 -0
  58. package/lib/mips-161e49ce.js +194 -0
  59. package/lib/msdax-f65cb1e6.js +377 -0
  60. package/lib/mysql-24549dd1.js +875 -0
  61. package/lib/objective-c-e129a5ca.js +188 -0
  62. package/lib/pascal-4ccdf5ce.js +245 -0
  63. package/lib/pascaligo-a9603dcd.js +158 -0
  64. package/lib/perl-ba1fb97a.js +599 -0
  65. package/lib/pgsql-89978310.js +843 -0
  66. package/lib/php-987b9d87.js +471 -0
  67. package/lib/pla-96c2695d.js +131 -0
  68. package/lib/postiats-7b52ebac.js +544 -0
  69. package/lib/powerquery-8954ec26.js +890 -0
  70. package/lib/powershell-f00d0274.js +233 -0
  71. package/lib/protobuf-3eb85f80.js +422 -0
  72. package/lib/pug-6fab415a.js +393 -0
  73. package/lib/python-e55144b2.js +262 -0
  74. package/lib/qsharp-4792f872.js +282 -0
  75. package/lib/r-630f5d6b.js +245 -0
  76. package/lib/razor-1fb88f53.js +515 -0
  77. package/lib/redis-276b8288.js +298 -0
  78. package/lib/redshift-520a7359.js +806 -0
  79. package/lib/restructuredtext-4676a3fc.js +162 -0
  80. package/lib/ruby-764137cd.js +444 -0
  81. package/lib/rust-97f8f6e1.js +337 -0
  82. package/lib/sb-8c22f14c.js +110 -0
  83. package/lib/scala-c68c650c.js +353 -0
  84. package/lib/scheme-e6a52cb0.js +114 -0
  85. package/lib/scss-45104c77.js +244 -0
  86. package/lib/shell-09452d42.js +224 -0
  87. package/lib/solidity-d4979008.js +1351 -0
  88. package/lib/sophia-21995caf.js +190 -0
  89. package/lib/sparql-5088743c.js +193 -0
  90. package/lib/sql-63ec8e76.js +818 -0
  91. package/lib/st-fa9ab362.js +414 -0
  92. package/lib/swift-abdf1835.js +315 -0
  93. package/lib/systemverilog-a4f858ed.js +556 -0
  94. package/lib/tcl-8adf937f.js +232 -0
  95. package/lib/tsMode-8d12d976.js +792 -0
  96. package/lib/twig-404eb73e.js +323 -0
  97. package/lib/typescript-97ed77ae.js +330 -0
  98. package/lib/vb-e21e8153.js +364 -0
  99. package/lib/xml-e843c667.js +98 -0
  100. package/lib/yaml-62bcf3fa.js +187 -0
  101. package/package.json +1 -1
  102. package/style.css +1 -1
  103. package/lib/index-14f7a543.js +0 -165
  104. package/lib/index-1f8ed34b.js +0 -11178
  105. package/lib/index-56217e0e.js +0 -96
  106. package/lib/index-8cb975d8.js +0 -297
  107. package/lib/index-9a1abd6b.js +0 -139
@@ -0,0 +1,241 @@
1
+ import { m as d } from "./index-da0a0bfe.js";
2
+ import "vue";
3
+ import "vue-router";
4
+ import "element-plus";
5
+ /*!-----------------------------------------------------------------------------
6
+ * Copyright (c) Microsoft Corporation. All rights reserved.
7
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
8
+ * Released under the MIT license
9
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
10
+ *-----------------------------------------------------------------------------*/
11
+ var s = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, m = Object.prototype.hasOwnProperty, a = (t, e, r, n) => {
12
+ if (e && typeof e == "object" || typeof e == "function")
13
+ for (let i of u(e))
14
+ !m.call(t, i) && i !== r && s(t, i, { get: () => e[i], enumerable: !(n = c(e, i)) || n.enumerable });
15
+ return t;
16
+ }, p = (t, e, r) => (a(t, e, "default"), r && a(r, e, "default")), o = {};
17
+ p(o, d);
18
+ var l = [
19
+ "area",
20
+ "base",
21
+ "br",
22
+ "col",
23
+ "embed",
24
+ "hr",
25
+ "img",
26
+ "input",
27
+ "keygen",
28
+ "link",
29
+ "menuitem",
30
+ "meta",
31
+ "param",
32
+ "source",
33
+ "track",
34
+ "wbr"
35
+ ], f = {
36
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
37
+ brackets: [
38
+ ["<!--", "-->"],
39
+ ["<", ">"],
40
+ ["{{", "}}"],
41
+ ["{%", "%}"],
42
+ ["{", "}"],
43
+ ["(", ")"]
44
+ ],
45
+ autoClosingPairs: [
46
+ { open: "{", close: "}" },
47
+ { open: "%", close: "%" },
48
+ { open: "[", close: "]" },
49
+ { open: "(", close: ")" },
50
+ { open: '"', close: '"' },
51
+ { open: "'", close: "'" }
52
+ ],
53
+ surroundingPairs: [
54
+ { open: "<", close: ">" },
55
+ { open: '"', close: '"' },
56
+ { open: "'", close: "'" }
57
+ ],
58
+ onEnterRules: [
59
+ {
60
+ beforeText: new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
61
+ afterText: /^<\/(\w[\w\d]*)\s*>$/i,
62
+ action: {
63
+ indentAction: o.languages.IndentAction.IndentOutdent
64
+ }
65
+ },
66
+ {
67
+ beforeText: new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
68
+ action: { indentAction: o.languages.IndentAction.Indent }
69
+ }
70
+ ]
71
+ }, h = {
72
+ defaultToken: "",
73
+ tokenPostfix: "",
74
+ builtinTags: [
75
+ "if",
76
+ "else",
77
+ "elseif",
78
+ "endif",
79
+ "render",
80
+ "assign",
81
+ "capture",
82
+ "endcapture",
83
+ "case",
84
+ "endcase",
85
+ "comment",
86
+ "endcomment",
87
+ "cycle",
88
+ "decrement",
89
+ "for",
90
+ "endfor",
91
+ "include",
92
+ "increment",
93
+ "layout",
94
+ "raw",
95
+ "endraw",
96
+ "render",
97
+ "tablerow",
98
+ "endtablerow",
99
+ "unless",
100
+ "endunless"
101
+ ],
102
+ builtinFilters: [
103
+ "abs",
104
+ "append",
105
+ "at_least",
106
+ "at_most",
107
+ "capitalize",
108
+ "ceil",
109
+ "compact",
110
+ "date",
111
+ "default",
112
+ "divided_by",
113
+ "downcase",
114
+ "escape",
115
+ "escape_once",
116
+ "first",
117
+ "floor",
118
+ "join",
119
+ "json",
120
+ "last",
121
+ "lstrip",
122
+ "map",
123
+ "minus",
124
+ "modulo",
125
+ "newline_to_br",
126
+ "plus",
127
+ "prepend",
128
+ "remove",
129
+ "remove_first",
130
+ "replace",
131
+ "replace_first",
132
+ "reverse",
133
+ "round",
134
+ "rstrip",
135
+ "size",
136
+ "slice",
137
+ "sort",
138
+ "sort_natural",
139
+ "split",
140
+ "strip",
141
+ "strip_html",
142
+ "strip_newlines",
143
+ "times",
144
+ "truncate",
145
+ "truncatewords",
146
+ "uniq",
147
+ "upcase",
148
+ "url_decode",
149
+ "url_encode",
150
+ "where"
151
+ ],
152
+ constants: ["true", "false"],
153
+ operators: ["==", "!=", ">", "<", ">=", "<="],
154
+ symbol: /[=><!]+/,
155
+ identifier: /[a-zA-Z_][\w]*/,
156
+ tokenizer: {
157
+ root: [
158
+ [/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
159
+ [/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
160
+ [/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
161
+ [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
162
+ [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
163
+ [/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
164
+ [/</, "delimiter.html"],
165
+ [/\{/, "delimiter.html"],
166
+ [/[^<{]+/]
167
+ ],
168
+ comment: [
169
+ [/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
170
+ [/./, "comment.content.liquid"]
171
+ ],
172
+ otherTag: [
173
+ [
174
+ /\{\{/,
175
+ {
176
+ token: "@rematch",
177
+ switchTo: "@liquidState.otherTag"
178
+ }
179
+ ],
180
+ [
181
+ /\{\%/,
182
+ {
183
+ token: "@rematch",
184
+ switchTo: "@liquidState.otherTag"
185
+ }
186
+ ],
187
+ [/\/?>/, "delimiter.html", "@pop"],
188
+ [/"([^"]*)"/, "attribute.value"],
189
+ [/'([^']*)'/, "attribute.value"],
190
+ [/[\w\-]+/, "attribute.name"],
191
+ [/=/, "delimiter"],
192
+ [/[ \t\r\n]+/]
193
+ ],
194
+ liquidState: [
195
+ [/\{\{/, "delimiter.output.liquid"],
196
+ [/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
197
+ [/\{\%/, "delimiter.tag.liquid"],
198
+ [/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
199
+ [/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
200
+ { include: "liquidRoot" }
201
+ ],
202
+ liquidRaw: [
203
+ [/^(?!\{\%\s*endraw\s*\%\}).+/],
204
+ [/\{\%/, "delimiter.tag.liquid"],
205
+ [/@identifier/],
206
+ [/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
207
+ ],
208
+ liquidRoot: [
209
+ [/\d+(\.\d+)?/, "number.liquid"],
210
+ [/"[^"]*"/, "string.liquid"],
211
+ [/'[^']*'/, "string.liquid"],
212
+ [/\s+/],
213
+ [
214
+ /@symbol/,
215
+ {
216
+ cases: {
217
+ "@operators": "operator.liquid",
218
+ "@default": ""
219
+ }
220
+ }
221
+ ],
222
+ [/\./],
223
+ [
224
+ /@identifier/,
225
+ {
226
+ cases: {
227
+ "@constants": "keyword.liquid",
228
+ "@builtinFilters": "predefined.liquid",
229
+ "@builtinTags": "predefined.liquid",
230
+ "@default": "variable.liquid"
231
+ }
232
+ }
233
+ ],
234
+ [/[^}|%]/, "variable.liquid"]
235
+ ]
236
+ }
237
+ };
238
+ export {
239
+ f as conf,
240
+ h as language
241
+ };
@@ -0,0 +1,157 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
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.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
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
+ };