sun-form-v3 1.0.65 → 1.0.66
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -5
- package/src/App.vue +9 -0
- package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
- package/src/assets/font/demo.css +539 -0
- package/src/assets/font/demo_index.html +1200 -0
- package/src/assets/font/iconfont.css +191 -0
- package/src/assets/font/iconfont.js +1 -0
- package/src/assets/font/iconfont.json +317 -0
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/font/iconfont.woff2 +0 -0
- package/src/assets/img/bg_footer.png +0 -0
- package/src/assets/img/bg_title.png +0 -0
- package/src/assets/img/file.png +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/logo2.png +0 -0
- package/src/assets/img/logo22.png +0 -0
- package/src/assets/img/logo23.png +0 -0
- package/src/assets/img/logo3.png +0 -0
- package/src/assets/img//347/237/251/345/275/242@2x.png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/styles/element/index.scss +15 -0
- package/src/assets/styles/index.css +3 -0
- package/src/components/a.js +14 -0
- package/src/components/aDesigner/config.vue +127 -0
- package/src/components/aDesigner/design.vue +21 -0
- package/src/components/aDesigner/designer.js +342 -0
- package/src/components/aDesigner/http.js +292 -0
- package/src/components/aDesigner/index.vue +144 -0
- package/src/components/aDesigner/panel.vue +144 -0
- package/src/components/aDesigner/show.vue +24 -0
- package/src/components/widgetCommonComps/commonApiConfig/index.vue +194 -0
- package/src/components/widgetCommonComps/commonCard/index.vue +36 -0
- package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +219 -0
- package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +68 -0
- package/src/components/widgetCommonComps/commonCollapseCard/index.vue +10 -0
- package/src/components/widgetCommonComps/commonContainer/index.vue +95 -0
- package/src/components/widgetCommonComps/commonJsonInput/index.vue +59 -0
- package/src/components/widgetCommonComps/commonLabelContainer/index.vue +39 -0
- package/src/components/widgetCommonComps/commonSidetree/index.vue +61 -0
- package/src/components/widgetCommonComps/commonTypeInput/index.vue +75 -0
- package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +55 -0
- package/src/components/widgetCommonComps/index copy.js +17 -0
- package/src/components/widgetCommonComps/index.js +17 -0
- package/src/components/widgetConfigComps/config-input/index.vue +60 -0
- package/src/components/widgetConfigComps/index copy.js +13 -0
- package/src/components/widgetConfigComps/index.js +17 -0
- package/src/components/widgetShowComps/index.js +29 -0
- package/src/components/widgetShowComps/widget-form/index.vue +43 -0
- package/src/components/widgetShowComps/widget-homepage/index.vue +41 -0
- package/src/components/widgetShowComps/widget-input/index.vue +85 -0
- package/src/components/widgetShowComps/widget-select/index.vue +31 -0
- package/src/designer.js +342 -0
- package/src/http.js +292 -0
- package/src/index.js +24 -0
- package/src/index2.js +23 -0
- package/src/main.js +19 -0
- package/src/remark.js +708 -0
- package/src/testBtn.vue +11 -0
- package/src/testInput.vue +12 -0
- package/src/util/jsformat.js +568 -0
- package/src/widgetConfig.js +1112 -0
- package/dist/abap-DfvySaIJ.js +0 -1404
- package/dist/apex-B__0irD3.js +0 -332
- package/dist/assets/css.worker-OK053IOu.js +0 -84
- package/dist/assets/editor.worker-D9iUZyMP.js +0 -11
- package/dist/assets/html.worker-CL40hqKM.js +0 -458
- package/dist/assets/json.worker-6f9bhSHY.js +0 -42
- package/dist/assets/ts.worker-B6g3wjaE.js +0 -37021
- package/dist/azcli-CDMGhRmx.js +0 -74
- package/dist/bat-0Mk8aqzx.js +0 -106
- package/dist/bicep-BBi_I06Z.js +0 -108
- package/dist/cameligo-D0G_Zm6X.js +0 -180
- package/dist/clojure-o2ZKLeMp.js +0 -767
- package/dist/coffee-DOQff5VC.js +0 -238
- package/dist/cpp-CQGJnWhD.js +0 -395
- package/dist/csharp-C1jLsHl8.js +0 -332
- package/dist/csp-C_ttMQaW.js +0 -59
- package/dist/css-BC202kVV.js +0 -193
- package/dist/cssMode-B2c4O0YS.js +0 -1541
- package/dist/cypher-DwtEH7Fi.js +0 -269
- package/dist/dart-D9XknsP2.js +0 -287
- package/dist/dockerfile-DgsNjqqa.js +0 -136
- package/dist/ecl-BAMCHBl6.js +0 -462
- package/dist/elixir-CegIttP8.js +0 -575
- package/dist/favicon.ico +0 -0
- package/dist/flow9-9608t7UV.js +0 -148
- package/dist/freemarker2-C0V-2C6A.js +0 -995
- package/dist/fsharp-CCtt9-1_.js +0 -223
- package/dist/go-CGUIPbct.js +0 -224
- package/dist/graphql-BNRIFFIn.js +0 -157
- package/dist/handlebars-Dq-D2gGP.js +0 -425
- package/dist/hcl-C__KLIXe.js +0 -189
- package/dist/html-CHe4dRTt.js +0 -314
- package/dist/htmlMode-DmZav6BJ.js +0 -1551
- package/dist/index2-CDdAhO0H.js +0 -124690
- package/dist/ini-CeKYn_zA.js +0 -77
- package/dist/java-Dm24deQl.js +0 -238
- package/dist/javascript-e6NjSQC6.js +0 -76
- package/dist/jsonMode-pOauncTt.js +0 -1957
- package/dist/julia-BImNW7VE.js +0 -517
- package/dist/kotlin-BfE79GEb.js +0 -259
- package/dist/less-DglNOcaC.js +0 -168
- package/dist/lexon-BA0dRz9Q.js +0 -163
- package/dist/liquid-DGCC4WOg.js +0 -246
- package/dist/lua-DMkWzJcm.js +0 -168
- package/dist/m3-sA-5shO8.js +0 -216
- package/dist/markdown-OYRB1igA.js +0 -235
- package/dist/mdx-GitjX2xy.js +0 -171
- package/dist/mips-rRzkJ_7G.js +0 -204
- package/dist/msdax-DoVJdUhd.js +0 -381
- package/dist/mysql-Ty44IHXo.js +0 -884
- package/dist/objective-c-VUfyhYrA.js +0 -189
- package/dist/pascal-DkASiYyw.js +0 -257
- package/dist/pascaligo-p-ELPlVO.js +0 -170
- package/dist/perl-Cjl1FxLZ.js +0 -632
- package/dist/pgsql-DjVenF7s.js +0 -857
- package/dist/php-CwvGzZOO.js +0 -506
- package/dist/pla-Br1iaBIV.js +0 -143
- package/dist/postiats-BaeP8zZY.js +0 -913
- package/dist/powerquery-CLCshuo8.js +0 -896
- package/dist/powershell-CZV50w5N.js +0 -245
- package/dist/protobuf-MV3XTewJ.js +0 -426
- package/dist/pug-DkDg4c4l.js +0 -408
- package/dist/python-BxUPejAm.js +0 -282
- package/dist/qsharp-BAtiKA97.js +0 -291
- package/dist/r-8ocrd-h-.js +0 -249
- package/dist/razor-B0zHeS7k.js +0 -556
- package/dist/redis-9sZiddxc.js +0 -308
- package/dist/redshift-DQfTOGC0.js +0 -815
- package/dist/restructuredtext-DXU-vkgr.js +0 -180
- package/dist/ruby-DotfqwMf.js +0 -517
- package/dist/rust-BIauJ5KN.js +0 -349
- package/dist/sb-CmWMvDEV.js +0 -121
- package/dist/scala-C81brEbk.js +0 -376
- package/dist/scheme-D0pcFz2x.js +0 -114
- package/dist/scss-BOdN2fGG.js +0 -268
- package/dist/shell-6E09eAkU.js +0 -227
- package/dist/solidity-CWStzA1K.js +0 -1373
- package/dist/sophia-76Sb6CWe.js +0 -205
- package/dist/sparql-BmZTkOWT.js +0 -207
- package/dist/sql-Cs9TBAW5.js +0 -859
- package/dist/st-B-rqE1Bu.js +0 -422
- package/dist/style.css +0 -1
- package/dist/sun-form-v3.es.js +0 -4
- package/dist/sun-form-v3.umd.js +0 -1908
- package/dist/swift-Btsj6YxQ.js +0 -318
- package/dist/systemverilog-B3RHBRa2.js +0 -582
- package/dist/tcl-Dpj776pn.js +0 -238
- package/dist/tsMode-AhR0apFR.js +0 -886
- package/dist/twig-Bb9JmBsE.js +0 -398
- package/dist/typescript-DW_IjlW5.js +0 -349
- package/dist/typespec-CDWeg3SU.js +0 -123
- package/dist/vb-DEXnYwEI.js +0 -378
- package/dist/wgsl-D602c1lx.js +0 -445
- package/dist/xml-CraN90Vi.js +0 -101
- package/dist/yaml-D6yA8dTm.js +0 -212
@@ -1,189 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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
|
-
autoClosingPairs: [
|
18
|
-
{ open: "{", close: "}" },
|
19
|
-
{ open: "[", close: "]" },
|
20
|
-
{ open: "(", close: ")" },
|
21
|
-
{ open: '"', close: '"' },
|
22
|
-
{ open: "'", close: "'" }
|
23
|
-
],
|
24
|
-
surroundingPairs: [
|
25
|
-
{ open: "{", close: "}" },
|
26
|
-
{ open: "[", close: "]" },
|
27
|
-
{ open: "(", close: ")" },
|
28
|
-
{ open: '"', close: '"' },
|
29
|
-
{ open: "'", close: "'" }
|
30
|
-
]
|
31
|
-
}, n = {
|
32
|
-
defaultToken: "",
|
33
|
-
tokenPostfix: ".objective-c",
|
34
|
-
keywords: [
|
35
|
-
"#import",
|
36
|
-
"#include",
|
37
|
-
"#define",
|
38
|
-
"#else",
|
39
|
-
"#endif",
|
40
|
-
"#if",
|
41
|
-
"#ifdef",
|
42
|
-
"#ifndef",
|
43
|
-
"#ident",
|
44
|
-
"#undef",
|
45
|
-
"@class",
|
46
|
-
"@defs",
|
47
|
-
"@dynamic",
|
48
|
-
"@encode",
|
49
|
-
"@end",
|
50
|
-
"@implementation",
|
51
|
-
"@interface",
|
52
|
-
"@package",
|
53
|
-
"@private",
|
54
|
-
"@protected",
|
55
|
-
"@property",
|
56
|
-
"@protocol",
|
57
|
-
"@public",
|
58
|
-
"@selector",
|
59
|
-
"@synthesize",
|
60
|
-
"__declspec",
|
61
|
-
"assign",
|
62
|
-
"auto",
|
63
|
-
"BOOL",
|
64
|
-
"break",
|
65
|
-
"bycopy",
|
66
|
-
"byref",
|
67
|
-
"case",
|
68
|
-
"char",
|
69
|
-
"Class",
|
70
|
-
"const",
|
71
|
-
"copy",
|
72
|
-
"continue",
|
73
|
-
"default",
|
74
|
-
"do",
|
75
|
-
"double",
|
76
|
-
"else",
|
77
|
-
"enum",
|
78
|
-
"extern",
|
79
|
-
"FALSE",
|
80
|
-
"false",
|
81
|
-
"float",
|
82
|
-
"for",
|
83
|
-
"goto",
|
84
|
-
"if",
|
85
|
-
"in",
|
86
|
-
"int",
|
87
|
-
"id",
|
88
|
-
"inout",
|
89
|
-
"IMP",
|
90
|
-
"long",
|
91
|
-
"nil",
|
92
|
-
"nonatomic",
|
93
|
-
"NULL",
|
94
|
-
"oneway",
|
95
|
-
"out",
|
96
|
-
"private",
|
97
|
-
"public",
|
98
|
-
"protected",
|
99
|
-
"readwrite",
|
100
|
-
"readonly",
|
101
|
-
"register",
|
102
|
-
"return",
|
103
|
-
"SEL",
|
104
|
-
"self",
|
105
|
-
"short",
|
106
|
-
"signed",
|
107
|
-
"sizeof",
|
108
|
-
"static",
|
109
|
-
"struct",
|
110
|
-
"super",
|
111
|
-
"switch",
|
112
|
-
"typedef",
|
113
|
-
"TRUE",
|
114
|
-
"true",
|
115
|
-
"union",
|
116
|
-
"unsigned",
|
117
|
-
"volatile",
|
118
|
-
"void",
|
119
|
-
"while"
|
120
|
-
],
|
121
|
-
decpart: /\d(_?\d)*/,
|
122
|
-
decimal: /0|@decpart/,
|
123
|
-
tokenizer: {
|
124
|
-
root: [
|
125
|
-
{ include: "@comments" },
|
126
|
-
{ include: "@whitespace" },
|
127
|
-
{ include: "@numbers" },
|
128
|
-
{ include: "@strings" },
|
129
|
-
[/[,:;]/, "delimiter"],
|
130
|
-
[/[{}\[\]()<>]/, "@brackets"],
|
131
|
-
[
|
132
|
-
/[a-zA-Z@#]\w*/,
|
133
|
-
{
|
134
|
-
cases: {
|
135
|
-
"@keywords": "keyword",
|
136
|
-
"@default": "identifier"
|
137
|
-
}
|
138
|
-
}
|
139
|
-
],
|
140
|
-
[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/, "operator"]
|
141
|
-
],
|
142
|
-
whitespace: [[/\s+/, "white"]],
|
143
|
-
comments: [
|
144
|
-
["\\/\\*", "comment", "@comment"],
|
145
|
-
["\\/\\/+.*", "comment"]
|
146
|
-
],
|
147
|
-
comment: [
|
148
|
-
["\\*\\/", "comment", "@pop"],
|
149
|
-
[".", "comment"]
|
150
|
-
],
|
151
|
-
numbers: [
|
152
|
-
[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/, "number.hex"],
|
153
|
-
[
|
154
|
-
/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,
|
155
|
-
{
|
156
|
-
cases: {
|
157
|
-
"(\\d)*": "number",
|
158
|
-
$0: "number.float"
|
159
|
-
}
|
160
|
-
}
|
161
|
-
]
|
162
|
-
],
|
163
|
-
// Recognize strings, including those broken across lines with \ (but not without)
|
164
|
-
strings: [
|
165
|
-
[/'$/, "string.escape", "@popall"],
|
166
|
-
[/'/, "string.escape", "@stringBody"],
|
167
|
-
[/"$/, "string.escape", "@popall"],
|
168
|
-
[/"/, "string.escape", "@dblStringBody"]
|
169
|
-
],
|
170
|
-
stringBody: [
|
171
|
-
[/[^\\']+$/, "string", "@popall"],
|
172
|
-
[/[^\\']+/, "string"],
|
173
|
-
[/\\./, "string"],
|
174
|
-
[/'/, "string.escape", "@popall"],
|
175
|
-
[/\\$/, "string"]
|
176
|
-
],
|
177
|
-
dblStringBody: [
|
178
|
-
[/[^\\"]+$/, "string", "@popall"],
|
179
|
-
[/[^\\"]+/, "string"],
|
180
|
-
[/\\./, "string"],
|
181
|
-
[/"/, "string.escape", "@popall"],
|
182
|
-
[/\\$/, "string"]
|
183
|
-
]
|
184
|
-
}
|
185
|
-
};
|
186
|
-
export {
|
187
|
-
e as conf,
|
188
|
-
n as language
|
189
|
-
};
|
package/dist/pascal-DkASiYyw.js
DELETED
@@ -1,257 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
4
|
-
* Released under the MIT license
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/
|
7
|
-
var e = {
|
8
|
-
// the default separators except `@$`
|
9
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
10
|
-
comments: {
|
11
|
-
lineComment: "//",
|
12
|
-
blockComment: ["{", "}"]
|
13
|
-
},
|
14
|
-
brackets: [
|
15
|
-
["{", "}"],
|
16
|
-
["[", "]"],
|
17
|
-
["(", ")"],
|
18
|
-
["<", ">"]
|
19
|
-
],
|
20
|
-
autoClosingPairs: [
|
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
|
-
],
|
34
|
-
folding: {
|
35
|
-
markers: {
|
36
|
-
start: new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),
|
37
|
-
end: new RegExp("^\\s*\\{\\$ENDREGION\\}")
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}, t = {
|
41
|
-
defaultToken: "",
|
42
|
-
tokenPostfix: ".pascal",
|
43
|
-
ignoreCase: !0,
|
44
|
-
brackets: [
|
45
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
46
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
47
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
48
|
-
{ open: "<", close: ">", token: "delimiter.angle" }
|
49
|
-
],
|
50
|
-
keywords: [
|
51
|
-
"absolute",
|
52
|
-
"abstract",
|
53
|
-
"all",
|
54
|
-
"and_then",
|
55
|
-
"array",
|
56
|
-
"as",
|
57
|
-
"asm",
|
58
|
-
"attribute",
|
59
|
-
"begin",
|
60
|
-
"bindable",
|
61
|
-
"case",
|
62
|
-
"class",
|
63
|
-
"const",
|
64
|
-
"contains",
|
65
|
-
"default",
|
66
|
-
"div",
|
67
|
-
"else",
|
68
|
-
"end",
|
69
|
-
"except",
|
70
|
-
"exports",
|
71
|
-
"external",
|
72
|
-
"far",
|
73
|
-
"file",
|
74
|
-
"finalization",
|
75
|
-
"finally",
|
76
|
-
"forward",
|
77
|
-
"generic",
|
78
|
-
"goto",
|
79
|
-
"if",
|
80
|
-
"implements",
|
81
|
-
"import",
|
82
|
-
"in",
|
83
|
-
"index",
|
84
|
-
"inherited",
|
85
|
-
"initialization",
|
86
|
-
"interrupt",
|
87
|
-
"is",
|
88
|
-
"label",
|
89
|
-
"library",
|
90
|
-
"mod",
|
91
|
-
"module",
|
92
|
-
"name",
|
93
|
-
"near",
|
94
|
-
"not",
|
95
|
-
"object",
|
96
|
-
"of",
|
97
|
-
"on",
|
98
|
-
"only",
|
99
|
-
"operator",
|
100
|
-
"or_else",
|
101
|
-
"otherwise",
|
102
|
-
"override",
|
103
|
-
"package",
|
104
|
-
"packed",
|
105
|
-
"pow",
|
106
|
-
"private",
|
107
|
-
"program",
|
108
|
-
"protected",
|
109
|
-
"public",
|
110
|
-
"published",
|
111
|
-
"interface",
|
112
|
-
"implementation",
|
113
|
-
"qualified",
|
114
|
-
"read",
|
115
|
-
"record",
|
116
|
-
"resident",
|
117
|
-
"requires",
|
118
|
-
"resourcestring",
|
119
|
-
"restricted",
|
120
|
-
"segment",
|
121
|
-
"set",
|
122
|
-
"shl",
|
123
|
-
"shr",
|
124
|
-
"specialize",
|
125
|
-
"stored",
|
126
|
-
"strict",
|
127
|
-
"then",
|
128
|
-
"threadvar",
|
129
|
-
"to",
|
130
|
-
"try",
|
131
|
-
"type",
|
132
|
-
"unit",
|
133
|
-
"uses",
|
134
|
-
"var",
|
135
|
-
"view",
|
136
|
-
"virtual",
|
137
|
-
"dynamic",
|
138
|
-
"overload",
|
139
|
-
"reintroduce",
|
140
|
-
"with",
|
141
|
-
"write",
|
142
|
-
"xor",
|
143
|
-
"true",
|
144
|
-
"false",
|
145
|
-
"procedure",
|
146
|
-
"function",
|
147
|
-
"constructor",
|
148
|
-
"destructor",
|
149
|
-
"property",
|
150
|
-
"break",
|
151
|
-
"continue",
|
152
|
-
"exit",
|
153
|
-
"abort",
|
154
|
-
"while",
|
155
|
-
"do",
|
156
|
-
"for",
|
157
|
-
"raise",
|
158
|
-
"repeat",
|
159
|
-
"until"
|
160
|
-
],
|
161
|
-
typeKeywords: [
|
162
|
-
"boolean",
|
163
|
-
"double",
|
164
|
-
"byte",
|
165
|
-
"integer",
|
166
|
-
"shortint",
|
167
|
-
"char",
|
168
|
-
"longint",
|
169
|
-
"float",
|
170
|
-
"string"
|
171
|
-
],
|
172
|
-
operators: [
|
173
|
-
"=",
|
174
|
-
">",
|
175
|
-
"<",
|
176
|
-
"<=",
|
177
|
-
">=",
|
178
|
-
"<>",
|
179
|
-
":",
|
180
|
-
":=",
|
181
|
-
"and",
|
182
|
-
"or",
|
183
|
-
"+",
|
184
|
-
"-",
|
185
|
-
"*",
|
186
|
-
"/",
|
187
|
-
"@",
|
188
|
-
"&",
|
189
|
-
"^",
|
190
|
-
"%"
|
191
|
-
],
|
192
|
-
// we include these common regular expressions
|
193
|
-
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
194
|
-
// The main tokenizer for our languages
|
195
|
-
tokenizer: {
|
196
|
-
root: [
|
197
|
-
// identifiers and keywords
|
198
|
-
[
|
199
|
-
/[a-zA-Z_][\w]*/,
|
200
|
-
{
|
201
|
-
cases: {
|
202
|
-
"@keywords": { token: "keyword.$0" },
|
203
|
-
"@default": "identifier"
|
204
|
-
}
|
205
|
-
}
|
206
|
-
],
|
207
|
-
// whitespace
|
208
|
-
{ include: "@whitespace" },
|
209
|
-
// delimiters and operators
|
210
|
-
[/[{}()\[\]]/, "@brackets"],
|
211
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
212
|
-
[
|
213
|
-
/@symbols/,
|
214
|
-
{
|
215
|
-
cases: {
|
216
|
-
"@operators": "delimiter",
|
217
|
-
"@default": ""
|
218
|
-
}
|
219
|
-
}
|
220
|
-
],
|
221
|
-
// numbers
|
222
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
223
|
-
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
224
|
-
[/\d+/, "number"],
|
225
|
-
// delimiter: after number because of .\d floats
|
226
|
-
[/[;,.]/, "delimiter"],
|
227
|
-
// strings
|
228
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
229
|
-
// non-teminated string
|
230
|
-
[/'/, "string", "@string"],
|
231
|
-
// characters
|
232
|
-
[/'[^\\']'/, "string"],
|
233
|
-
[/'/, "string.invalid"],
|
234
|
-
[/\#\d+/, "string"]
|
235
|
-
],
|
236
|
-
comment: [
|
237
|
-
[/[^\*\}]+/, "comment"],
|
238
|
-
//[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
239
|
-
[/\}/, "comment", "@pop"],
|
240
|
-
[/[\{]/, "comment"]
|
241
|
-
],
|
242
|
-
string: [
|
243
|
-
[/[^\\']+/, "string"],
|
244
|
-
[/\\./, "string.escape.invalid"],
|
245
|
-
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
246
|
-
],
|
247
|
-
whitespace: [
|
248
|
-
[/[ \t\r\n]+/, "white"],
|
249
|
-
[/\{/, "comment", "@comment"],
|
250
|
-
[/\/\/.*$/, "comment"]
|
251
|
-
]
|
252
|
-
}
|
253
|
-
};
|
254
|
-
export {
|
255
|
-
e as conf,
|
256
|
-
t as language
|
257
|
-
};
|
@@ -1,170 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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
|
-
],
|
25
|
-
surroundingPairs: [
|
26
|
-
{ open: "{", close: "}" },
|
27
|
-
{ open: "[", close: "]" },
|
28
|
-
{ open: "(", close: ")" },
|
29
|
-
{ open: "<", close: ">" },
|
30
|
-
{ open: "'", close: "'" }
|
31
|
-
]
|
32
|
-
}, o = {
|
33
|
-
defaultToken: "",
|
34
|
-
tokenPostfix: ".pascaligo",
|
35
|
-
ignoreCase: !0,
|
36
|
-
brackets: [
|
37
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
38
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
39
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
40
|
-
{ open: "<", close: ">", token: "delimiter.angle" }
|
41
|
-
],
|
42
|
-
keywords: [
|
43
|
-
"begin",
|
44
|
-
"block",
|
45
|
-
"case",
|
46
|
-
"const",
|
47
|
-
"else",
|
48
|
-
"end",
|
49
|
-
"fail",
|
50
|
-
"for",
|
51
|
-
"from",
|
52
|
-
"function",
|
53
|
-
"if",
|
54
|
-
"is",
|
55
|
-
"nil",
|
56
|
-
"of",
|
57
|
-
"remove",
|
58
|
-
"return",
|
59
|
-
"skip",
|
60
|
-
"then",
|
61
|
-
"type",
|
62
|
-
"var",
|
63
|
-
"while",
|
64
|
-
"with",
|
65
|
-
"option",
|
66
|
-
"None",
|
67
|
-
"transaction"
|
68
|
-
],
|
69
|
-
typeKeywords: [
|
70
|
-
"bool",
|
71
|
-
"int",
|
72
|
-
"list",
|
73
|
-
"map",
|
74
|
-
"nat",
|
75
|
-
"record",
|
76
|
-
"string",
|
77
|
-
"unit",
|
78
|
-
"address",
|
79
|
-
"map",
|
80
|
-
"mtz",
|
81
|
-
"xtz"
|
82
|
-
],
|
83
|
-
operators: [
|
84
|
-
"=",
|
85
|
-
">",
|
86
|
-
"<",
|
87
|
-
"<=",
|
88
|
-
">=",
|
89
|
-
"<>",
|
90
|
-
":",
|
91
|
-
":=",
|
92
|
-
"and",
|
93
|
-
"mod",
|
94
|
-
"or",
|
95
|
-
"+",
|
96
|
-
"-",
|
97
|
-
"*",
|
98
|
-
"/",
|
99
|
-
"@",
|
100
|
-
"&",
|
101
|
-
"^",
|
102
|
-
"%"
|
103
|
-
],
|
104
|
-
// we include these common regular expressions
|
105
|
-
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
106
|
-
// The main tokenizer for our languages
|
107
|
-
tokenizer: {
|
108
|
-
root: [
|
109
|
-
// identifiers and keywords
|
110
|
-
[
|
111
|
-
/[a-zA-Z_][\w]*/,
|
112
|
-
{
|
113
|
-
cases: {
|
114
|
-
"@keywords": { token: "keyword.$0" },
|
115
|
-
"@default": "identifier"
|
116
|
-
}
|
117
|
-
}
|
118
|
-
],
|
119
|
-
// whitespace
|
120
|
-
{ include: "@whitespace" },
|
121
|
-
// delimiters and operators
|
122
|
-
[/[{}()\[\]]/, "@brackets"],
|
123
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
124
|
-
[
|
125
|
-
/@symbols/,
|
126
|
-
{
|
127
|
-
cases: {
|
128
|
-
"@operators": "delimiter",
|
129
|
-
"@default": ""
|
130
|
-
}
|
131
|
-
}
|
132
|
-
],
|
133
|
-
// numbers
|
134
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
135
|
-
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
136
|
-
[/\d+/, "number"],
|
137
|
-
// delimiter: after number because of .\d floats
|
138
|
-
[/[;,.]/, "delimiter"],
|
139
|
-
// strings
|
140
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
141
|
-
// non-teminated string
|
142
|
-
[/'/, "string", "@string"],
|
143
|
-
// characters
|
144
|
-
[/'[^\\']'/, "string"],
|
145
|
-
[/'/, "string.invalid"],
|
146
|
-
[/\#\d+/, "string"]
|
147
|
-
],
|
148
|
-
/* */
|
149
|
-
comment: [
|
150
|
-
[/[^\(\*]+/, "comment"],
|
151
|
-
//[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
152
|
-
[/\*\)/, "comment", "@pop"],
|
153
|
-
[/\(\*/, "comment"]
|
154
|
-
],
|
155
|
-
string: [
|
156
|
-
[/[^\\']+/, "string"],
|
157
|
-
[/\\./, "string.escape.invalid"],
|
158
|
-
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
159
|
-
],
|
160
|
-
whitespace: [
|
161
|
-
[/[ \t\r\n]+/, "white"],
|
162
|
-
[/\(\*/, "comment", "@comment"],
|
163
|
-
[/\/\/.*$/, "comment"]
|
164
|
-
]
|
165
|
-
}
|
166
|
-
};
|
167
|
-
export {
|
168
|
-
e as conf,
|
169
|
-
o as language
|
170
|
-
};
|