form-imagining 0.0.6 → 0.0.7
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/README.md +13 -16
- package/dist/abap-5361cc9f.js +1314 -0
- package/dist/apex-f9413e6f.js +315 -0
- package/dist/assets/css.worker-c3850ceb.js +88 -0
- package/dist/assets/editor.worker-94ffd778.js +12 -0
- package/dist/assets/html.worker-88b237e1.js +460 -0
- package/dist/assets/json.worker-8dd963f3.js +43 -0
- package/dist/assets/ts.worker-184cdfdf.js +37022 -0
- package/dist/azcli-36f2cb5e.js +74 -0
- package/dist/bat-6b05202d.js +95 -0
- package/dist/bicep-788415e3.js +108 -0
- package/dist/cameligo-4e85ec93.js +168 -0
- package/dist/clojure-40fa5799.js +754 -0
- package/dist/coffee-f557f5e0.js +228 -0
- package/dist/cpp-ebbf7759.js +390 -0
- package/dist/csharp-1616f566.js +320 -0
- package/dist/csp-5f0bc3c4.js +57 -0
- package/dist/css-2b1aec9b.js +186 -0
- package/dist/cssMode-8c659100.js +1447 -0
- package/dist/cypher-b12b4ba8.js +262 -0
- package/dist/dart-e0d70030.js +270 -0
- package/dist/dockerfile-f9d4b2b0.js +132 -0
- package/dist/ecl-5b91fdec.js +454 -0
- package/dist/elixir-deffd5a6.js +489 -0
- package/dist/flow9-84cd00d7.js +141 -0
- package/dist/form-imagining.js +3 -16340
- package/dist/form-imagining.umd.cjs +1974 -101
- package/dist/freemarker2-0d5627bc.js +644 -0
- package/dist/fsharp-d296151f.js +210 -0
- package/dist/go-7e72ff3b.js +208 -0
- package/dist/graphql-a93568a1.js +141 -0
- package/dist/handlebars-f4513b36.js +392 -0
- package/dist/hcl-b3994d8f.js +177 -0
- package/dist/html-8bedbbe0.js +282 -0
- package/dist/htmlMode-659c9ca3.js +1457 -0
- package/dist/index-dfad4f82.js +122025 -0
- package/dist/ini-df84509a.js +68 -0
- package/dist/java-fba3d046.js +221 -0
- package/dist/javascript-b0034508.js +77 -0
- package/dist/jsonMode-92a1ff9b.js +1868 -0
- package/dist/julia-cefd45f6.js +496 -0
- package/dist/kotlin-b87b6942.js +245 -0
- package/dist/less-8a7f37bc.js +168 -0
- package/dist/lexon-cb95cd13.js +151 -0
- package/dist/liquid-ce28d1ae.js +239 -0
- package/dist/lua-6d5b3ea4.js +157 -0
- package/dist/m3-d0daf5d0.js +210 -0
- package/dist/markdown-48bb0c6f.js +202 -0
- package/dist/mdx-470c6c12.js +172 -0
- package/dist/mips-20dcf886.js +194 -0
- package/dist/msdax-e9759e23.js +377 -0
- package/dist/mysql-95f335b2.js +876 -0
- package/dist/objective-c-ad0cfb47.js +188 -0
- package/dist/pascal-eda19dc3.js +245 -0
- package/dist/pascaligo-b7e0c89b.js +158 -0
- package/dist/perl-bbe5d32a.js +599 -0
- package/dist/pgsql-7ebaee1c.js +847 -0
- package/dist/php-2526756d.js +471 -0
- package/dist/pla-9ebd6f68.js +131 -0
- package/dist/postiats-9ac05cf6.js +544 -0
- package/dist/powerquery-1cae399d.js +890 -0
- package/dist/powershell-093b5b87.js +233 -0
- package/dist/protobuf-37993cbc.js +422 -0
- package/dist/pug-c2a5db5f.js +393 -0
- package/dist/python-8f0249df.js +260 -0
- package/dist/qsharp-1450aac5.js +282 -0
- package/dist/r-a0642b90.js +245 -0
- package/dist/razor-e4b6515c.js +513 -0
- package/dist/redis-405cb63d.js +298 -0
- package/dist/redshift-830f82de.js +806 -0
- package/dist/restructuredtext-d81f5ef4.js +162 -0
- package/dist/ruby-d607b87e.js +444 -0
- package/dist/rust-86e74dbb.js +337 -0
- package/dist/sb-b7e5010d.js +110 -0
- package/dist/scala-a4d4a3c6.js +353 -0
- package/dist/scheme-81927e94.js +114 -0
- package/dist/scss-3f112fcd.js +244 -0
- package/dist/shell-d795bcaa.js +224 -0
- package/dist/solidity-5b556d3e.js +1351 -0
- package/dist/sophia-1da55998.js +190 -0
- package/dist/sparql-ac34318e.js +193 -0
- package/dist/sql-eef6393b.js +818 -0
- package/dist/st-758b1972.js +415 -0
- package/dist/style.css +1 -1
- package/dist/swift-63cb1847.js +315 -0
- package/dist/systemverilog-2538c608.js +556 -0
- package/dist/tcl-53e6282a.js +232 -0
- package/dist/tsMode-ddb992e8.js +815 -0
- package/dist/twig-80c3dc23.js +323 -0
- package/dist/typescript-7135e9ac.js +329 -0
- package/dist/vb-32089525.js +364 -0
- package/dist/wgsl-e681d5a0.js +420 -0
- package/dist/xml-1e98ce31.js +96 -0
- package/dist/yaml-ad99967d.js +185 -0
- package/package.json +11 -18
- package/dist/components/generate/GenerateForm.vue.d.ts +0 -2
- package/dist/components/index.d.ts +0 -9
- package/dist/components/model/baseModel.d.ts +0 -8
- package/dist/components/model/dataSourceModel.d.ts +0 -19
- package/dist/components/model/gridModel.d.ts +0 -55
- package/dist/components/model/inputModel.d.ts +0 -14
- package/dist/components/model/reportModel.d.ts +0 -43
- package/dist/components/model/scriptModel.d.ts +0 -6
- package/dist/components/model/sqlModel.d.ts +0 -7
- package/dist/components/model/tableModel.d.ts +0 -16
- package/dist/components/model/textModel.d.ts +0 -14
- package/dist/components/monaco/monacoEditorType.d.ts +0 -56
- package/dist/components/registerGlobComp.d.ts +0 -3
- package/dist/components/wonderform/HelloWord.vue.d.ts +0 -2
- package/dist/components/wonderform/config/index.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Col.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/DataSource.vue.d.ts +0 -2
- package/dist/components/wonderform/config/modules/Form.vue.d.ts +0 -2
- package/dist/components/wonderform/config/modules/Grid.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Properties.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/Table.vue.d.ts +0 -14
- package/dist/components/wonderform/config/modules/TypeScript.vue.d.ts +0 -2
- package/dist/components/wonderform/design/index.vue.d.ts +0 -6
- package/dist/components/wonderform/design/modules/FormGrid.vue.d.ts +0 -38
- package/dist/components/wonderform/design/modules/FormInput.vue.d.ts +0 -26
- package/dist/components/wonderform/design/modules/FormReport.vue.d.ts +0 -32
- package/dist/components/wonderform/design/modules/FormTable.vue.d.ts +0 -32
- package/dist/components/wonderform/dsource/index.vue.d.ts +0 -14
- package/dist/components/wonderform/dsource/modules/SqlModule.vue.d.ts +0 -40
- package/dist/components/wonderform/header/Header.vue.d.ts +0 -2
- package/dist/components/wonderform/header/modules/Code.vue.d.ts +0 -23
- package/dist/components/wonderform/header/modules/events.d.ts +0 -1
- package/dist/components/wonderform/index.vue.d.ts +0 -2
- package/dist/components/wonderform/tool/index.vue.d.ts +0 -2
- package/dist/enums/httpEnum.d.ts +0 -37
- package/dist/main.d.ts +0 -1
- package/dist/mock/dict.d.ts +0 -8
- package/dist/router/guard/index.d.ts +0 -2
- package/dist/router/guard/permissionGuard.d.ts +0 -2
- package/dist/router/index.d.ts +0 -3
- package/dist/router/routes/basicRoutes.d.ts +0 -8
- package/dist/stores/index.d.ts +0 -4
- package/dist/stores/modules/data.d.ts +0 -7177
- package/dist/stores/modules/form.d.ts +0 -2060
- package/dist/utils/form/commonUtils.d.ts +0 -8
- package/dist/utils/form/config.d.ts +0 -107
- package/dist/utils/form/generatecode.d.ts +0 -23
- package/dist/utils/form/validateUtil.d.ts +0 -13
- package/dist/utils/form/wonder1.0.1.d.ts +0 -29
- package/dist/utils/http/axios/axios.d.ts +0 -48
- package/dist/utils/http/axios/axiosModel.d.ts +0 -8
- package/dist/utils/http/axios/index.d.ts +0 -2
- package/dist/utils/utils.d.ts +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
|
+
};
|