@devtron-labs/devtron-fe-common-lib 1.1.6-beta-2 → 1.1.6-beta-3
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.
- package/dist/abap-DttVK1gE.js +1314 -0
- package/dist/apex-BjfHvyb2.js +315 -0
- package/dist/assets/index.css +1 -0
- package/dist/azcli-Ws-Trf8e.js +74 -0
- package/dist/bat-CeCHpU9_.js +95 -0
- package/dist/bicep-C7a7aEmi.js +108 -0
- package/dist/cameligo-CJeEIvX4.js +168 -0
- package/dist/clojure-CEKXhLdU.js +754 -0
- package/dist/coffee-CKu3e6V1.js +228 -0
- package/dist/cpp-CvUiT5Ec.js +390 -0
- package/dist/csharp-PmU9HJkB.js +320 -0
- package/dist/csp-DULvRLPF.js +57 -0
- package/dist/css-CNWXQPpt.js +186 -0
- package/dist/cssMode-LuGmMkrz.js +1446 -0
- package/dist/cypher-CYHOQS2R.js +262 -0
- package/dist/dart-BjGx-9Jk.js +270 -0
- package/dist/dockerfile-D0WaVIZ2.js +132 -0
- package/dist/ecl-CijaJu-p.js +454 -0
- package/dist/elixir-BI5Tc37S.js +489 -0
- package/dist/flow9-BApGtQOO.js +141 -0
- package/dist/freemarker2-x4RlP1Lb.js +643 -0
- package/dist/fsharp-VeKgt2eG.js +210 -0
- package/dist/go-Cl8cKDlN.js +208 -0
- package/dist/graphql-PfgPBmj4.js +141 -0
- package/dist/handlebars-CmzmbrC4.js +391 -0
- package/dist/hcl-CG4VZSkm.js +177 -0
- package/dist/html-C5BGMOju.js +281 -0
- package/dist/htmlMode-ojR1UPbw.js +1456 -0
- package/dist/index-D-Wm7m6U.js +163399 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +429 -430
- package/dist/ini-EhiBNPZF.js +68 -0
- package/dist/java-DPbnXhoY.js +221 -0
- package/dist/javascript-B1bShWIo.js +75 -0
- package/dist/jsonMode-COdOy9-_.js +1866 -0
- package/dist/julia-Bw7EYexg.js +496 -0
- package/dist/kotlin-BNXLDoV0.js +245 -0
- package/dist/less-DtuF_id_.js +168 -0
- package/dist/lexon-DpB0-37O.js +151 -0
- package/dist/liquid-BjXJHFpF.js +238 -0
- package/dist/lua-CzRNOk9S.js +157 -0
- package/dist/m3-pXPmDwal.js +210 -0
- package/dist/markdown-CeQ3rxjn.js +202 -0
- package/dist/mdx-XJRNLcdB.js +171 -0
- package/dist/mips-DyE0VSNz.js +194 -0
- package/dist/msdax-CbdkoqRa.js +377 -0
- package/dist/mysql-B86-uHNu.js +876 -0
- package/dist/objective-c-1xvkKPId.js +188 -0
- package/dist/pascal-DcyFhj80.js +245 -0
- package/dist/pascaligo-QnM0hvMG.js +158 -0
- package/dist/perl-Bqp3FbU4.js +599 -0
- package/dist/pgsql-HdG7BG_Z.js +847 -0
- package/dist/php-zf7L2p7t.js +471 -0
- package/dist/pla-3Ykqsyzl.js +131 -0
- package/dist/postiats-D1v08O4B.js +544 -0
- package/dist/powerquery-CiQ9b1-b.js +890 -0
- package/dist/powershell-DFNK6VaX.js +233 -0
- package/dist/protobuf-D5P2Z6tc.js +422 -0
- package/dist/pug-BeyMX5am.js +393 -0
- package/dist/python-CEuHuu7a.js +259 -0
- package/dist/qsharp-DcFOTjuP.js +282 -0
- package/dist/r-B3aJPcWp.js +245 -0
- package/dist/razor-ByG7kYAl.js +512 -0
- package/dist/redis-CyC__Tub.js +298 -0
- package/dist/redshift-NqbcQPcY.js +806 -0
- package/dist/restructuredtext-CZMxBkap.js +162 -0
- package/dist/ruby-C_jEtDv5.js +444 -0
- package/dist/rust-WAeitMCC.js +337 -0
- package/dist/sb-CSBm2pED.js +110 -0
- package/dist/scala-D76PhKmh.js +353 -0
- package/dist/scheme-CBSAjRuO.js +114 -0
- package/dist/scss-BHY8wFFg.js +244 -0
- package/dist/shell-Cwju9_l8.js +224 -0
- package/dist/solidity-BV1-nze3.js +1351 -0
- package/dist/sophia-DfoUlGAs.js +190 -0
- package/dist/sparql-4kfArTtK.js +193 -0
- package/dist/sql-DIpn0HSX.js +818 -0
- package/dist/st-BgJ_KDZh.js +415 -0
- package/dist/swift-D-ucEgIi.js +315 -0
- package/dist/systemverilog-DjkH5zuo.js +556 -0
- package/dist/tcl-gd8XLKJA.js +232 -0
- package/dist/tsMode-GtXif5Eu.js +810 -0
- package/dist/twig-D5XtTFGM.js +323 -0
- package/dist/typescript-FqIgT4Lb.js +328 -0
- package/dist/vb-DYqqYAf3.js +364 -0
- package/dist/wgsl-CkZE0qf3.js +420 -0
- package/dist/xml-BUcUe2Ft.js +95 -0
- package/dist/yaml-CFa20EYw.js +184 -0
- package/package.json +5 -4
- package/dist/@code-editor-Vbkor1r4.js +0 -18991
- package/dist/@common-rjsf-6UM_zh8b.js +0 -567
- package/dist/@framer-motion-DHY98qq3.js +0 -3437
- package/dist/@moment-C_WeV3Af.js +0 -2609
- package/dist/@monaco-editor-34kqzg3G.js +0 -70451
- package/dist/@react-dates-WNnwjI5S.js +0 -7708
- package/dist/@react-select-BbR996pa.js +0 -2636
- package/dist/@src-assets-images-DamVa6cS.js +0 -14
- package/dist/@vendor-RU8AW1bK.js +0 -20473
- package/dist/assets/@code-editor.css +0 -1
- package/dist/assets/@common-rjsf.css +0 -1
- package/dist/assets/@monaco-editor.css +0 -1
- package/dist/assets/@react-dates.css +0 -1
- package/dist/assets/@vendor.css +0 -1
|
@@ -0,0 +1,489 @@
|
|
|
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
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
surroundingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: "'", close: "'" },
|
|
21
|
+
{ open: '"', close: '"' }
|
|
22
|
+
],
|
|
23
|
+
autoClosingPairs: [
|
|
24
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
25
|
+
{ open: '"', close: '"', notIn: ["comment"] },
|
|
26
|
+
{ open: '"""', close: '"""' },
|
|
27
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: "{", close: "}" },
|
|
30
|
+
{ open: "[", close: "]" },
|
|
31
|
+
{ open: "<<", close: ">>" }
|
|
32
|
+
],
|
|
33
|
+
indentationRules: {
|
|
34
|
+
increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
|
|
35
|
+
decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
|
|
36
|
+
}
|
|
37
|
+
}, t = {
|
|
38
|
+
defaultToken: "source",
|
|
39
|
+
tokenPostfix: ".elixir",
|
|
40
|
+
brackets: [
|
|
41
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
42
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
43
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
44
|
+
{ open: "<<", close: ">>", token: "delimiter.angle.special" }
|
|
45
|
+
],
|
|
46
|
+
declarationKeywords: [
|
|
47
|
+
"def",
|
|
48
|
+
"defp",
|
|
49
|
+
"defn",
|
|
50
|
+
"defnp",
|
|
51
|
+
"defguard",
|
|
52
|
+
"defguardp",
|
|
53
|
+
"defmacro",
|
|
54
|
+
"defmacrop",
|
|
55
|
+
"defdelegate",
|
|
56
|
+
"defcallback",
|
|
57
|
+
"defmacrocallback",
|
|
58
|
+
"defmodule",
|
|
59
|
+
"defprotocol",
|
|
60
|
+
"defexception",
|
|
61
|
+
"defimpl",
|
|
62
|
+
"defstruct"
|
|
63
|
+
],
|
|
64
|
+
operatorKeywords: ["and", "in", "not", "or", "when"],
|
|
65
|
+
namespaceKeywords: ["alias", "import", "require", "use"],
|
|
66
|
+
otherKeywords: [
|
|
67
|
+
"after",
|
|
68
|
+
"case",
|
|
69
|
+
"catch",
|
|
70
|
+
"cond",
|
|
71
|
+
"do",
|
|
72
|
+
"else",
|
|
73
|
+
"end",
|
|
74
|
+
"fn",
|
|
75
|
+
"for",
|
|
76
|
+
"if",
|
|
77
|
+
"quote",
|
|
78
|
+
"raise",
|
|
79
|
+
"receive",
|
|
80
|
+
"rescue",
|
|
81
|
+
"super",
|
|
82
|
+
"throw",
|
|
83
|
+
"try",
|
|
84
|
+
"unless",
|
|
85
|
+
"unquote_splicing",
|
|
86
|
+
"unquote",
|
|
87
|
+
"with"
|
|
88
|
+
],
|
|
89
|
+
constants: ["true", "false", "nil"],
|
|
90
|
+
nameBuiltin: ["__MODULE__", "__DIR__", "__ENV__", "__CALLER__", "__STACKTRACE__"],
|
|
91
|
+
operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
|
92
|
+
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
|
93
|
+
atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
|
|
94
|
+
specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
|
|
95
|
+
aliasPart: /[A-Z][a-zA-Z0-9_]*/,
|
|
96
|
+
moduleName: /@aliasPart(?:\.@aliasPart)*/,
|
|
97
|
+
sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
|
|
98
|
+
sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
|
|
99
|
+
sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
|
|
100
|
+
sigilModifiers: /[a-zA-Z0-9]*/,
|
|
101
|
+
decimal: /\d(?:_?\d)*/,
|
|
102
|
+
hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
|
|
103
|
+
octal: /[0-7](_?[0-7])*/,
|
|
104
|
+
binary: /[01](_?[01])*/,
|
|
105
|
+
escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
|
|
106
|
+
tokenizer: {
|
|
107
|
+
root: [
|
|
108
|
+
{ include: "@whitespace" },
|
|
109
|
+
{ include: "@comments" },
|
|
110
|
+
{ include: "@keywordsShorthand" },
|
|
111
|
+
{ include: "@numbers" },
|
|
112
|
+
{ include: "@identifiers" },
|
|
113
|
+
{ include: "@strings" },
|
|
114
|
+
{ include: "@atoms" },
|
|
115
|
+
{ include: "@sigils" },
|
|
116
|
+
{ include: "@attributes" },
|
|
117
|
+
{ include: "@symbols" }
|
|
118
|
+
],
|
|
119
|
+
whitespace: [[/\s+/, "white"]],
|
|
120
|
+
comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
|
|
121
|
+
keywordsShorthand: [
|
|
122
|
+
[/(@atomName)(:)(\s+)/, ["constant", "constant.punctuation", "white"]],
|
|
123
|
+
[
|
|
124
|
+
/"(?=([^"]|#\{.*?\}|\\")*":)/,
|
|
125
|
+
{ token: "constant.delimiter", next: "@doubleQuotedStringKeyword" }
|
|
126
|
+
],
|
|
127
|
+
[
|
|
128
|
+
/'(?=([^']|#\{.*?\}|\\')*':)/,
|
|
129
|
+
{ token: "constant.delimiter", next: "@singleQuotedStringKeyword" }
|
|
130
|
+
]
|
|
131
|
+
],
|
|
132
|
+
doubleQuotedStringKeyword: [
|
|
133
|
+
[/":/, { token: "constant.delimiter", next: "@pop" }],
|
|
134
|
+
{ include: "@stringConstantContentInterpol" }
|
|
135
|
+
],
|
|
136
|
+
singleQuotedStringKeyword: [
|
|
137
|
+
[/':/, { token: "constant.delimiter", next: "@pop" }],
|
|
138
|
+
{ include: "@stringConstantContentInterpol" }
|
|
139
|
+
],
|
|
140
|
+
numbers: [
|
|
141
|
+
[/0b@binary/, "number.binary"],
|
|
142
|
+
[/0o@octal/, "number.octal"],
|
|
143
|
+
[/0x@hex/, "number.hex"],
|
|
144
|
+
[/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
|
|
145
|
+
[/@decimal/, "number"]
|
|
146
|
+
],
|
|
147
|
+
identifiers: [
|
|
148
|
+
[
|
|
149
|
+
/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
|
|
150
|
+
[
|
|
151
|
+
"keyword.declaration",
|
|
152
|
+
"white",
|
|
153
|
+
{
|
|
154
|
+
cases: {
|
|
155
|
+
unquote: "keyword",
|
|
156
|
+
"@default": "function"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
],
|
|
161
|
+
[
|
|
162
|
+
/(@variableName)(?=\s*\.?\s*\()/,
|
|
163
|
+
{
|
|
164
|
+
cases: {
|
|
165
|
+
"@declarationKeywords": "keyword.declaration",
|
|
166
|
+
"@namespaceKeywords": "keyword",
|
|
167
|
+
"@otherKeywords": "keyword",
|
|
168
|
+
"@default": "function.call"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
|
|
174
|
+
["type.identifier", "white", "operator", "white", "function.call"]
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
|
|
178
|
+
["constant.punctuation", "constant", "white", "operator", "white", "function.call"]
|
|
179
|
+
],
|
|
180
|
+
[
|
|
181
|
+
/(\|>)(\s*)(@variableName)/,
|
|
182
|
+
[
|
|
183
|
+
"operator",
|
|
184
|
+
"white",
|
|
185
|
+
{
|
|
186
|
+
cases: {
|
|
187
|
+
"@otherKeywords": "keyword",
|
|
188
|
+
"@default": "function.call"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
/(&)(\s*)(@variableName)/,
|
|
195
|
+
["operator", "white", "function.call"]
|
|
196
|
+
],
|
|
197
|
+
[
|
|
198
|
+
/@variableName/,
|
|
199
|
+
{
|
|
200
|
+
cases: {
|
|
201
|
+
"@declarationKeywords": "keyword.declaration",
|
|
202
|
+
"@operatorKeywords": "keyword.operator",
|
|
203
|
+
"@namespaceKeywords": "keyword",
|
|
204
|
+
"@otherKeywords": "keyword",
|
|
205
|
+
"@constants": "constant.language",
|
|
206
|
+
"@nameBuiltin": "variable.language",
|
|
207
|
+
"_.*": "comment.unused",
|
|
208
|
+
"@default": "identifier"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
[/@moduleName/, "type.identifier"]
|
|
213
|
+
],
|
|
214
|
+
strings: [
|
|
215
|
+
[/"""/, { token: "string.delimiter", next: "@doubleQuotedHeredoc" }],
|
|
216
|
+
[/'''/, { token: "string.delimiter", next: "@singleQuotedHeredoc" }],
|
|
217
|
+
[/"/, { token: "string.delimiter", next: "@doubleQuotedString" }],
|
|
218
|
+
[/'/, { token: "string.delimiter", next: "@singleQuotedString" }]
|
|
219
|
+
],
|
|
220
|
+
doubleQuotedHeredoc: [
|
|
221
|
+
[/"""/, { token: "string.delimiter", next: "@pop" }],
|
|
222
|
+
{ include: "@stringContentInterpol" }
|
|
223
|
+
],
|
|
224
|
+
singleQuotedHeredoc: [
|
|
225
|
+
[/'''/, { token: "string.delimiter", next: "@pop" }],
|
|
226
|
+
{ include: "@stringContentInterpol" }
|
|
227
|
+
],
|
|
228
|
+
doubleQuotedString: [
|
|
229
|
+
[/"/, { token: "string.delimiter", next: "@pop" }],
|
|
230
|
+
{ include: "@stringContentInterpol" }
|
|
231
|
+
],
|
|
232
|
+
singleQuotedString: [
|
|
233
|
+
[/'/, { token: "string.delimiter", next: "@pop" }],
|
|
234
|
+
{ include: "@stringContentInterpol" }
|
|
235
|
+
],
|
|
236
|
+
atoms: [
|
|
237
|
+
[/(:)(@atomName)/, ["constant.punctuation", "constant"]],
|
|
238
|
+
[/:"/, { token: "constant.delimiter", next: "@doubleQuotedStringAtom" }],
|
|
239
|
+
[/:'/, { token: "constant.delimiter", next: "@singleQuotedStringAtom" }]
|
|
240
|
+
],
|
|
241
|
+
doubleQuotedStringAtom: [
|
|
242
|
+
[/"/, { token: "constant.delimiter", next: "@pop" }],
|
|
243
|
+
{ include: "@stringConstantContentInterpol" }
|
|
244
|
+
],
|
|
245
|
+
singleQuotedStringAtom: [
|
|
246
|
+
[/'/, { token: "constant.delimiter", next: "@pop" }],
|
|
247
|
+
{ include: "@stringConstantContentInterpol" }
|
|
248
|
+
],
|
|
249
|
+
sigils: [
|
|
250
|
+
[/~[a-z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.interpol" }],
|
|
251
|
+
[/~([A-Z]+)@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.noInterpol" }]
|
|
252
|
+
],
|
|
253
|
+
sigil: [
|
|
254
|
+
[/~([a-z]|[A-Z]+)\{/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.{.}" }],
|
|
255
|
+
[/~([a-z]|[A-Z]+)\[/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.[.]" }],
|
|
256
|
+
[/~([a-z]|[A-Z]+)\(/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.(.)" }],
|
|
257
|
+
[/~([a-z]|[A-Z]+)\</, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.<.>" }],
|
|
258
|
+
[
|
|
259
|
+
/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,
|
|
260
|
+
{ token: "@rematch", switchTo: "@sigilStart.$S2.$1.$2.$2" }
|
|
261
|
+
]
|
|
262
|
+
],
|
|
263
|
+
"sigilStart.interpol.s": [
|
|
264
|
+
[
|
|
265
|
+
/~s@sigilStartDelimiter/,
|
|
266
|
+
{
|
|
267
|
+
token: "string.delimiter",
|
|
268
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
],
|
|
272
|
+
"sigilContinue.interpol.s": [
|
|
273
|
+
[
|
|
274
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
275
|
+
{
|
|
276
|
+
cases: {
|
|
277
|
+
"$1==$S5": { token: "string.delimiter", next: "@pop" },
|
|
278
|
+
"@default": "string"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
{ include: "@stringContentInterpol" }
|
|
283
|
+
],
|
|
284
|
+
"sigilStart.noInterpol.S": [
|
|
285
|
+
[
|
|
286
|
+
/~S@sigilStartDelimiter/,
|
|
287
|
+
{
|
|
288
|
+
token: "string.delimiter",
|
|
289
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
],
|
|
293
|
+
"sigilContinue.noInterpol.S": [
|
|
294
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "string"],
|
|
295
|
+
[
|
|
296
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
297
|
+
{
|
|
298
|
+
cases: {
|
|
299
|
+
"$1==$S5": { token: "string.delimiter", next: "@pop" },
|
|
300
|
+
"@default": "string"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
{ include: "@stringContent" }
|
|
305
|
+
],
|
|
306
|
+
"sigilStart.interpol.r": [
|
|
307
|
+
[
|
|
308
|
+
/~r@sigilStartDelimiter/,
|
|
309
|
+
{
|
|
310
|
+
token: "regexp.delimiter",
|
|
311
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
],
|
|
315
|
+
"sigilContinue.interpol.r": [
|
|
316
|
+
[
|
|
317
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
318
|
+
{
|
|
319
|
+
cases: {
|
|
320
|
+
"$1==$S5": { token: "regexp.delimiter", next: "@pop" },
|
|
321
|
+
"@default": "regexp"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
{ include: "@regexpContentInterpol" }
|
|
326
|
+
],
|
|
327
|
+
"sigilStart.noInterpol.R": [
|
|
328
|
+
[
|
|
329
|
+
/~R@sigilStartDelimiter/,
|
|
330
|
+
{
|
|
331
|
+
token: "regexp.delimiter",
|
|
332
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
],
|
|
336
|
+
"sigilContinue.noInterpol.R": [
|
|
337
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
|
|
338
|
+
[
|
|
339
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
340
|
+
{
|
|
341
|
+
cases: {
|
|
342
|
+
"$1==$S5": { token: "regexp.delimiter", next: "@pop" },
|
|
343
|
+
"@default": "regexp"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
{ include: "@regexpContent" }
|
|
348
|
+
],
|
|
349
|
+
"sigilStart.interpol": [
|
|
350
|
+
[
|
|
351
|
+
/~([a-z]|[A-Z]+)@sigilStartDelimiter/,
|
|
352
|
+
{
|
|
353
|
+
token: "sigil.delimiter",
|
|
354
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
],
|
|
358
|
+
"sigilContinue.interpol": [
|
|
359
|
+
[
|
|
360
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
361
|
+
{
|
|
362
|
+
cases: {
|
|
363
|
+
"$1==$S5": { token: "sigil.delimiter", next: "@pop" },
|
|
364
|
+
"@default": "sigil"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
{ include: "@sigilContentInterpol" }
|
|
369
|
+
],
|
|
370
|
+
"sigilStart.noInterpol": [
|
|
371
|
+
[
|
|
372
|
+
/~([a-z]|[A-Z]+)@sigilStartDelimiter/,
|
|
373
|
+
{
|
|
374
|
+
token: "sigil.delimiter",
|
|
375
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
],
|
|
379
|
+
"sigilContinue.noInterpol": [
|
|
380
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
|
|
381
|
+
[
|
|
382
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
383
|
+
{
|
|
384
|
+
cases: {
|
|
385
|
+
"$1==$S5": { token: "sigil.delimiter", next: "@pop" },
|
|
386
|
+
"@default": "sigil"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
{ include: "@sigilContent" }
|
|
391
|
+
],
|
|
392
|
+
attributes: [
|
|
393
|
+
[
|
|
394
|
+
/\@(module|type)?doc (~[sS])?"""/,
|
|
395
|
+
{
|
|
396
|
+
token: "comment.block.documentation",
|
|
397
|
+
next: "@doubleQuotedHeredocDocstring"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
[
|
|
401
|
+
/\@(module|type)?doc (~[sS])?'''/,
|
|
402
|
+
{
|
|
403
|
+
token: "comment.block.documentation",
|
|
404
|
+
next: "@singleQuotedHeredocDocstring"
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
[
|
|
408
|
+
/\@(module|type)?doc (~[sS])?"/,
|
|
409
|
+
{
|
|
410
|
+
token: "comment.block.documentation",
|
|
411
|
+
next: "@doubleQuotedStringDocstring"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
[
|
|
415
|
+
/\@(module|type)?doc (~[sS])?'/,
|
|
416
|
+
{
|
|
417
|
+
token: "comment.block.documentation",
|
|
418
|
+
next: "@singleQuotedStringDocstring"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
[/\@(module|type)?doc false/, "comment.block.documentation"],
|
|
422
|
+
[/\@(@variableName)/, "variable"]
|
|
423
|
+
],
|
|
424
|
+
doubleQuotedHeredocDocstring: [
|
|
425
|
+
[/"""/, { token: "comment.block.documentation", next: "@pop" }],
|
|
426
|
+
{ include: "@docstringContent" }
|
|
427
|
+
],
|
|
428
|
+
singleQuotedHeredocDocstring: [
|
|
429
|
+
[/'''/, { token: "comment.block.documentation", next: "@pop" }],
|
|
430
|
+
{ include: "@docstringContent" }
|
|
431
|
+
],
|
|
432
|
+
doubleQuotedStringDocstring: [
|
|
433
|
+
[/"/, { token: "comment.block.documentation", next: "@pop" }],
|
|
434
|
+
{ include: "@docstringContent" }
|
|
435
|
+
],
|
|
436
|
+
singleQuotedStringDocstring: [
|
|
437
|
+
[/'/, { token: "comment.block.documentation", next: "@pop" }],
|
|
438
|
+
{ include: "@docstringContent" }
|
|
439
|
+
],
|
|
440
|
+
symbols: [
|
|
441
|
+
[/\?(\\.|[^\\\s])/, "number.constant"],
|
|
442
|
+
[/&\d+/, "operator"],
|
|
443
|
+
[/<<<|>>>/, "operator"],
|
|
444
|
+
[/[()\[\]\{\}]|<<|>>/, "@brackets"],
|
|
445
|
+
[/\.\.\./, "identifier"],
|
|
446
|
+
[/=>/, "punctuation"],
|
|
447
|
+
[/@operator/, "operator"],
|
|
448
|
+
[/[:;,.%]/, "punctuation"]
|
|
449
|
+
],
|
|
450
|
+
stringContentInterpol: [
|
|
451
|
+
{ include: "@interpolation" },
|
|
452
|
+
{ include: "@escapeChar" },
|
|
453
|
+
{ include: "@stringContent" }
|
|
454
|
+
],
|
|
455
|
+
stringContent: [[/./, "string"]],
|
|
456
|
+
stringConstantContentInterpol: [
|
|
457
|
+
{ include: "@interpolation" },
|
|
458
|
+
{ include: "@escapeChar" },
|
|
459
|
+
{ include: "@stringConstantContent" }
|
|
460
|
+
],
|
|
461
|
+
stringConstantContent: [[/./, "constant"]],
|
|
462
|
+
regexpContentInterpol: [
|
|
463
|
+
{ include: "@interpolation" },
|
|
464
|
+
{ include: "@escapeChar" },
|
|
465
|
+
{ include: "@regexpContent" }
|
|
466
|
+
],
|
|
467
|
+
regexpContent: [
|
|
468
|
+
[/(\s)(#)(\s.*)$/, ["white", "comment.punctuation", "comment"]],
|
|
469
|
+
[/./, "regexp"]
|
|
470
|
+
],
|
|
471
|
+
sigilContentInterpol: [
|
|
472
|
+
{ include: "@interpolation" },
|
|
473
|
+
{ include: "@escapeChar" },
|
|
474
|
+
{ include: "@sigilContent" }
|
|
475
|
+
],
|
|
476
|
+
sigilContent: [[/./, "sigil"]],
|
|
477
|
+
docstringContent: [[/./, "comment.block.documentation"]],
|
|
478
|
+
escapeChar: [[/@escape/, "constant.character.escape"]],
|
|
479
|
+
interpolation: [[/#{/, { token: "delimiter.bracket.embed", next: "@interpolationContinue" }]],
|
|
480
|
+
interpolationContinue: [
|
|
481
|
+
[/}/, { token: "delimiter.bracket.embed", next: "@pop" }],
|
|
482
|
+
{ include: "@root" }
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
export {
|
|
487
|
+
e as conf,
|
|
488
|
+
t as language
|
|
489
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
lineComment: "//"
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}", notIn: ["string"] },
|
|
19
|
+
{ open: "[", close: "]", notIn: ["string"] },
|
|
20
|
+
{ open: "(", close: ")", notIn: ["string"] },
|
|
21
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
22
|
+
{ open: "'", close: "'", notIn: ["string"] }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" },
|
|
30
|
+
{ open: "<", close: ">" }
|
|
31
|
+
]
|
|
32
|
+
}, o = {
|
|
33
|
+
defaultToken: "",
|
|
34
|
+
tokenPostfix: ".flow",
|
|
35
|
+
keywords: [
|
|
36
|
+
"import",
|
|
37
|
+
"require",
|
|
38
|
+
"export",
|
|
39
|
+
"forbid",
|
|
40
|
+
"native",
|
|
41
|
+
"if",
|
|
42
|
+
"else",
|
|
43
|
+
"cast",
|
|
44
|
+
"unsafe",
|
|
45
|
+
"switch",
|
|
46
|
+
"default"
|
|
47
|
+
],
|
|
48
|
+
types: [
|
|
49
|
+
"io",
|
|
50
|
+
"mutable",
|
|
51
|
+
"bool",
|
|
52
|
+
"int",
|
|
53
|
+
"double",
|
|
54
|
+
"string",
|
|
55
|
+
"flow",
|
|
56
|
+
"void",
|
|
57
|
+
"ref",
|
|
58
|
+
"true",
|
|
59
|
+
"false",
|
|
60
|
+
"with"
|
|
61
|
+
],
|
|
62
|
+
operators: [
|
|
63
|
+
"=",
|
|
64
|
+
">",
|
|
65
|
+
"<",
|
|
66
|
+
"<=",
|
|
67
|
+
">=",
|
|
68
|
+
"==",
|
|
69
|
+
"!",
|
|
70
|
+
"!=",
|
|
71
|
+
":=",
|
|
72
|
+
"::=",
|
|
73
|
+
"&&",
|
|
74
|
+
"||",
|
|
75
|
+
"+",
|
|
76
|
+
"-",
|
|
77
|
+
"*",
|
|
78
|
+
"/",
|
|
79
|
+
"@",
|
|
80
|
+
"&",
|
|
81
|
+
"%",
|
|
82
|
+
":",
|
|
83
|
+
"->",
|
|
84
|
+
"\\",
|
|
85
|
+
"$",
|
|
86
|
+
"??",
|
|
87
|
+
"^"
|
|
88
|
+
],
|
|
89
|
+
symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
|
|
90
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
91
|
+
tokenizer: {
|
|
92
|
+
root: [
|
|
93
|
+
[
|
|
94
|
+
/[a-zA-Z_]\w*/,
|
|
95
|
+
{
|
|
96
|
+
cases: {
|
|
97
|
+
"@keywords": "keyword",
|
|
98
|
+
"@types": "type",
|
|
99
|
+
"@default": "identifier"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
{ include: "@whitespace" },
|
|
104
|
+
[/[{}()\[\]]/, "delimiter"],
|
|
105
|
+
[/[<>](?!@symbols)/, "delimiter"],
|
|
106
|
+
[
|
|
107
|
+
/@symbols/,
|
|
108
|
+
{
|
|
109
|
+
cases: {
|
|
110
|
+
"@operators": "delimiter",
|
|
111
|
+
"@default": ""
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
|
|
116
|
+
[/[;,.]/, "delimiter"],
|
|
117
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
118
|
+
[/"/, "string", "@string"]
|
|
119
|
+
],
|
|
120
|
+
whitespace: [
|
|
121
|
+
[/[ \t\r\n]+/, ""],
|
|
122
|
+
[/\/\*/, "comment", "@comment"],
|
|
123
|
+
[/\/\/.*$/, "comment"]
|
|
124
|
+
],
|
|
125
|
+
comment: [
|
|
126
|
+
[/[^\/*]+/, "comment"],
|
|
127
|
+
[/\*\//, "comment", "@pop"],
|
|
128
|
+
[/[\/*]/, "comment"]
|
|
129
|
+
],
|
|
130
|
+
string: [
|
|
131
|
+
[/[^\\"]+/, "string"],
|
|
132
|
+
[/@escapes/, "string.escape"],
|
|
133
|
+
[/\\./, "string.escape.invalid"],
|
|
134
|
+
[/"/, "string", "@pop"]
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
e as conf,
|
|
140
|
+
o as language
|
|
141
|
+
};
|