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
package/dist/sophia-76Sb6CWe.js
DELETED
@@ -1,205 +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: '"', notIn: ["string", "comment"] },
|
20
|
-
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
21
|
-
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
22
|
-
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
23
|
-
]
|
24
|
-
}, t = {
|
25
|
-
defaultToken: "",
|
26
|
-
tokenPostfix: ".aes",
|
27
|
-
brackets: [
|
28
|
-
{ token: "delimiter.curly", open: "{", close: "}" },
|
29
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
30
|
-
{ token: "delimiter.square", open: "[", close: "]" },
|
31
|
-
{ token: "delimiter.angle", open: "<", close: ">" }
|
32
|
-
],
|
33
|
-
keywords: [
|
34
|
-
// Main keywords
|
35
|
-
"contract",
|
36
|
-
"library",
|
37
|
-
"entrypoint",
|
38
|
-
"function",
|
39
|
-
"stateful",
|
40
|
-
"state",
|
41
|
-
"hash",
|
42
|
-
"signature",
|
43
|
-
"tuple",
|
44
|
-
"list",
|
45
|
-
"address",
|
46
|
-
"string",
|
47
|
-
"bool",
|
48
|
-
"int",
|
49
|
-
"record",
|
50
|
-
"datatype",
|
51
|
-
"type",
|
52
|
-
"option",
|
53
|
-
"oracle",
|
54
|
-
"oracle_query",
|
55
|
-
"Call",
|
56
|
-
"Bits",
|
57
|
-
"Bytes",
|
58
|
-
"Oracle",
|
59
|
-
"String",
|
60
|
-
"Crypto",
|
61
|
-
"Address",
|
62
|
-
"Auth",
|
63
|
-
"Chain",
|
64
|
-
"None",
|
65
|
-
"Some",
|
66
|
-
"bits",
|
67
|
-
"bytes",
|
68
|
-
"event",
|
69
|
-
"let",
|
70
|
-
"map",
|
71
|
-
"private",
|
72
|
-
"public",
|
73
|
-
"true",
|
74
|
-
"false",
|
75
|
-
"var",
|
76
|
-
"if",
|
77
|
-
"else",
|
78
|
-
"throw"
|
79
|
-
],
|
80
|
-
operators: [
|
81
|
-
"=",
|
82
|
-
">",
|
83
|
-
"<",
|
84
|
-
"!",
|
85
|
-
"~",
|
86
|
-
"?",
|
87
|
-
"::",
|
88
|
-
":",
|
89
|
-
"==",
|
90
|
-
"<=",
|
91
|
-
">=",
|
92
|
-
"!=",
|
93
|
-
"&&",
|
94
|
-
"||",
|
95
|
-
"++",
|
96
|
-
"--",
|
97
|
-
"+",
|
98
|
-
"-",
|
99
|
-
"*",
|
100
|
-
"/",
|
101
|
-
"&",
|
102
|
-
"|",
|
103
|
-
"^",
|
104
|
-
"%",
|
105
|
-
"<<",
|
106
|
-
">>",
|
107
|
-
">>>",
|
108
|
-
"+=",
|
109
|
-
"-=",
|
110
|
-
"*=",
|
111
|
-
"/=",
|
112
|
-
"&=",
|
113
|
-
"|=",
|
114
|
-
"^=",
|
115
|
-
"%=",
|
116
|
-
"<<=",
|
117
|
-
">>=",
|
118
|
-
">>>="
|
119
|
-
],
|
120
|
-
// we include these common regular expressions
|
121
|
-
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
122
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
123
|
-
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
124
|
-
floatsuffix: /[fFlL]?/,
|
125
|
-
// The main tokenizer for our languages
|
126
|
-
tokenizer: {
|
127
|
-
root: [
|
128
|
-
// identifiers and keywords
|
129
|
-
[
|
130
|
-
/[a-zA-Z_]\w*/,
|
131
|
-
{
|
132
|
-
cases: {
|
133
|
-
"@keywords": { token: "keyword.$0" },
|
134
|
-
"@default": "identifier"
|
135
|
-
}
|
136
|
-
}
|
137
|
-
],
|
138
|
-
// whitespace
|
139
|
-
{ include: "@whitespace" },
|
140
|
-
// [[ attributes ]].
|
141
|
-
[/\[\[.*\]\]/, "annotation"],
|
142
|
-
// Preprocessor directive
|
143
|
-
[/^\s*#\w+/, "keyword"],
|
144
|
-
//DataTypes
|
145
|
-
[/int\d*/, "keyword"],
|
146
|
-
// delimiters and operators
|
147
|
-
[/[{}()\[\]]/, "@brackets"],
|
148
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
149
|
-
[
|
150
|
-
/@symbols/,
|
151
|
-
{
|
152
|
-
cases: {
|
153
|
-
"@operators": "delimiter",
|
154
|
-
"@default": ""
|
155
|
-
}
|
156
|
-
}
|
157
|
-
],
|
158
|
-
// numbers
|
159
|
-
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
160
|
-
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
161
|
-
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
162
|
-
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
163
|
-
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
164
|
-
[/\d[\d']*\d(@integersuffix)/, "number"],
|
165
|
-
[/\d(@integersuffix)/, "number"],
|
166
|
-
// delimiter: after number because of .\d floats
|
167
|
-
[/[;,.]/, "delimiter"],
|
168
|
-
// strings
|
169
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
170
|
-
// non-teminated string
|
171
|
-
[/"/, "string", "@string"],
|
172
|
-
// characters
|
173
|
-
[/'[^\\']'/, "string"],
|
174
|
-
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
175
|
-
[/'/, "string.invalid"]
|
176
|
-
],
|
177
|
-
whitespace: [
|
178
|
-
[/[ \t\r\n]+/, ""],
|
179
|
-
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
180
|
-
[/\/\*/, "comment", "@comment"],
|
181
|
-
[/\/\/.*$/, "comment"]
|
182
|
-
],
|
183
|
-
comment: [
|
184
|
-
[/[^\/*]+/, "comment"],
|
185
|
-
[/\*\//, "comment", "@pop"],
|
186
|
-
[/[\/*]/, "comment"]
|
187
|
-
],
|
188
|
-
//Identical copy of comment above, except for the addition of .doc
|
189
|
-
doccomment: [
|
190
|
-
[/[^\/*]+/, "comment.doc"],
|
191
|
-
[/\*\//, "comment.doc", "@pop"],
|
192
|
-
[/[\/*]/, "comment.doc"]
|
193
|
-
],
|
194
|
-
string: [
|
195
|
-
[/[^\\"]+/, "string"],
|
196
|
-
[/@escapes/, "string.escape"],
|
197
|
-
[/\\./, "string.escape.invalid"],
|
198
|
-
[/"/, "string", "@pop"]
|
199
|
-
]
|
200
|
-
}
|
201
|
-
};
|
202
|
-
export {
|
203
|
-
e as conf,
|
204
|
-
t as language
|
205
|
-
};
|
package/dist/sparql-BmZTkOWT.js
DELETED
@@ -1,207 +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
|
-
},
|
11
|
-
brackets: [
|
12
|
-
["{", "}"],
|
13
|
-
["[", "]"],
|
14
|
-
["(", ")"]
|
15
|
-
],
|
16
|
-
autoClosingPairs: [
|
17
|
-
{ open: "'", close: "'", notIn: ["string"] },
|
18
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
19
|
-
{ open: "{", close: "}" },
|
20
|
-
{ open: "[", close: "]" },
|
21
|
-
{ open: "(", close: ")" }
|
22
|
-
]
|
23
|
-
}, s = {
|
24
|
-
defaultToken: "",
|
25
|
-
tokenPostfix: ".rq",
|
26
|
-
brackets: [
|
27
|
-
{ token: "delimiter.curly", open: "{", close: "}" },
|
28
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
29
|
-
{ token: "delimiter.square", open: "[", close: "]" },
|
30
|
-
{ token: "delimiter.angle", open: "<", close: ">" }
|
31
|
-
],
|
32
|
-
keywords: [
|
33
|
-
"add",
|
34
|
-
"as",
|
35
|
-
"asc",
|
36
|
-
"ask",
|
37
|
-
"base",
|
38
|
-
"by",
|
39
|
-
"clear",
|
40
|
-
"construct",
|
41
|
-
"copy",
|
42
|
-
"create",
|
43
|
-
"data",
|
44
|
-
"delete",
|
45
|
-
"desc",
|
46
|
-
"describe",
|
47
|
-
"distinct",
|
48
|
-
"drop",
|
49
|
-
"false",
|
50
|
-
"filter",
|
51
|
-
"from",
|
52
|
-
"graph",
|
53
|
-
"group",
|
54
|
-
"having",
|
55
|
-
"in",
|
56
|
-
"insert",
|
57
|
-
"limit",
|
58
|
-
"load",
|
59
|
-
"minus",
|
60
|
-
"move",
|
61
|
-
"named",
|
62
|
-
"not",
|
63
|
-
"offset",
|
64
|
-
"optional",
|
65
|
-
"order",
|
66
|
-
"prefix",
|
67
|
-
"reduced",
|
68
|
-
"select",
|
69
|
-
"service",
|
70
|
-
"silent",
|
71
|
-
"to",
|
72
|
-
"true",
|
73
|
-
"undef",
|
74
|
-
"union",
|
75
|
-
"using",
|
76
|
-
"values",
|
77
|
-
"where",
|
78
|
-
"with"
|
79
|
-
],
|
80
|
-
builtinFunctions: [
|
81
|
-
"a",
|
82
|
-
"abs",
|
83
|
-
"avg",
|
84
|
-
"bind",
|
85
|
-
"bnode",
|
86
|
-
"bound",
|
87
|
-
"ceil",
|
88
|
-
"coalesce",
|
89
|
-
"concat",
|
90
|
-
"contains",
|
91
|
-
"count",
|
92
|
-
"datatype",
|
93
|
-
"day",
|
94
|
-
"encode_for_uri",
|
95
|
-
"exists",
|
96
|
-
"floor",
|
97
|
-
"group_concat",
|
98
|
-
"hours",
|
99
|
-
"if",
|
100
|
-
"iri",
|
101
|
-
"isblank",
|
102
|
-
"isiri",
|
103
|
-
"isliteral",
|
104
|
-
"isnumeric",
|
105
|
-
"isuri",
|
106
|
-
"lang",
|
107
|
-
"langmatches",
|
108
|
-
"lcase",
|
109
|
-
"max",
|
110
|
-
"md5",
|
111
|
-
"min",
|
112
|
-
"minutes",
|
113
|
-
"month",
|
114
|
-
"now",
|
115
|
-
"rand",
|
116
|
-
"regex",
|
117
|
-
"replace",
|
118
|
-
"round",
|
119
|
-
"sameterm",
|
120
|
-
"sample",
|
121
|
-
"seconds",
|
122
|
-
"sha1",
|
123
|
-
"sha256",
|
124
|
-
"sha384",
|
125
|
-
"sha512",
|
126
|
-
"str",
|
127
|
-
"strafter",
|
128
|
-
"strbefore",
|
129
|
-
"strdt",
|
130
|
-
"strends",
|
131
|
-
"strlang",
|
132
|
-
"strlen",
|
133
|
-
"strstarts",
|
134
|
-
"struuid",
|
135
|
-
"substr",
|
136
|
-
"sum",
|
137
|
-
"timezone",
|
138
|
-
"tz",
|
139
|
-
"ucase",
|
140
|
-
"uri",
|
141
|
-
"uuid",
|
142
|
-
"year"
|
143
|
-
],
|
144
|
-
// describe tokens
|
145
|
-
ignoreCase: !0,
|
146
|
-
tokenizer: {
|
147
|
-
root: [
|
148
|
-
// resource indicators
|
149
|
-
[/<[^\s\u00a0>]*>?/, "tag"],
|
150
|
-
// strings
|
151
|
-
{ include: "@strings" },
|
152
|
-
// line comment
|
153
|
-
[/#.*/, "comment"],
|
154
|
-
// special chars with special meaning
|
155
|
-
[/[{}()\[\]]/, "@brackets"],
|
156
|
-
[/[;,.]/, "delimiter"],
|
157
|
-
// (prefixed) name
|
158
|
-
[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/, "tag"],
|
159
|
-
[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, "tag"],
|
160
|
-
// identifiers, builtinFunctions and keywords
|
161
|
-
[
|
162
|
-
/[$?]?[_\w\d]+/,
|
163
|
-
{
|
164
|
-
cases: {
|
165
|
-
"@keywords": { token: "keyword" },
|
166
|
-
"@builtinFunctions": { token: "predefined.sql" },
|
167
|
-
"@default": "identifier"
|
168
|
-
}
|
169
|
-
}
|
170
|
-
],
|
171
|
-
// operators
|
172
|
-
[/\^\^/, "operator.sql"],
|
173
|
-
[/\^[*+\-<>=&|^\/!?]*/, "operator.sql"],
|
174
|
-
[/[*+\-<>=&|\/!?]/, "operator.sql"],
|
175
|
-
// symbol
|
176
|
-
[/@[a-z\d\-]*/, "metatag.html"],
|
177
|
-
// whitespaces
|
178
|
-
[/\s+/, "white"]
|
179
|
-
],
|
180
|
-
strings: [
|
181
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
182
|
-
// non-terminated single-quoted string
|
183
|
-
[/'$/, "string.sql", "@pop"],
|
184
|
-
[/'/, "string.sql", "@stringBody"],
|
185
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
186
|
-
// non-terminated single-quoted string
|
187
|
-
[/"$/, "string.sql", "@pop"],
|
188
|
-
[/"/, "string.sql", "@dblStringBody"]
|
189
|
-
],
|
190
|
-
// single-quoted strings
|
191
|
-
stringBody: [
|
192
|
-
[/[^\\']+/, "string.sql"],
|
193
|
-
[/\\./, "string.escape"],
|
194
|
-
[/'/, "string.sql", "@pop"]
|
195
|
-
],
|
196
|
-
// double-quoted strings
|
197
|
-
dblStringBody: [
|
198
|
-
[/[^\\"]+/, "string.sql"],
|
199
|
-
[/\\./, "string.escape"],
|
200
|
-
[/"/, "string.sql", "@pop"]
|
201
|
-
]
|
202
|
-
}
|
203
|
-
};
|
204
|
-
export {
|
205
|
-
e as conf,
|
206
|
-
s as language
|
207
|
-
};
|