@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,74 @@
|
|
|
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
|
+
}, t = {
|
|
12
|
+
defaultToken: "keyword",
|
|
13
|
+
ignoreCase: !0,
|
|
14
|
+
tokenPostfix: ".azcli",
|
|
15
|
+
str: /[^#\s]/,
|
|
16
|
+
tokenizer: {
|
|
17
|
+
root: [
|
|
18
|
+
{ include: "@comment" },
|
|
19
|
+
[
|
|
20
|
+
/\s-+@str*\s*/,
|
|
21
|
+
{
|
|
22
|
+
cases: {
|
|
23
|
+
"@eos": { token: "key.identifier", next: "@popall" },
|
|
24
|
+
"@default": { token: "key.identifier", next: "@type" }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
/^-+@str*\s*/,
|
|
30
|
+
{
|
|
31
|
+
cases: {
|
|
32
|
+
"@eos": { token: "key.identifier", next: "@popall" },
|
|
33
|
+
"@default": { token: "key.identifier", next: "@type" }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
],
|
|
38
|
+
type: [
|
|
39
|
+
{ include: "@comment" },
|
|
40
|
+
[
|
|
41
|
+
/-+@str*\s*/,
|
|
42
|
+
{
|
|
43
|
+
cases: {
|
|
44
|
+
"@eos": { token: "key.identifier", next: "@popall" },
|
|
45
|
+
"@default": "key.identifier"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
/@str+\s*/,
|
|
51
|
+
{
|
|
52
|
+
cases: {
|
|
53
|
+
"@eos": { token: "string", next: "@popall" },
|
|
54
|
+
"@default": "string"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
],
|
|
59
|
+
comment: [
|
|
60
|
+
[
|
|
61
|
+
/#.*$/,
|
|
62
|
+
{
|
|
63
|
+
cases: {
|
|
64
|
+
"@eos": { token: "comment", next: "@popall" }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
e as conf,
|
|
73
|
+
t as language
|
|
74
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
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: "REM"
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: '"', close: '"' }
|
|
21
|
+
],
|
|
22
|
+
surroundingPairs: [
|
|
23
|
+
{ open: "[", close: "]" },
|
|
24
|
+
{ open: "(", close: ")" },
|
|
25
|
+
{ open: '"', close: '"' }
|
|
26
|
+
],
|
|
27
|
+
folding: {
|
|
28
|
+
markers: {
|
|
29
|
+
start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"),
|
|
30
|
+
end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, s = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
ignoreCase: !0,
|
|
36
|
+
tokenPostfix: ".bat",
|
|
37
|
+
brackets: [
|
|
38
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
39
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
40
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
|
41
|
+
],
|
|
42
|
+
keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,
|
|
43
|
+
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
|
44
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
45
|
+
tokenizer: {
|
|
46
|
+
root: [
|
|
47
|
+
[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]],
|
|
48
|
+
[/(\@?)(@keywords)(?!\w)/, [{ token: "keyword" }, { token: "keyword.$2" }]],
|
|
49
|
+
[/[ \t\r\n]+/, ""],
|
|
50
|
+
[/setlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
51
|
+
[/endlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
52
|
+
[/[a-zA-Z_]\w*/, ""],
|
|
53
|
+
[/:\w*/, "metatag"],
|
|
54
|
+
[/%[^%]+%/, "variable"],
|
|
55
|
+
[/%%[\w]+(?!\w)/, "variable"],
|
|
56
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
57
|
+
[/@symbols/, "delimiter"],
|
|
58
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
59
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
60
|
+
[/\d+/, "number"],
|
|
61
|
+
[/[;,.]/, "delimiter"],
|
|
62
|
+
[/"/, "string", '@string."'],
|
|
63
|
+
[/'/, "string", "@string.'"]
|
|
64
|
+
],
|
|
65
|
+
string: [
|
|
66
|
+
[
|
|
67
|
+
/[^\\"'%]+/,
|
|
68
|
+
{
|
|
69
|
+
cases: {
|
|
70
|
+
"@eos": { token: "string", next: "@popall" },
|
|
71
|
+
"@default": "string"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
[/@escapes/, "string.escape"],
|
|
76
|
+
[/\\./, "string.escape.invalid"],
|
|
77
|
+
[/%[\w ]+%/, "variable"],
|
|
78
|
+
[/%%[\w]+(?!\w)/, "variable"],
|
|
79
|
+
[
|
|
80
|
+
/["']/,
|
|
81
|
+
{
|
|
82
|
+
cases: {
|
|
83
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
84
|
+
"@default": "string"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
[/$/, "string", "@popall"]
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
e as conf,
|
|
94
|
+
s as language
|
|
95
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
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 n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o}*`), i = [
|
|
8
|
+
"targetScope",
|
|
9
|
+
"resource",
|
|
10
|
+
"module",
|
|
11
|
+
"param",
|
|
12
|
+
"var",
|
|
13
|
+
"output",
|
|
14
|
+
"for",
|
|
15
|
+
"in",
|
|
16
|
+
"if",
|
|
17
|
+
"existing"
|
|
18
|
+
], a = ["true", "false", "null"], s = "[ \\t\\r\\n]", c = "[0-9]+", g = {
|
|
19
|
+
comments: {
|
|
20
|
+
lineComment: "//",
|
|
21
|
+
blockComment: ["/*", "*/"]
|
|
22
|
+
},
|
|
23
|
+
brackets: [
|
|
24
|
+
["{", "}"],
|
|
25
|
+
["[", "]"],
|
|
26
|
+
["(", ")"]
|
|
27
|
+
],
|
|
28
|
+
surroundingPairs: [
|
|
29
|
+
{ open: "{", close: "}" },
|
|
30
|
+
{ open: "[", close: "]" },
|
|
31
|
+
{ open: "(", close: ")" },
|
|
32
|
+
{ open: "'", close: "'" },
|
|
33
|
+
{ open: "'''", close: "'''" }
|
|
34
|
+
],
|
|
35
|
+
autoClosingPairs: [
|
|
36
|
+
{ open: "{", close: "}" },
|
|
37
|
+
{ open: "[", close: "]" },
|
|
38
|
+
{ open: "(", close: ")" },
|
|
39
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
40
|
+
{ open: "'''", close: "'''", notIn: ["string", "comment"] }
|
|
41
|
+
],
|
|
42
|
+
autoCloseBefore: `:.,=}])'
|
|
43
|
+
`,
|
|
44
|
+
indentationRules: {
|
|
45
|
+
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
46
|
+
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
47
|
+
}
|
|
48
|
+
}, l = {
|
|
49
|
+
defaultToken: "",
|
|
50
|
+
tokenPostfix: ".bicep",
|
|
51
|
+
brackets: [
|
|
52
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
53
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
54
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
55
|
+
],
|
|
56
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
57
|
+
keywords: i,
|
|
58
|
+
namedLiterals: a,
|
|
59
|
+
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
60
|
+
tokenizer: {
|
|
61
|
+
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
62
|
+
stringVerbatim: [
|
|
63
|
+
{ regex: "(|'|'')[^']", action: { token: "string" } },
|
|
64
|
+
{ regex: "'''", action: { token: "string.quote", next: "@pop" } }
|
|
65
|
+
],
|
|
66
|
+
stringLiteral: [
|
|
67
|
+
{ regex: "\\${", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
68
|
+
{ regex: "[^\\\\'$]+", action: { token: "string" } },
|
|
69
|
+
{ regex: "@escapes", action: { token: "string.escape" } },
|
|
70
|
+
{ regex: "\\\\.", action: { token: "string.escape.invalid" } },
|
|
71
|
+
{ regex: "'", action: { token: "string", next: "@pop" } }
|
|
72
|
+
],
|
|
73
|
+
bracketCounting: [
|
|
74
|
+
{ regex: "{", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
75
|
+
{ regex: "}", action: { token: "delimiter.bracket", next: "@pop" } },
|
|
76
|
+
{ include: "expression" }
|
|
77
|
+
],
|
|
78
|
+
comment: [
|
|
79
|
+
{ regex: "[^\\*]+", action: { token: "comment" } },
|
|
80
|
+
{ regex: "\\*\\/", action: { token: "comment", next: "@pop" } },
|
|
81
|
+
{ regex: "[\\/*]", action: { token: "comment" } }
|
|
82
|
+
],
|
|
83
|
+
whitespace: [
|
|
84
|
+
{ regex: s },
|
|
85
|
+
{ regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
|
|
86
|
+
{ regex: "\\/\\/.*$", action: { token: "comment" } }
|
|
87
|
+
],
|
|
88
|
+
expression: [
|
|
89
|
+
{ regex: "'''", action: { token: "string.quote", next: "@stringVerbatim" } },
|
|
90
|
+
{ regex: "'", action: { token: "string.quote", next: "@stringLiteral" } },
|
|
91
|
+
{ regex: c, action: { token: "number" } },
|
|
92
|
+
{
|
|
93
|
+
regex: r,
|
|
94
|
+
action: {
|
|
95
|
+
cases: {
|
|
96
|
+
"@keywords": { token: "keyword" },
|
|
97
|
+
"@namedLiterals": { token: "keyword" },
|
|
98
|
+
"@default": { token: "identifier" }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
g as conf,
|
|
107
|
+
l as language
|
|
108
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
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
|
+
{ open: '"', close: '"' },
|
|
25
|
+
{ open: "(*", close: "*)" }
|
|
26
|
+
],
|
|
27
|
+
surroundingPairs: [
|
|
28
|
+
{ open: "{", close: "}" },
|
|
29
|
+
{ open: "[", close: "]" },
|
|
30
|
+
{ open: "(", close: ")" },
|
|
31
|
+
{ open: "<", close: ">" },
|
|
32
|
+
{ open: "'", close: "'" },
|
|
33
|
+
{ open: '"', close: '"' },
|
|
34
|
+
{ open: "(*", close: "*)" }
|
|
35
|
+
]
|
|
36
|
+
}, o = {
|
|
37
|
+
defaultToken: "",
|
|
38
|
+
tokenPostfix: ".cameligo",
|
|
39
|
+
ignoreCase: !0,
|
|
40
|
+
brackets: [
|
|
41
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
42
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
43
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
44
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
45
|
+
],
|
|
46
|
+
keywords: [
|
|
47
|
+
"abs",
|
|
48
|
+
"assert",
|
|
49
|
+
"block",
|
|
50
|
+
"Bytes",
|
|
51
|
+
"case",
|
|
52
|
+
"Crypto",
|
|
53
|
+
"Current",
|
|
54
|
+
"else",
|
|
55
|
+
"failwith",
|
|
56
|
+
"false",
|
|
57
|
+
"for",
|
|
58
|
+
"fun",
|
|
59
|
+
"if",
|
|
60
|
+
"in",
|
|
61
|
+
"let",
|
|
62
|
+
"let%entry",
|
|
63
|
+
"let%init",
|
|
64
|
+
"List",
|
|
65
|
+
"list",
|
|
66
|
+
"Map",
|
|
67
|
+
"map",
|
|
68
|
+
"match",
|
|
69
|
+
"match%nat",
|
|
70
|
+
"mod",
|
|
71
|
+
"not",
|
|
72
|
+
"operation",
|
|
73
|
+
"Operation",
|
|
74
|
+
"of",
|
|
75
|
+
"record",
|
|
76
|
+
"Set",
|
|
77
|
+
"set",
|
|
78
|
+
"sender",
|
|
79
|
+
"skip",
|
|
80
|
+
"source",
|
|
81
|
+
"String",
|
|
82
|
+
"then",
|
|
83
|
+
"to",
|
|
84
|
+
"true",
|
|
85
|
+
"type",
|
|
86
|
+
"with"
|
|
87
|
+
],
|
|
88
|
+
typeKeywords: ["int", "unit", "string", "tz", "nat", "bool"],
|
|
89
|
+
operators: [
|
|
90
|
+
"=",
|
|
91
|
+
">",
|
|
92
|
+
"<",
|
|
93
|
+
"<=",
|
|
94
|
+
">=",
|
|
95
|
+
"<>",
|
|
96
|
+
":",
|
|
97
|
+
":=",
|
|
98
|
+
"and",
|
|
99
|
+
"mod",
|
|
100
|
+
"or",
|
|
101
|
+
"+",
|
|
102
|
+
"-",
|
|
103
|
+
"*",
|
|
104
|
+
"/",
|
|
105
|
+
"@",
|
|
106
|
+
"&",
|
|
107
|
+
"^",
|
|
108
|
+
"%",
|
|
109
|
+
"->",
|
|
110
|
+
"<-",
|
|
111
|
+
"&&",
|
|
112
|
+
"||"
|
|
113
|
+
],
|
|
114
|
+
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
|
115
|
+
tokenizer: {
|
|
116
|
+
root: [
|
|
117
|
+
[
|
|
118
|
+
/[a-zA-Z_][\w]*/,
|
|
119
|
+
{
|
|
120
|
+
cases: {
|
|
121
|
+
"@keywords": { token: "keyword.$0" },
|
|
122
|
+
"@default": "identifier"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
{ include: "@whitespace" },
|
|
127
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
128
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
129
|
+
[
|
|
130
|
+
/@symbols/,
|
|
131
|
+
{
|
|
132
|
+
cases: {
|
|
133
|
+
"@operators": "delimiter",
|
|
134
|
+
"@default": ""
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
139
|
+
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
|
140
|
+
[/\d+/, "number"],
|
|
141
|
+
[/[;,.]/, "delimiter"],
|
|
142
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
143
|
+
[/'/, "string", "@string"],
|
|
144
|
+
[/'[^\\']'/, "string"],
|
|
145
|
+
[/'/, "string.invalid"],
|
|
146
|
+
[/\#\d+/, "string"]
|
|
147
|
+
],
|
|
148
|
+
comment: [
|
|
149
|
+
[/[^\(\*]+/, "comment"],
|
|
150
|
+
[/\*\)/, "comment", "@pop"],
|
|
151
|
+
[/\(\*/, "comment"]
|
|
152
|
+
],
|
|
153
|
+
string: [
|
|
154
|
+
[/[^\\']+/, "string"],
|
|
155
|
+
[/\\./, "string.escape.invalid"],
|
|
156
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
157
|
+
],
|
|
158
|
+
whitespace: [
|
|
159
|
+
[/[ \t\r\n]+/, "white"],
|
|
160
|
+
[/\(\*/, "comment", "@comment"],
|
|
161
|
+
[/\/\/.*$/, "comment"]
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
e as conf,
|
|
167
|
+
o as language
|
|
168
|
+
};
|