act-plus 1.1.18 → 1.1.20

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,245 @@
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
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
9
+ comments: {
10
+ lineComment: "//",
11
+ blockComment: ["/*", "*/"]
12
+ },
13
+ brackets: [
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
+ { open: "<", close: ">" }
32
+ ],
33
+ folding: {
34
+ markers: {
35
+ start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
36
+ end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
37
+ }
38
+ }
39
+ }, t = {
40
+ defaultToken: "",
41
+ tokenPostfix: ".kt",
42
+ keywords: [
43
+ "as",
44
+ "as?",
45
+ "break",
46
+ "class",
47
+ "continue",
48
+ "do",
49
+ "else",
50
+ "false",
51
+ "for",
52
+ "fun",
53
+ "if",
54
+ "in",
55
+ "!in",
56
+ "interface",
57
+ "is",
58
+ "!is",
59
+ "null",
60
+ "object",
61
+ "package",
62
+ "return",
63
+ "super",
64
+ "this",
65
+ "throw",
66
+ "true",
67
+ "try",
68
+ "typealias",
69
+ "val",
70
+ "var",
71
+ "when",
72
+ "while",
73
+ "by",
74
+ "catch",
75
+ "constructor",
76
+ "delegate",
77
+ "dynamic",
78
+ "field",
79
+ "file",
80
+ "finally",
81
+ "get",
82
+ "import",
83
+ "init",
84
+ "param",
85
+ "property",
86
+ "receiver",
87
+ "set",
88
+ "setparam",
89
+ "where",
90
+ "actual",
91
+ "abstract",
92
+ "annotation",
93
+ "companion",
94
+ "const",
95
+ "crossinline",
96
+ "data",
97
+ "enum",
98
+ "expect",
99
+ "external",
100
+ "final",
101
+ "infix",
102
+ "inline",
103
+ "inner",
104
+ "internal",
105
+ "lateinit",
106
+ "noinline",
107
+ "open",
108
+ "operator",
109
+ "out",
110
+ "override",
111
+ "private",
112
+ "protected",
113
+ "public",
114
+ "reified",
115
+ "sealed",
116
+ "suspend",
117
+ "tailrec",
118
+ "vararg",
119
+ "field",
120
+ "it"
121
+ ],
122
+ operators: [
123
+ "+",
124
+ "-",
125
+ "*",
126
+ "/",
127
+ "%",
128
+ "=",
129
+ "+=",
130
+ "-=",
131
+ "*=",
132
+ "/=",
133
+ "%=",
134
+ "++",
135
+ "--",
136
+ "&&",
137
+ "||",
138
+ "!",
139
+ "==",
140
+ "!=",
141
+ "===",
142
+ "!==",
143
+ ">",
144
+ "<",
145
+ "<=",
146
+ ">=",
147
+ "[",
148
+ "]",
149
+ "!!",
150
+ "?.",
151
+ "?:",
152
+ "::",
153
+ "..",
154
+ ":",
155
+ "?",
156
+ "->",
157
+ "@",
158
+ ";",
159
+ "$",
160
+ "_"
161
+ ],
162
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
163
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
164
+ digits: /\d+(_+\d+)*/,
165
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
166
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
167
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
168
+ tokenizer: {
169
+ root: [
170
+ [/[A-Z][\w\$]*/, "type.identifier"],
171
+ [
172
+ /[a-zA-Z_$][\w$]*/,
173
+ {
174
+ cases: {
175
+ "@keywords": { token: "keyword.$0" },
176
+ "@default": "identifier"
177
+ }
178
+ }
179
+ ],
180
+ { include: "@whitespace" },
181
+ [/[{}()\[\]]/, "@brackets"],
182
+ [/[<>](?!@symbols)/, "@brackets"],
183
+ [
184
+ /@symbols/,
185
+ {
186
+ cases: {
187
+ "@operators": "delimiter",
188
+ "@default": ""
189
+ }
190
+ }
191
+ ],
192
+ [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
193
+ [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
194
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
195
+ [/0[xX](@hexdigits)[Ll]?/, "number.hex"],
196
+ [/0(@octaldigits)[Ll]?/, "number.octal"],
197
+ [/0[bB](@binarydigits)[Ll]?/, "number.binary"],
198
+ [/(@digits)[fFdD]/, "number.float"],
199
+ [/(@digits)[lL]?/, "number"],
200
+ [/[;,.]/, "delimiter"],
201
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
202
+ [/"""/, "string", "@multistring"],
203
+ [/"/, "string", "@string"],
204
+ [/'[^\\']'/, "string"],
205
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
206
+ [/'/, "string.invalid"]
207
+ ],
208
+ whitespace: [
209
+ [/[ \t\r\n]+/, ""],
210
+ [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
211
+ [/\/\*/, "comment", "@comment"],
212
+ [/\/\/.*$/, "comment"]
213
+ ],
214
+ comment: [
215
+ [/[^\/*]+/, "comment"],
216
+ [/\/\*/, "comment", "@comment"],
217
+ [/\*\//, "comment", "@pop"],
218
+ [/[\/*]/, "comment"]
219
+ ],
220
+ javadoc: [
221
+ [/[^\/*]+/, "comment.doc"],
222
+ [/\/\*/, "comment.doc", "@push"],
223
+ [/\/\*/, "comment.doc.invalid"],
224
+ [/\*\//, "comment.doc", "@pop"],
225
+ [/[\/*]/, "comment.doc"]
226
+ ],
227
+ string: [
228
+ [/[^\\"]+/, "string"],
229
+ [/@escapes/, "string.escape"],
230
+ [/\\./, "string.escape.invalid"],
231
+ [/"/, "string", "@pop"]
232
+ ],
233
+ multistring: [
234
+ [/[^\\"]+/, "string"],
235
+ [/@escapes/, "string.escape"],
236
+ [/\\./, "string.escape.invalid"],
237
+ [/"""/, "string", "@pop"],
238
+ [/./, "string"]
239
+ ]
240
+ }
241
+ };
242
+ export {
243
+ e as conf,
244
+ t as language
245
+ };
@@ -0,0 +1,168 @@
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
+ wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,
9
+ comments: {
10
+ blockComment: ["/*", "*/"],
11
+ lineComment: "//"
12
+ },
13
+ brackets: [
14
+ ["{", "}"],
15
+ ["[", "]"],
16
+ ["(", ")"]
17
+ ],
18
+ autoClosingPairs: [
19
+ { open: "{", close: "}", notIn: ["string", "comment"] },
20
+ { open: "[", close: "]", notIn: ["string", "comment"] },
21
+ { open: "(", close: ")", notIn: ["string", "comment"] },
22
+ { open: '"', close: '"', notIn: ["string", "comment"] },
23
+ { open: "'", close: "'", notIn: ["string", "comment"] }
24
+ ],
25
+ surroundingPairs: [
26
+ { open: "{", close: "}" },
27
+ { open: "[", close: "]" },
28
+ { open: "(", close: ")" },
29
+ { open: '"', close: '"' },
30
+ { open: "'", close: "'" }
31
+ ],
32
+ folding: {
33
+ markers: {
34
+ start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
35
+ end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
36
+ }
37
+ }
38
+ }, t = {
39
+ defaultToken: "",
40
+ tokenPostfix: ".less",
41
+ identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
42
+ identifierPlus: "-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
43
+ brackets: [
44
+ { open: "{", close: "}", token: "delimiter.curly" },
45
+ { open: "[", close: "]", token: "delimiter.bracket" },
46
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
47
+ { open: "<", close: ">", token: "delimiter.angle" }
48
+ ],
49
+ tokenizer: {
50
+ root: [
51
+ { include: "@nestedJSBegin" },
52
+ ["[ \\t\\r\\n]+", ""],
53
+ { include: "@comments" },
54
+ { include: "@keyword" },
55
+ { include: "@strings" },
56
+ { include: "@numbers" },
57
+ ["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))", "attribute.name", "@attribute"],
58
+ ["url(\\-prefix)?\\(", { token: "tag", next: "@urldeclaration" }],
59
+ ["[{}()\\[\\]]", "@brackets"],
60
+ ["[,:;]", "delimiter"],
61
+ ["#@identifierPlus", "tag.id"],
62
+ ["&", "tag"],
63
+ ["\\.@identifierPlus(?=\\()", "tag.class", "@attribute"],
64
+ ["\\.@identifierPlus", "tag.class"],
65
+ ["@identifierPlus", "tag"],
66
+ { include: "@operators" },
67
+ ["@(@identifier(?=[:,\\)]))", "variable", "@attribute"],
68
+ ["@(@identifier)", "variable"],
69
+ ["@", "key", "@atRules"]
70
+ ],
71
+ nestedJSBegin: [
72
+ ["``", "delimiter.backtick"],
73
+ [
74
+ "`",
75
+ {
76
+ token: "delimiter.backtick",
77
+ next: "@nestedJSEnd",
78
+ nextEmbedded: "text/javascript"
79
+ }
80
+ ]
81
+ ],
82
+ nestedJSEnd: [
83
+ [
84
+ "`",
85
+ {
86
+ token: "delimiter.backtick",
87
+ next: "@pop",
88
+ nextEmbedded: "@pop"
89
+ }
90
+ ]
91
+ ],
92
+ operators: [["[<>=\\+\\-\\*\\/\\^\\|\\~]", "operator"]],
93
+ keyword: [
94
+ [
95
+ "(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b",
96
+ "keyword"
97
+ ]
98
+ ],
99
+ urldeclaration: [
100
+ { include: "@strings" },
101
+ [`[^)\r
102
+ ]+`, "string"],
103
+ ["\\)", { token: "tag", next: "@pop" }]
104
+ ],
105
+ attribute: [
106
+ { include: "@nestedJSBegin" },
107
+ { include: "@comments" },
108
+ { include: "@strings" },
109
+ { include: "@numbers" },
110
+ { include: "@keyword" },
111
+ ["[a-zA-Z\\-]+(?=\\()", "attribute.value", "@attribute"],
112
+ [">", "operator", "@pop"],
113
+ ["@identifier", "attribute.value"],
114
+ { include: "@operators" },
115
+ ["@(@identifier)", "variable"],
116
+ ["[)\\}]", "@brackets", "@pop"],
117
+ ["[{}()\\[\\]>]", "@brackets"],
118
+ ["[;]", "delimiter", "@pop"],
119
+ ["[,=:]", "delimiter"],
120
+ ["\\s", ""],
121
+ [".", "attribute.value"]
122
+ ],
123
+ comments: [
124
+ ["\\/\\*", "comment", "@comment"],
125
+ ["\\/\\/+.*", "comment"]
126
+ ],
127
+ comment: [
128
+ ["\\*\\/", "comment", "@pop"],
129
+ [".", "comment"]
130
+ ],
131
+ numbers: [
132
+ ["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
133
+ ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
134
+ ],
135
+ units: [
136
+ [
137
+ "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
138
+ "attribute.value.unit",
139
+ "@pop"
140
+ ]
141
+ ],
142
+ strings: [
143
+ ['~?"', { token: "string.delimiter", next: "@stringsEndDoubleQuote" }],
144
+ ["~?'", { token: "string.delimiter", next: "@stringsEndQuote" }]
145
+ ],
146
+ stringsEndDoubleQuote: [
147
+ ['\\\\"', "string"],
148
+ ['"', { token: "string.delimiter", next: "@popall" }],
149
+ [".", "string"]
150
+ ],
151
+ stringsEndQuote: [
152
+ ["\\\\'", "string"],
153
+ ["'", { token: "string.delimiter", next: "@popall" }],
154
+ [".", "string"]
155
+ ],
156
+ atRules: [
157
+ { include: "@comments" },
158
+ { include: "@strings" },
159
+ ["[()]", "delimiter"],
160
+ ["[\\{;]", "delimiter", "@pop"],
161
+ [".", "key"]
162
+ ]
163
+ }
164
+ };
165
+ export {
166
+ e as conf,
167
+ t as language
168
+ };
@@ -0,0 +1,151 @@
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: "COMMENT"
10
+ },
11
+ brackets: [["(", ")"]],
12
+ autoClosingPairs: [
13
+ { open: "{", close: "}" },
14
+ { open: "[", close: "]" },
15
+ { open: "(", close: ")" },
16
+ { open: '"', close: '"' },
17
+ { open: ":", close: "." }
18
+ ],
19
+ surroundingPairs: [
20
+ { open: "{", close: "}" },
21
+ { open: "[", close: "]" },
22
+ { open: "(", close: ")" },
23
+ { open: "`", close: "`" },
24
+ { open: '"', close: '"' },
25
+ { open: "'", close: "'" },
26
+ { open: ":", close: "." }
27
+ ],
28
+ folding: {
29
+ markers: {
30
+ start: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),
31
+ end: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")
32
+ }
33
+ }
34
+ }, t = {
35
+ tokenPostfix: ".lexon",
36
+ ignoreCase: !0,
37
+ keywords: [
38
+ "lexon",
39
+ "lex",
40
+ "clause",
41
+ "terms",
42
+ "contracts",
43
+ "may",
44
+ "pay",
45
+ "pays",
46
+ "appoints",
47
+ "into",
48
+ "to"
49
+ ],
50
+ typeKeywords: ["amount", "person", "key", "time", "date", "asset", "text"],
51
+ operators: [
52
+ "less",
53
+ "greater",
54
+ "equal",
55
+ "le",
56
+ "gt",
57
+ "or",
58
+ "and",
59
+ "add",
60
+ "added",
61
+ "subtract",
62
+ "subtracted",
63
+ "multiply",
64
+ "multiplied",
65
+ "times",
66
+ "divide",
67
+ "divided",
68
+ "is",
69
+ "be",
70
+ "certified"
71
+ ],
72
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
73
+ tokenizer: {
74
+ root: [
75
+ [/^(\s*)(comment:?(?:\s.*|))$/, ["", "comment"]],
76
+ [
77
+ /"/,
78
+ {
79
+ token: "identifier.quote",
80
+ bracket: "@open",
81
+ next: "@quoted_identifier"
82
+ }
83
+ ],
84
+ [
85
+ "LEX$",
86
+ {
87
+ token: "keyword",
88
+ bracket: "@open",
89
+ next: "@identifier_until_period"
90
+ }
91
+ ],
92
+ ["LEXON", { token: "keyword", bracket: "@open", next: "@semver" }],
93
+ [
94
+ ":",
95
+ {
96
+ token: "delimiter",
97
+ bracket: "@open",
98
+ next: "@identifier_until_period"
99
+ }
100
+ ],
101
+ [
102
+ /[a-z_$][\w$]*/,
103
+ {
104
+ cases: {
105
+ "@operators": "operator",
106
+ "@typeKeywords": "keyword.type",
107
+ "@keywords": "keyword",
108
+ "@default": "identifier"
109
+ }
110
+ }
111
+ ],
112
+ { include: "@whitespace" },
113
+ [/[{}()\[\]]/, "@brackets"],
114
+ [/[<>](?!@symbols)/, "@brackets"],
115
+ [/@symbols/, "delimiter"],
116
+ [/\d*\.\d*\.\d*/, "number.semver"],
117
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
118
+ [/0[xX][0-9a-fA-F]+/, "number.hex"],
119
+ [/\d+/, "number"],
120
+ [/[;,.]/, "delimiter"]
121
+ ],
122
+ quoted_identifier: [
123
+ [/[^\\"]+/, "identifier"],
124
+ [/"/, { token: "identifier.quote", bracket: "@close", next: "@pop" }]
125
+ ],
126
+ space_identifier_until_period: [
127
+ [":", "delimiter"],
128
+ [" ", { token: "white", next: "@identifier_rest" }]
129
+ ],
130
+ identifier_until_period: [
131
+ { include: "@whitespace" },
132
+ [":", { token: "delimiter", next: "@identifier_rest" }],
133
+ [/[^\\.]+/, "identifier"],
134
+ [/\./, { token: "delimiter", bracket: "@close", next: "@pop" }]
135
+ ],
136
+ identifier_rest: [
137
+ [/[^\\.]+/, "identifier"],
138
+ [/\./, { token: "delimiter", bracket: "@close", next: "@pop" }]
139
+ ],
140
+ semver: [
141
+ { include: "@whitespace" },
142
+ [":", "delimiter"],
143
+ [/\d*\.\d*\.\d*/, { token: "number.semver", bracket: "@close", next: "@pop" }]
144
+ ],
145
+ whitespace: [[/[ \t\r\n]+/, "white"]]
146
+ }
147
+ };
148
+ export {
149
+ e as conf,
150
+ t as language
151
+ };