sun-form-v3 1.0.71 → 1.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/abap-DfvySaIJ.js +1404 -0
- package/dist/apex-B__0irD3.js +332 -0
- package/dist/assets/css.worker-OK053IOu.js +84 -0
- package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
- package/dist/assets/html.worker-CL40hqKM.js +458 -0
- package/dist/assets/json.worker-6f9bhSHY.js +42 -0
- package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
- package/dist/azcli-CDMGhRmx.js +74 -0
- package/dist/bat-0Mk8aqzx.js +106 -0
- package/dist/bicep-BBi_I06Z.js +108 -0
- package/dist/cameligo-D0G_Zm6X.js +180 -0
- package/dist/clojure-o2ZKLeMp.js +767 -0
- package/dist/coffee-DOQff5VC.js +238 -0
- package/dist/cpp-CQGJnWhD.js +395 -0
- package/dist/csharp-C1jLsHl8.js +332 -0
- package/dist/csp-C_ttMQaW.js +59 -0
- package/dist/css-BC202kVV.js +193 -0
- package/dist/cssMode-BXBciaWt.js +1541 -0
- package/dist/cypher-DwtEH7Fi.js +269 -0
- package/dist/dart-D9XknsP2.js +287 -0
- package/dist/dockerfile-DgsNjqqa.js +136 -0
- package/dist/ecl-BAMCHBl6.js +462 -0
- package/dist/elixir-CegIttP8.js +575 -0
- package/dist/favicon.ico +0 -0
- package/dist/flow9-9608t7UV.js +148 -0
- package/dist/freemarker2-CmygUpuu.js +995 -0
- package/dist/fsharp-CCtt9-1_.js +223 -0
- package/dist/go-CGUIPbct.js +224 -0
- package/dist/graphql-BNRIFFIn.js +157 -0
- package/dist/handlebars-DQf1H2VV.js +425 -0
- package/dist/hcl-C__KLIXe.js +189 -0
- package/dist/html-Xh9UOPja.js +314 -0
- package/dist/htmlMode-B0QDpKvf.js +1551 -0
- package/dist/index-BkAjoBLc.js +122298 -0
- package/dist/ini-CeKYn_zA.js +77 -0
- package/dist/java-Dm24deQl.js +238 -0
- package/dist/javascript-lDZ3h7g8.js +76 -0
- package/dist/jsonMode-C5XJ2eKG.js +1957 -0
- package/dist/julia-BImNW7VE.js +517 -0
- package/dist/kotlin-BfE79GEb.js +259 -0
- package/dist/less-DglNOcaC.js +168 -0
- package/dist/lexon-BA0dRz9Q.js +163 -0
- package/dist/liquid-Cjj1frmx.js +246 -0
- package/dist/lua-DMkWzJcm.js +168 -0
- package/dist/m3-sA-5shO8.js +216 -0
- package/dist/markdown-OYRB1igA.js +235 -0
- package/dist/mdx-CzfefEJ-.js +171 -0
- package/dist/mips-rRzkJ_7G.js +204 -0
- package/dist/msdax-DoVJdUhd.js +381 -0
- package/dist/mysql-Ty44IHXo.js +884 -0
- package/dist/objective-c-VUfyhYrA.js +189 -0
- package/dist/pascal-DkASiYyw.js +257 -0
- package/dist/pascaligo-p-ELPlVO.js +170 -0
- package/dist/perl-Cjl1FxLZ.js +632 -0
- package/dist/pgsql-DjVenF7s.js +857 -0
- package/dist/php-CwvGzZOO.js +506 -0
- package/dist/pla-Br1iaBIV.js +143 -0
- package/dist/postiats-BaeP8zZY.js +913 -0
- package/dist/powerquery-CLCshuo8.js +896 -0
- package/dist/powershell-CZV50w5N.js +245 -0
- package/dist/protobuf-MV3XTewJ.js +426 -0
- package/dist/pug-DkDg4c4l.js +408 -0
- package/dist/python-DyY6ldcy.js +282 -0
- package/dist/qsharp-BAtiKA97.js +291 -0
- package/dist/r-8ocrd-h-.js +249 -0
- package/dist/razor-Bg8q70Ua.js +556 -0
- package/dist/redis-9sZiddxc.js +308 -0
- package/dist/redshift-DQfTOGC0.js +815 -0
- package/dist/restructuredtext-DXU-vkgr.js +180 -0
- package/dist/ruby-DotfqwMf.js +517 -0
- package/dist/rust-BIauJ5KN.js +349 -0
- package/dist/sb-CmWMvDEV.js +121 -0
- package/dist/scala-C81brEbk.js +376 -0
- package/dist/scheme-D0pcFz2x.js +114 -0
- package/dist/scss-BOdN2fGG.js +268 -0
- package/dist/shell-6E09eAkU.js +227 -0
- package/dist/solidity-CWStzA1K.js +1373 -0
- package/dist/sophia-76Sb6CWe.js +205 -0
- package/dist/sparql-BmZTkOWT.js +207 -0
- package/dist/sql-Cs9TBAW5.js +859 -0
- package/dist/st-B-rqE1Bu.js +422 -0
- package/dist/style.css +1 -0
- package/dist/sun-form-v3.es.js +4 -0
- package/dist/sun-form-v3.umd.js +1905 -0
- package/dist/swift-Btsj6YxQ.js +318 -0
- package/dist/systemverilog-B3RHBRa2.js +582 -0
- package/dist/tcl-Dpj776pn.js +238 -0
- package/dist/tsMode-CRd35KrT.js +886 -0
- package/dist/twig-Bb9JmBsE.js +398 -0
- package/dist/typescript-BYlzZUqk.js +349 -0
- package/dist/typespec-CDWeg3SU.js +123 -0
- package/dist/vb-DEXnYwEI.js +378 -0
- package/dist/wgsl-D602c1lx.js +445 -0
- package/dist/xml-CuwYh5uN.js +101 -0
- package/dist/yaml-CpETH-QO.js +212 -0
- package/package.json +7 -10
- package/src/App.vue +0 -9
- package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
- package/src/assets/font/demo.css +0 -539
- package/src/assets/font/demo_index.html +0 -1200
- package/src/assets/font/iconfont.css +0 -191
- package/src/assets/font/iconfont.js +0 -1
- package/src/assets/font/iconfont.json +0 -317
- 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 +0 -1
- package/src/assets/styles/element/index.scss +0 -15
- package/src/assets/styles/index.css +0 -3
- package/src/components/a.js +0 -14
- package/src/components/aDesigner/config.vue +0 -127
- package/src/components/aDesigner/design.vue +0 -20
- package/src/components/aDesigner/index.vue +0 -144
- package/src/components/aDesigner/panel.vue +0 -144
- package/src/components/aDesigner/show.vue +0 -24
- package/src/components/widgetCommonComps/commonApiConfig/index.vue +0 -194
- package/src/components/widgetCommonComps/commonCard/index.vue +0 -36
- package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +0 -219
- package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +0 -68
- package/src/components/widgetCommonComps/commonCollapseCard/index.vue +0 -10
- package/src/components/widgetCommonComps/commonContainer/index.vue +0 -95
- package/src/components/widgetCommonComps/commonJsonInput/index.vue +0 -59
- package/src/components/widgetCommonComps/commonLabelContainer/index.vue +0 -39
- package/src/components/widgetCommonComps/commonSidetree/index.vue +0 -61
- package/src/components/widgetCommonComps/commonTypeInput/index.vue +0 -75
- package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +0 -55
- package/src/components/widgetCommonComps/index copy.js +0 -17
- package/src/components/widgetCommonComps/index.js +0 -17
- package/src/components/widgetConfigComps/config-input/index.vue +0 -60
- package/src/components/widgetConfigComps/index copy.js +0 -13
- package/src/components/widgetConfigComps/index.js +0 -17
- package/src/components/widgetShowComps/index.js +0 -29
- package/src/components/widgetShowComps/widget-form/index.vue +0 -43
- package/src/components/widgetShowComps/widget-homepage/index.vue +0 -41
- package/src/components/widgetShowComps/widget-input/index.vue +0 -85
- package/src/components/widgetShowComps/widget-select/index.vue +0 -31
- package/src/designer.js +0 -342
- package/src/http.js +0 -293
- package/src/index.js +0 -24
- package/src/index2.js +0 -23
- package/src/main.js +0 -19
- package/src/remark.js +0 -708
- package/src/testBtn.vue +0 -11
- package/src/testInput.vue +0 -12
- package/src/util/jsformat.js +0 -568
- package/src/widgetConfig.js +0 -1112
@@ -0,0 +1,205 @@
|
|
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
|
+
};
|
@@ -0,0 +1,207 @@
|
|
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
|
+
};
|