@devtron-labs/devtron-fe-common-lib 1.1.5 → 1.1.6-beta-2

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 (116) hide show
  1. package/dist/@code-editor-Vbkor1r4.js +18991 -0
  2. package/dist/@common-rjsf-6UM_zh8b.js +567 -0
  3. package/dist/@framer-motion-DHY98qq3.js +3437 -0
  4. package/dist/@moment-C_WeV3Af.js +2609 -0
  5. package/dist/@monaco-editor-34kqzg3G.js +70451 -0
  6. package/dist/@react-dates-WNnwjI5S.js +7708 -0
  7. package/dist/@react-select-BbR996pa.js +2636 -0
  8. package/dist/@src-assets-images-DamVa6cS.js +14 -0
  9. package/dist/@vendor-RU8AW1bK.js +20473 -0
  10. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +2 -1
  11. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  12. package/dist/Common/RJSF/Form.d.ts +1 -1
  13. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +3 -0
  14. package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
  15. package/dist/Shared/Components/Backdrop/types.d.ts +8 -0
  16. package/dist/Shared/Components/ConfirmationModal/ConfirmationModal.d.ts +3 -0
  17. package/dist/Shared/Components/ConfirmationModal/index.d.ts +2 -0
  18. package/dist/Shared/Components/ConfirmationModal/types.d.ts +50 -0
  19. package/dist/Shared/Components/ConfirmationModal/utils.d.ts +6 -0
  20. package/dist/Shared/Components/index.d.ts +1 -0
  21. package/dist/Shared/Helpers.d.ts +2 -1
  22. package/dist/Shared/constants.d.ts +1 -0
  23. package/dist/Shared/types.d.ts +4 -0
  24. package/dist/assets/@code-editor.css +1 -0
  25. package/dist/assets/@common-rjsf.css +1 -0
  26. package/dist/assets/@monaco-editor.css +1 -0
  27. package/dist/assets/@react-dates.css +1 -0
  28. package/dist/assets/@vendor.css +1 -0
  29. package/dist/index.js +433 -428
  30. package/package.json +5 -5
  31. package/dist/abap-DttVK1gE.js +0 -1314
  32. package/dist/apex-BjfHvyb2.js +0 -315
  33. package/dist/assets/index.css +0 -1
  34. package/dist/azcli-Ws-Trf8e.js +0 -74
  35. package/dist/bat-CeCHpU9_.js +0 -95
  36. package/dist/bicep-C7a7aEmi.js +0 -108
  37. package/dist/cameligo-CJeEIvX4.js +0 -168
  38. package/dist/clojure-CEKXhLdU.js +0 -754
  39. package/dist/coffee-CKu3e6V1.js +0 -228
  40. package/dist/cpp-CvUiT5Ec.js +0 -390
  41. package/dist/csharp-PmU9HJkB.js +0 -320
  42. package/dist/csp-DULvRLPF.js +0 -57
  43. package/dist/css-CNWXQPpt.js +0 -186
  44. package/dist/cssMode-BsTjp5T1.js +0 -1446
  45. package/dist/cypher-CYHOQS2R.js +0 -262
  46. package/dist/dart-BjGx-9Jk.js +0 -270
  47. package/dist/dockerfile-D0WaVIZ2.js +0 -132
  48. package/dist/ecl-CijaJu-p.js +0 -454
  49. package/dist/elixir-BI5Tc37S.js +0 -489
  50. package/dist/flow9-BApGtQOO.js +0 -141
  51. package/dist/freemarker2-DJtqwgcS.js +0 -643
  52. package/dist/fsharp-VeKgt2eG.js +0 -210
  53. package/dist/go-Cl8cKDlN.js +0 -208
  54. package/dist/graphql-PfgPBmj4.js +0 -141
  55. package/dist/handlebars-A27t-Ka7.js +0 -391
  56. package/dist/hcl-CG4VZSkm.js +0 -177
  57. package/dist/html-oZx5D2e1.js +0 -281
  58. package/dist/htmlMode-BbYfuAfq.js +0 -1456
  59. package/dist/index-Bqp36Zxu.js +0 -159232
  60. package/dist/ini-EhiBNPZF.js +0 -68
  61. package/dist/java-DPbnXhoY.js +0 -221
  62. package/dist/javascript-7Ns1hZ1u.js +0 -75
  63. package/dist/jsonMode-CSHwDjDg.js +0 -1866
  64. package/dist/julia-Bw7EYexg.js +0 -496
  65. package/dist/kotlin-BNXLDoV0.js +0 -245
  66. package/dist/less-DtuF_id_.js +0 -168
  67. package/dist/lexon-DpB0-37O.js +0 -151
  68. package/dist/liquid-CJAHXY0w.js +0 -238
  69. package/dist/lua-CzRNOk9S.js +0 -157
  70. package/dist/m3-pXPmDwal.js +0 -210
  71. package/dist/markdown-CeQ3rxjn.js +0 -202
  72. package/dist/mdx-vt9h9Xpz.js +0 -171
  73. package/dist/mips-DyE0VSNz.js +0 -194
  74. package/dist/msdax-CbdkoqRa.js +0 -377
  75. package/dist/mysql-B86-uHNu.js +0 -876
  76. package/dist/objective-c-1xvkKPId.js +0 -188
  77. package/dist/pascal-DcyFhj80.js +0 -245
  78. package/dist/pascaligo-QnM0hvMG.js +0 -158
  79. package/dist/perl-Bqp3FbU4.js +0 -599
  80. package/dist/pgsql-HdG7BG_Z.js +0 -847
  81. package/dist/php-zf7L2p7t.js +0 -471
  82. package/dist/pla-3Ykqsyzl.js +0 -131
  83. package/dist/postiats-D1v08O4B.js +0 -544
  84. package/dist/powerquery-CiQ9b1-b.js +0 -890
  85. package/dist/powershell-DFNK6VaX.js +0 -233
  86. package/dist/protobuf-D5P2Z6tc.js +0 -422
  87. package/dist/pug-BeyMX5am.js +0 -393
  88. package/dist/python-CnibeM_K.js +0 -259
  89. package/dist/qsharp-DcFOTjuP.js +0 -282
  90. package/dist/r-B3aJPcWp.js +0 -245
  91. package/dist/razor-BWWjrM8Q.js +0 -512
  92. package/dist/redis-CyC__Tub.js +0 -298
  93. package/dist/redshift-NqbcQPcY.js +0 -806
  94. package/dist/restructuredtext-CZMxBkap.js +0 -162
  95. package/dist/ruby-C_jEtDv5.js +0 -444
  96. package/dist/rust-WAeitMCC.js +0 -337
  97. package/dist/sb-CSBm2pED.js +0 -110
  98. package/dist/scala-D76PhKmh.js +0 -353
  99. package/dist/scheme-CBSAjRuO.js +0 -114
  100. package/dist/scss-BHY8wFFg.js +0 -244
  101. package/dist/shell-Cwju9_l8.js +0 -224
  102. package/dist/solidity-BV1-nze3.js +0 -1351
  103. package/dist/sophia-DfoUlGAs.js +0 -190
  104. package/dist/sparql-4kfArTtK.js +0 -193
  105. package/dist/sql-DIpn0HSX.js +0 -818
  106. package/dist/st-BgJ_KDZh.js +0 -415
  107. package/dist/swift-D-ucEgIi.js +0 -315
  108. package/dist/systemverilog-DjkH5zuo.js +0 -556
  109. package/dist/tcl-gd8XLKJA.js +0 -232
  110. package/dist/tsMode-Ddl20Rd2.js +0 -810
  111. package/dist/twig-D5XtTFGM.js +0 -323
  112. package/dist/typescript-DJik4e7z.js +0 -328
  113. package/dist/vb-DYqqYAf3.js +0 -364
  114. package/dist/wgsl-CkZE0qf3.js +0 -420
  115. package/dist/xml-D3mR990w.js +0 -95
  116. package/dist/yaml-IjO78BY4.js +0 -184
@@ -1,245 +0,0 @@
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
- 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
- };
@@ -1,168 +0,0 @@
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
- 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
- };
@@ -1,151 +0,0 @@
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: "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
- };