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,859 @@
|
|
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
|
+
}, T = {
|
32
|
+
defaultToken: "",
|
33
|
+
tokenPostfix: ".sql",
|
34
|
+
ignoreCase: !0,
|
35
|
+
brackets: [
|
36
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
37
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
38
|
+
],
|
39
|
+
keywords: [
|
40
|
+
// This list is generated using `keywords.js`
|
41
|
+
"ABORT",
|
42
|
+
"ABSOLUTE",
|
43
|
+
"ACTION",
|
44
|
+
"ADA",
|
45
|
+
"ADD",
|
46
|
+
"AFTER",
|
47
|
+
"ALL",
|
48
|
+
"ALLOCATE",
|
49
|
+
"ALTER",
|
50
|
+
"ALWAYS",
|
51
|
+
"ANALYZE",
|
52
|
+
"AND",
|
53
|
+
"ANY",
|
54
|
+
"ARE",
|
55
|
+
"AS",
|
56
|
+
"ASC",
|
57
|
+
"ASSERTION",
|
58
|
+
"AT",
|
59
|
+
"ATTACH",
|
60
|
+
"AUTHORIZATION",
|
61
|
+
"AUTOINCREMENT",
|
62
|
+
"AVG",
|
63
|
+
"BACKUP",
|
64
|
+
"BEFORE",
|
65
|
+
"BEGIN",
|
66
|
+
"BETWEEN",
|
67
|
+
"BIT",
|
68
|
+
"BIT_LENGTH",
|
69
|
+
"BOTH",
|
70
|
+
"BREAK",
|
71
|
+
"BROWSE",
|
72
|
+
"BULK",
|
73
|
+
"BY",
|
74
|
+
"CASCADE",
|
75
|
+
"CASCADED",
|
76
|
+
"CASE",
|
77
|
+
"CAST",
|
78
|
+
"CATALOG",
|
79
|
+
"CHAR",
|
80
|
+
"CHARACTER",
|
81
|
+
"CHARACTER_LENGTH",
|
82
|
+
"CHAR_LENGTH",
|
83
|
+
"CHECK",
|
84
|
+
"CHECKPOINT",
|
85
|
+
"CLOSE",
|
86
|
+
"CLUSTERED",
|
87
|
+
"COALESCE",
|
88
|
+
"COLLATE",
|
89
|
+
"COLLATION",
|
90
|
+
"COLUMN",
|
91
|
+
"COMMIT",
|
92
|
+
"COMPUTE",
|
93
|
+
"CONFLICT",
|
94
|
+
"CONNECT",
|
95
|
+
"CONNECTION",
|
96
|
+
"CONSTRAINT",
|
97
|
+
"CONSTRAINTS",
|
98
|
+
"CONTAINS",
|
99
|
+
"CONTAINSTABLE",
|
100
|
+
"CONTINUE",
|
101
|
+
"CONVERT",
|
102
|
+
"CORRESPONDING",
|
103
|
+
"COUNT",
|
104
|
+
"CREATE",
|
105
|
+
"CROSS",
|
106
|
+
"CURRENT",
|
107
|
+
"CURRENT_DATE",
|
108
|
+
"CURRENT_TIME",
|
109
|
+
"CURRENT_TIMESTAMP",
|
110
|
+
"CURRENT_USER",
|
111
|
+
"CURSOR",
|
112
|
+
"DATABASE",
|
113
|
+
"DATE",
|
114
|
+
"DAY",
|
115
|
+
"DBCC",
|
116
|
+
"DEALLOCATE",
|
117
|
+
"DEC",
|
118
|
+
"DECIMAL",
|
119
|
+
"DECLARE",
|
120
|
+
"DEFAULT",
|
121
|
+
"DEFERRABLE",
|
122
|
+
"DEFERRED",
|
123
|
+
"DELETE",
|
124
|
+
"DENY",
|
125
|
+
"DESC",
|
126
|
+
"DESCRIBE",
|
127
|
+
"DESCRIPTOR",
|
128
|
+
"DETACH",
|
129
|
+
"DIAGNOSTICS",
|
130
|
+
"DISCONNECT",
|
131
|
+
"DISK",
|
132
|
+
"DISTINCT",
|
133
|
+
"DISTRIBUTED",
|
134
|
+
"DO",
|
135
|
+
"DOMAIN",
|
136
|
+
"DOUBLE",
|
137
|
+
"DROP",
|
138
|
+
"DUMP",
|
139
|
+
"EACH",
|
140
|
+
"ELSE",
|
141
|
+
"END",
|
142
|
+
"END-EXEC",
|
143
|
+
"ERRLVL",
|
144
|
+
"ESCAPE",
|
145
|
+
"EXCEPT",
|
146
|
+
"EXCEPTION",
|
147
|
+
"EXCLUDE",
|
148
|
+
"EXCLUSIVE",
|
149
|
+
"EXEC",
|
150
|
+
"EXECUTE",
|
151
|
+
"EXISTS",
|
152
|
+
"EXIT",
|
153
|
+
"EXPLAIN",
|
154
|
+
"EXTERNAL",
|
155
|
+
"EXTRACT",
|
156
|
+
"FAIL",
|
157
|
+
"FALSE",
|
158
|
+
"FETCH",
|
159
|
+
"FILE",
|
160
|
+
"FILLFACTOR",
|
161
|
+
"FILTER",
|
162
|
+
"FIRST",
|
163
|
+
"FLOAT",
|
164
|
+
"FOLLOWING",
|
165
|
+
"FOR",
|
166
|
+
"FOREIGN",
|
167
|
+
"FORTRAN",
|
168
|
+
"FOUND",
|
169
|
+
"FREETEXT",
|
170
|
+
"FREETEXTTABLE",
|
171
|
+
"FROM",
|
172
|
+
"FULL",
|
173
|
+
"FUNCTION",
|
174
|
+
"GENERATED",
|
175
|
+
"GET",
|
176
|
+
"GLOB",
|
177
|
+
"GLOBAL",
|
178
|
+
"GO",
|
179
|
+
"GOTO",
|
180
|
+
"GRANT",
|
181
|
+
"GROUP",
|
182
|
+
"GROUPS",
|
183
|
+
"HAVING",
|
184
|
+
"HOLDLOCK",
|
185
|
+
"HOUR",
|
186
|
+
"IDENTITY",
|
187
|
+
"IDENTITYCOL",
|
188
|
+
"IDENTITY_INSERT",
|
189
|
+
"IF",
|
190
|
+
"IGNORE",
|
191
|
+
"IMMEDIATE",
|
192
|
+
"IN",
|
193
|
+
"INCLUDE",
|
194
|
+
"INDEX",
|
195
|
+
"INDEXED",
|
196
|
+
"INDICATOR",
|
197
|
+
"INITIALLY",
|
198
|
+
"INNER",
|
199
|
+
"INPUT",
|
200
|
+
"INSENSITIVE",
|
201
|
+
"INSERT",
|
202
|
+
"INSTEAD",
|
203
|
+
"INT",
|
204
|
+
"INTEGER",
|
205
|
+
"INTERSECT",
|
206
|
+
"INTERVAL",
|
207
|
+
"INTO",
|
208
|
+
"IS",
|
209
|
+
"ISNULL",
|
210
|
+
"ISOLATION",
|
211
|
+
"JOIN",
|
212
|
+
"KEY",
|
213
|
+
"KILL",
|
214
|
+
"LANGUAGE",
|
215
|
+
"LAST",
|
216
|
+
"LEADING",
|
217
|
+
"LEFT",
|
218
|
+
"LEVEL",
|
219
|
+
"LIKE",
|
220
|
+
"LIMIT",
|
221
|
+
"LINENO",
|
222
|
+
"LOAD",
|
223
|
+
"LOCAL",
|
224
|
+
"LOWER",
|
225
|
+
"MATCH",
|
226
|
+
"MATERIALIZED",
|
227
|
+
"MAX",
|
228
|
+
"MERGE",
|
229
|
+
"MIN",
|
230
|
+
"MINUTE",
|
231
|
+
"MODULE",
|
232
|
+
"MONTH",
|
233
|
+
"NAMES",
|
234
|
+
"NATIONAL",
|
235
|
+
"NATURAL",
|
236
|
+
"NCHAR",
|
237
|
+
"NEXT",
|
238
|
+
"NO",
|
239
|
+
"NOCHECK",
|
240
|
+
"NONCLUSTERED",
|
241
|
+
"NONE",
|
242
|
+
"NOT",
|
243
|
+
"NOTHING",
|
244
|
+
"NOTNULL",
|
245
|
+
"NULL",
|
246
|
+
"NULLIF",
|
247
|
+
"NULLS",
|
248
|
+
"NUMERIC",
|
249
|
+
"OCTET_LENGTH",
|
250
|
+
"OF",
|
251
|
+
"OFF",
|
252
|
+
"OFFSET",
|
253
|
+
"OFFSETS",
|
254
|
+
"ON",
|
255
|
+
"ONLY",
|
256
|
+
"OPEN",
|
257
|
+
"OPENDATASOURCE",
|
258
|
+
"OPENQUERY",
|
259
|
+
"OPENROWSET",
|
260
|
+
"OPENXML",
|
261
|
+
"OPTION",
|
262
|
+
"OR",
|
263
|
+
"ORDER",
|
264
|
+
"OTHERS",
|
265
|
+
"OUTER",
|
266
|
+
"OUTPUT",
|
267
|
+
"OVER",
|
268
|
+
"OVERLAPS",
|
269
|
+
"PAD",
|
270
|
+
"PARTIAL",
|
271
|
+
"PARTITION",
|
272
|
+
"PASCAL",
|
273
|
+
"PERCENT",
|
274
|
+
"PIVOT",
|
275
|
+
"PLAN",
|
276
|
+
"POSITION",
|
277
|
+
"PRAGMA",
|
278
|
+
"PRECEDING",
|
279
|
+
"PRECISION",
|
280
|
+
"PREPARE",
|
281
|
+
"PRESERVE",
|
282
|
+
"PRIMARY",
|
283
|
+
"PRINT",
|
284
|
+
"PRIOR",
|
285
|
+
"PRIVILEGES",
|
286
|
+
"PROC",
|
287
|
+
"PROCEDURE",
|
288
|
+
"PUBLIC",
|
289
|
+
"QUERY",
|
290
|
+
"RAISE",
|
291
|
+
"RAISERROR",
|
292
|
+
"RANGE",
|
293
|
+
"READ",
|
294
|
+
"READTEXT",
|
295
|
+
"REAL",
|
296
|
+
"RECONFIGURE",
|
297
|
+
"RECURSIVE",
|
298
|
+
"REFERENCES",
|
299
|
+
"REGEXP",
|
300
|
+
"REINDEX",
|
301
|
+
"RELATIVE",
|
302
|
+
"RELEASE",
|
303
|
+
"RENAME",
|
304
|
+
"REPLACE",
|
305
|
+
"REPLICATION",
|
306
|
+
"RESTORE",
|
307
|
+
"RESTRICT",
|
308
|
+
"RETURN",
|
309
|
+
"RETURNING",
|
310
|
+
"REVERT",
|
311
|
+
"REVOKE",
|
312
|
+
"RIGHT",
|
313
|
+
"ROLLBACK",
|
314
|
+
"ROW",
|
315
|
+
"ROWCOUNT",
|
316
|
+
"ROWGUIDCOL",
|
317
|
+
"ROWS",
|
318
|
+
"RULE",
|
319
|
+
"SAVE",
|
320
|
+
"SAVEPOINT",
|
321
|
+
"SCHEMA",
|
322
|
+
"SCROLL",
|
323
|
+
"SECOND",
|
324
|
+
"SECTION",
|
325
|
+
"SECURITYAUDIT",
|
326
|
+
"SELECT",
|
327
|
+
"SEMANTICKEYPHRASETABLE",
|
328
|
+
"SEMANTICSIMILARITYDETAILSTABLE",
|
329
|
+
"SEMANTICSIMILARITYTABLE",
|
330
|
+
"SESSION",
|
331
|
+
"SESSION_USER",
|
332
|
+
"SET",
|
333
|
+
"SETUSER",
|
334
|
+
"SHUTDOWN",
|
335
|
+
"SIZE",
|
336
|
+
"SMALLINT",
|
337
|
+
"SOME",
|
338
|
+
"SPACE",
|
339
|
+
"SQL",
|
340
|
+
"SQLCA",
|
341
|
+
"SQLCODE",
|
342
|
+
"SQLERROR",
|
343
|
+
"SQLSTATE",
|
344
|
+
"SQLWARNING",
|
345
|
+
"STATISTICS",
|
346
|
+
"SUBSTRING",
|
347
|
+
"SUM",
|
348
|
+
"SYSTEM_USER",
|
349
|
+
"TABLE",
|
350
|
+
"TABLESAMPLE",
|
351
|
+
"TEMP",
|
352
|
+
"TEMPORARY",
|
353
|
+
"TEXTSIZE",
|
354
|
+
"THEN",
|
355
|
+
"TIES",
|
356
|
+
"TIME",
|
357
|
+
"TIMESTAMP",
|
358
|
+
"TIMEZONE_HOUR",
|
359
|
+
"TIMEZONE_MINUTE",
|
360
|
+
"TO",
|
361
|
+
"TOP",
|
362
|
+
"TRAILING",
|
363
|
+
"TRAN",
|
364
|
+
"TRANSACTION",
|
365
|
+
"TRANSLATE",
|
366
|
+
"TRANSLATION",
|
367
|
+
"TRIGGER",
|
368
|
+
"TRIM",
|
369
|
+
"TRUE",
|
370
|
+
"TRUNCATE",
|
371
|
+
"TRY_CONVERT",
|
372
|
+
"TSEQUAL",
|
373
|
+
"UNBOUNDED",
|
374
|
+
"UNION",
|
375
|
+
"UNIQUE",
|
376
|
+
"UNKNOWN",
|
377
|
+
"UNPIVOT",
|
378
|
+
"UPDATE",
|
379
|
+
"UPDATETEXT",
|
380
|
+
"UPPER",
|
381
|
+
"USAGE",
|
382
|
+
"USE",
|
383
|
+
"USER",
|
384
|
+
"USING",
|
385
|
+
"VACUUM",
|
386
|
+
"VALUE",
|
387
|
+
"VALUES",
|
388
|
+
"VARCHAR",
|
389
|
+
"VARYING",
|
390
|
+
"VIEW",
|
391
|
+
"VIRTUAL",
|
392
|
+
"WAITFOR",
|
393
|
+
"WHEN",
|
394
|
+
"WHENEVER",
|
395
|
+
"WHERE",
|
396
|
+
"WHILE",
|
397
|
+
"WINDOW",
|
398
|
+
"WITH",
|
399
|
+
"WITHIN GROUP",
|
400
|
+
"WITHOUT",
|
401
|
+
"WORK",
|
402
|
+
"WRITE",
|
403
|
+
"WRITETEXT",
|
404
|
+
"YEAR",
|
405
|
+
"ZONE"
|
406
|
+
],
|
407
|
+
operators: [
|
408
|
+
// Logical
|
409
|
+
"ALL",
|
410
|
+
"AND",
|
411
|
+
"ANY",
|
412
|
+
"BETWEEN",
|
413
|
+
"EXISTS",
|
414
|
+
"IN",
|
415
|
+
"LIKE",
|
416
|
+
"NOT",
|
417
|
+
"OR",
|
418
|
+
"SOME",
|
419
|
+
// Set
|
420
|
+
"EXCEPT",
|
421
|
+
"INTERSECT",
|
422
|
+
"UNION",
|
423
|
+
// Join
|
424
|
+
"APPLY",
|
425
|
+
"CROSS",
|
426
|
+
"FULL",
|
427
|
+
"INNER",
|
428
|
+
"JOIN",
|
429
|
+
"LEFT",
|
430
|
+
"OUTER",
|
431
|
+
"RIGHT",
|
432
|
+
// Predicates
|
433
|
+
"CONTAINS",
|
434
|
+
"FREETEXT",
|
435
|
+
"IS",
|
436
|
+
"NULL",
|
437
|
+
// Pivoting
|
438
|
+
"PIVOT",
|
439
|
+
"UNPIVOT",
|
440
|
+
// Merging
|
441
|
+
"MATCHED"
|
442
|
+
],
|
443
|
+
builtinFunctions: [
|
444
|
+
// Aggregate
|
445
|
+
"AVG",
|
446
|
+
"CHECKSUM_AGG",
|
447
|
+
"COUNT",
|
448
|
+
"COUNT_BIG",
|
449
|
+
"GROUPING",
|
450
|
+
"GROUPING_ID",
|
451
|
+
"MAX",
|
452
|
+
"MIN",
|
453
|
+
"SUM",
|
454
|
+
"STDEV",
|
455
|
+
"STDEVP",
|
456
|
+
"VAR",
|
457
|
+
"VARP",
|
458
|
+
// Analytic
|
459
|
+
"CUME_DIST",
|
460
|
+
"FIRST_VALUE",
|
461
|
+
"LAG",
|
462
|
+
"LAST_VALUE",
|
463
|
+
"LEAD",
|
464
|
+
"PERCENTILE_CONT",
|
465
|
+
"PERCENTILE_DISC",
|
466
|
+
"PERCENT_RANK",
|
467
|
+
// Collation
|
468
|
+
"COLLATE",
|
469
|
+
"COLLATIONPROPERTY",
|
470
|
+
"TERTIARY_WEIGHTS",
|
471
|
+
// Azure
|
472
|
+
"FEDERATION_FILTERING_VALUE",
|
473
|
+
// Conversion
|
474
|
+
"CAST",
|
475
|
+
"CONVERT",
|
476
|
+
"PARSE",
|
477
|
+
"TRY_CAST",
|
478
|
+
"TRY_CONVERT",
|
479
|
+
"TRY_PARSE",
|
480
|
+
// Cryptographic
|
481
|
+
"ASYMKEY_ID",
|
482
|
+
"ASYMKEYPROPERTY",
|
483
|
+
"CERTPROPERTY",
|
484
|
+
"CERT_ID",
|
485
|
+
"CRYPT_GEN_RANDOM",
|
486
|
+
"DECRYPTBYASYMKEY",
|
487
|
+
"DECRYPTBYCERT",
|
488
|
+
"DECRYPTBYKEY",
|
489
|
+
"DECRYPTBYKEYAUTOASYMKEY",
|
490
|
+
"DECRYPTBYKEYAUTOCERT",
|
491
|
+
"DECRYPTBYPASSPHRASE",
|
492
|
+
"ENCRYPTBYASYMKEY",
|
493
|
+
"ENCRYPTBYCERT",
|
494
|
+
"ENCRYPTBYKEY",
|
495
|
+
"ENCRYPTBYPASSPHRASE",
|
496
|
+
"HASHBYTES",
|
497
|
+
"IS_OBJECTSIGNED",
|
498
|
+
"KEY_GUID",
|
499
|
+
"KEY_ID",
|
500
|
+
"KEY_NAME",
|
501
|
+
"SIGNBYASYMKEY",
|
502
|
+
"SIGNBYCERT",
|
503
|
+
"SYMKEYPROPERTY",
|
504
|
+
"VERIFYSIGNEDBYCERT",
|
505
|
+
"VERIFYSIGNEDBYASYMKEY",
|
506
|
+
// Cursor
|
507
|
+
"CURSOR_STATUS",
|
508
|
+
// Datatype
|
509
|
+
"DATALENGTH",
|
510
|
+
"IDENT_CURRENT",
|
511
|
+
"IDENT_INCR",
|
512
|
+
"IDENT_SEED",
|
513
|
+
"IDENTITY",
|
514
|
+
"SQL_VARIANT_PROPERTY",
|
515
|
+
// Datetime
|
516
|
+
"CURRENT_TIMESTAMP",
|
517
|
+
"DATEADD",
|
518
|
+
"DATEDIFF",
|
519
|
+
"DATEFROMPARTS",
|
520
|
+
"DATENAME",
|
521
|
+
"DATEPART",
|
522
|
+
"DATETIME2FROMPARTS",
|
523
|
+
"DATETIMEFROMPARTS",
|
524
|
+
"DATETIMEOFFSETFROMPARTS",
|
525
|
+
"DAY",
|
526
|
+
"EOMONTH",
|
527
|
+
"GETDATE",
|
528
|
+
"GETUTCDATE",
|
529
|
+
"ISDATE",
|
530
|
+
"MONTH",
|
531
|
+
"SMALLDATETIMEFROMPARTS",
|
532
|
+
"SWITCHOFFSET",
|
533
|
+
"SYSDATETIME",
|
534
|
+
"SYSDATETIMEOFFSET",
|
535
|
+
"SYSUTCDATETIME",
|
536
|
+
"TIMEFROMPARTS",
|
537
|
+
"TODATETIMEOFFSET",
|
538
|
+
"YEAR",
|
539
|
+
// Logical
|
540
|
+
"CHOOSE",
|
541
|
+
"COALESCE",
|
542
|
+
"IIF",
|
543
|
+
"NULLIF",
|
544
|
+
// Mathematical
|
545
|
+
"ABS",
|
546
|
+
"ACOS",
|
547
|
+
"ASIN",
|
548
|
+
"ATAN",
|
549
|
+
"ATN2",
|
550
|
+
"CEILING",
|
551
|
+
"COS",
|
552
|
+
"COT",
|
553
|
+
"DEGREES",
|
554
|
+
"EXP",
|
555
|
+
"FLOOR",
|
556
|
+
"LOG",
|
557
|
+
"LOG10",
|
558
|
+
"PI",
|
559
|
+
"POWER",
|
560
|
+
"RADIANS",
|
561
|
+
"RAND",
|
562
|
+
"ROUND",
|
563
|
+
"SIGN",
|
564
|
+
"SIN",
|
565
|
+
"SQRT",
|
566
|
+
"SQUARE",
|
567
|
+
"TAN",
|
568
|
+
// Metadata
|
569
|
+
"APP_NAME",
|
570
|
+
"APPLOCK_MODE",
|
571
|
+
"APPLOCK_TEST",
|
572
|
+
"ASSEMBLYPROPERTY",
|
573
|
+
"COL_LENGTH",
|
574
|
+
"COL_NAME",
|
575
|
+
"COLUMNPROPERTY",
|
576
|
+
"DATABASE_PRINCIPAL_ID",
|
577
|
+
"DATABASEPROPERTYEX",
|
578
|
+
"DB_ID",
|
579
|
+
"DB_NAME",
|
580
|
+
"FILE_ID",
|
581
|
+
"FILE_IDEX",
|
582
|
+
"FILE_NAME",
|
583
|
+
"FILEGROUP_ID",
|
584
|
+
"FILEGROUP_NAME",
|
585
|
+
"FILEGROUPPROPERTY",
|
586
|
+
"FILEPROPERTY",
|
587
|
+
"FULLTEXTCATALOGPROPERTY",
|
588
|
+
"FULLTEXTSERVICEPROPERTY",
|
589
|
+
"INDEX_COL",
|
590
|
+
"INDEXKEY_PROPERTY",
|
591
|
+
"INDEXPROPERTY",
|
592
|
+
"OBJECT_DEFINITION",
|
593
|
+
"OBJECT_ID",
|
594
|
+
"OBJECT_NAME",
|
595
|
+
"OBJECT_SCHEMA_NAME",
|
596
|
+
"OBJECTPROPERTY",
|
597
|
+
"OBJECTPROPERTYEX",
|
598
|
+
"ORIGINAL_DB_NAME",
|
599
|
+
"PARSENAME",
|
600
|
+
"SCHEMA_ID",
|
601
|
+
"SCHEMA_NAME",
|
602
|
+
"SCOPE_IDENTITY",
|
603
|
+
"SERVERPROPERTY",
|
604
|
+
"STATS_DATE",
|
605
|
+
"TYPE_ID",
|
606
|
+
"TYPE_NAME",
|
607
|
+
"TYPEPROPERTY",
|
608
|
+
// Ranking
|
609
|
+
"DENSE_RANK",
|
610
|
+
"NTILE",
|
611
|
+
"RANK",
|
612
|
+
"ROW_NUMBER",
|
613
|
+
// Replication
|
614
|
+
"PUBLISHINGSERVERNAME",
|
615
|
+
// Rowset
|
616
|
+
"OPENDATASOURCE",
|
617
|
+
"OPENQUERY",
|
618
|
+
"OPENROWSET",
|
619
|
+
"OPENXML",
|
620
|
+
// Security
|
621
|
+
"CERTENCODED",
|
622
|
+
"CERTPRIVATEKEY",
|
623
|
+
"CURRENT_USER",
|
624
|
+
"HAS_DBACCESS",
|
625
|
+
"HAS_PERMS_BY_NAME",
|
626
|
+
"IS_MEMBER",
|
627
|
+
"IS_ROLEMEMBER",
|
628
|
+
"IS_SRVROLEMEMBER",
|
629
|
+
"LOGINPROPERTY",
|
630
|
+
"ORIGINAL_LOGIN",
|
631
|
+
"PERMISSIONS",
|
632
|
+
"PWDENCRYPT",
|
633
|
+
"PWDCOMPARE",
|
634
|
+
"SESSION_USER",
|
635
|
+
"SESSIONPROPERTY",
|
636
|
+
"SUSER_ID",
|
637
|
+
"SUSER_NAME",
|
638
|
+
"SUSER_SID",
|
639
|
+
"SUSER_SNAME",
|
640
|
+
"SYSTEM_USER",
|
641
|
+
"USER",
|
642
|
+
"USER_ID",
|
643
|
+
"USER_NAME",
|
644
|
+
// String
|
645
|
+
"ASCII",
|
646
|
+
"CHAR",
|
647
|
+
"CHARINDEX",
|
648
|
+
"CONCAT",
|
649
|
+
"DIFFERENCE",
|
650
|
+
"FORMAT",
|
651
|
+
"LEFT",
|
652
|
+
"LEN",
|
653
|
+
"LOWER",
|
654
|
+
"LTRIM",
|
655
|
+
"NCHAR",
|
656
|
+
"PATINDEX",
|
657
|
+
"QUOTENAME",
|
658
|
+
"REPLACE",
|
659
|
+
"REPLICATE",
|
660
|
+
"REVERSE",
|
661
|
+
"RIGHT",
|
662
|
+
"RTRIM",
|
663
|
+
"SOUNDEX",
|
664
|
+
"SPACE",
|
665
|
+
"STR",
|
666
|
+
"STUFF",
|
667
|
+
"SUBSTRING",
|
668
|
+
"UNICODE",
|
669
|
+
"UPPER",
|
670
|
+
// System
|
671
|
+
"BINARY_CHECKSUM",
|
672
|
+
"CHECKSUM",
|
673
|
+
"CONNECTIONPROPERTY",
|
674
|
+
"CONTEXT_INFO",
|
675
|
+
"CURRENT_REQUEST_ID",
|
676
|
+
"ERROR_LINE",
|
677
|
+
"ERROR_NUMBER",
|
678
|
+
"ERROR_MESSAGE",
|
679
|
+
"ERROR_PROCEDURE",
|
680
|
+
"ERROR_SEVERITY",
|
681
|
+
"ERROR_STATE",
|
682
|
+
"FORMATMESSAGE",
|
683
|
+
"GETANSINULL",
|
684
|
+
"GET_FILESTREAM_TRANSACTION_CONTEXT",
|
685
|
+
"HOST_ID",
|
686
|
+
"HOST_NAME",
|
687
|
+
"ISNULL",
|
688
|
+
"ISNUMERIC",
|
689
|
+
"MIN_ACTIVE_ROWVERSION",
|
690
|
+
"NEWID",
|
691
|
+
"NEWSEQUENTIALID",
|
692
|
+
"ROWCOUNT_BIG",
|
693
|
+
"XACT_STATE",
|
694
|
+
// TextImage
|
695
|
+
"TEXTPTR",
|
696
|
+
"TEXTVALID",
|
697
|
+
// Trigger
|
698
|
+
"COLUMNS_UPDATED",
|
699
|
+
"EVENTDATA",
|
700
|
+
"TRIGGER_NESTLEVEL",
|
701
|
+
"UPDATE",
|
702
|
+
// ChangeTracking
|
703
|
+
"CHANGETABLE",
|
704
|
+
"CHANGE_TRACKING_CONTEXT",
|
705
|
+
"CHANGE_TRACKING_CURRENT_VERSION",
|
706
|
+
"CHANGE_TRACKING_IS_COLUMN_IN_MASK",
|
707
|
+
"CHANGE_TRACKING_MIN_VALID_VERSION",
|
708
|
+
// FullTextSearch
|
709
|
+
"CONTAINSTABLE",
|
710
|
+
"FREETEXTTABLE",
|
711
|
+
// SemanticTextSearch
|
712
|
+
"SEMANTICKEYPHRASETABLE",
|
713
|
+
"SEMANTICSIMILARITYDETAILSTABLE",
|
714
|
+
"SEMANTICSIMILARITYTABLE",
|
715
|
+
// FileStream
|
716
|
+
"FILETABLEROOTPATH",
|
717
|
+
"GETFILENAMESPACEPATH",
|
718
|
+
"GETPATHLOCATOR",
|
719
|
+
"PATHNAME",
|
720
|
+
// ServiceBroker
|
721
|
+
"GET_TRANSMISSION_STATUS"
|
722
|
+
],
|
723
|
+
builtinVariables: [
|
724
|
+
// Configuration
|
725
|
+
"@@DATEFIRST",
|
726
|
+
"@@DBTS",
|
727
|
+
"@@LANGID",
|
728
|
+
"@@LANGUAGE",
|
729
|
+
"@@LOCK_TIMEOUT",
|
730
|
+
"@@MAX_CONNECTIONS",
|
731
|
+
"@@MAX_PRECISION",
|
732
|
+
"@@NESTLEVEL",
|
733
|
+
"@@OPTIONS",
|
734
|
+
"@@REMSERVER",
|
735
|
+
"@@SERVERNAME",
|
736
|
+
"@@SERVICENAME",
|
737
|
+
"@@SPID",
|
738
|
+
"@@TEXTSIZE",
|
739
|
+
"@@VERSION",
|
740
|
+
// Cursor
|
741
|
+
"@@CURSOR_ROWS",
|
742
|
+
"@@FETCH_STATUS",
|
743
|
+
// Datetime
|
744
|
+
"@@DATEFIRST",
|
745
|
+
// Metadata
|
746
|
+
"@@PROCID",
|
747
|
+
// System
|
748
|
+
"@@ERROR",
|
749
|
+
"@@IDENTITY",
|
750
|
+
"@@ROWCOUNT",
|
751
|
+
"@@TRANCOUNT",
|
752
|
+
// Stats
|
753
|
+
"@@CONNECTIONS",
|
754
|
+
"@@CPU_BUSY",
|
755
|
+
"@@IDLE",
|
756
|
+
"@@IO_BUSY",
|
757
|
+
"@@PACKET_ERRORS",
|
758
|
+
"@@PACK_RECEIVED",
|
759
|
+
"@@PACK_SENT",
|
760
|
+
"@@TIMETICKS",
|
761
|
+
"@@TOTAL_ERRORS",
|
762
|
+
"@@TOTAL_READ",
|
763
|
+
"@@TOTAL_WRITE"
|
764
|
+
],
|
765
|
+
pseudoColumns: ["$ACTION", "$IDENTITY", "$ROWGUID", "$PARTITION"],
|
766
|
+
tokenizer: {
|
767
|
+
root: [
|
768
|
+
{ include: "@comments" },
|
769
|
+
{ include: "@whitespace" },
|
770
|
+
{ include: "@pseudoColumns" },
|
771
|
+
{ include: "@numbers" },
|
772
|
+
{ include: "@strings" },
|
773
|
+
{ include: "@complexIdentifiers" },
|
774
|
+
{ include: "@scopes" },
|
775
|
+
[/[;,.]/, "delimiter"],
|
776
|
+
[/[()]/, "@brackets"],
|
777
|
+
[
|
778
|
+
/[\w@#$]+/,
|
779
|
+
{
|
780
|
+
cases: {
|
781
|
+
"@operators": "operator",
|
782
|
+
"@builtinVariables": "predefined",
|
783
|
+
"@builtinFunctions": "predefined",
|
784
|
+
"@keywords": "keyword",
|
785
|
+
"@default": "identifier"
|
786
|
+
}
|
787
|
+
}
|
788
|
+
],
|
789
|
+
[/[<>=!%&+\-*/|~^]/, "operator"]
|
790
|
+
],
|
791
|
+
whitespace: [[/\s+/, "white"]],
|
792
|
+
comments: [
|
793
|
+
[/--+.*/, "comment"],
|
794
|
+
[/\/\*/, { token: "comment.quote", next: "@comment" }]
|
795
|
+
],
|
796
|
+
comment: [
|
797
|
+
[/[^*/]+/, "comment"],
|
798
|
+
// Not supporting nested comments, as nested comments seem to not be standard?
|
799
|
+
// i.e. http://stackoverflow.com/questions/728172/are-there-multiline-comment-delimiters-in-sql-that-are-vendor-agnostic
|
800
|
+
// [/\/\*/, { token: 'comment.quote', next: '@push' }], // nested comment not allowed :-(
|
801
|
+
[/\*\//, { token: "comment.quote", next: "@pop" }],
|
802
|
+
[/./, "comment"]
|
803
|
+
],
|
804
|
+
pseudoColumns: [
|
805
|
+
[
|
806
|
+
/[$][A-Za-z_][\w@#$]*/,
|
807
|
+
{
|
808
|
+
cases: {
|
809
|
+
"@pseudoColumns": "predefined",
|
810
|
+
"@default": "identifier"
|
811
|
+
}
|
812
|
+
}
|
813
|
+
]
|
814
|
+
],
|
815
|
+
numbers: [
|
816
|
+
[/0[xX][0-9a-fA-F]*/, "number"],
|
817
|
+
[/[$][+-]*\d*(\.\d*)?/, "number"],
|
818
|
+
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, "number"]
|
819
|
+
],
|
820
|
+
strings: [
|
821
|
+
[/N'/, { token: "string", next: "@string" }],
|
822
|
+
[/'/, { token: "string", next: "@string" }]
|
823
|
+
],
|
824
|
+
string: [
|
825
|
+
[/[^']+/, "string"],
|
826
|
+
[/''/, "string"],
|
827
|
+
[/'/, { token: "string", next: "@pop" }]
|
828
|
+
],
|
829
|
+
complexIdentifiers: [
|
830
|
+
[/\[/, { token: "identifier.quote", next: "@bracketedIdentifier" }],
|
831
|
+
[/"/, { token: "identifier.quote", next: "@quotedIdentifier" }]
|
832
|
+
],
|
833
|
+
bracketedIdentifier: [
|
834
|
+
[/[^\]]+/, "identifier"],
|
835
|
+
[/]]/, "identifier"],
|
836
|
+
[/]/, { token: "identifier.quote", next: "@pop" }]
|
837
|
+
],
|
838
|
+
quotedIdentifier: [
|
839
|
+
[/[^"]+/, "identifier"],
|
840
|
+
[/""/, "identifier"],
|
841
|
+
[/"/, { token: "identifier.quote", next: "@pop" }]
|
842
|
+
],
|
843
|
+
scopes: [
|
844
|
+
[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i, "keyword"],
|
845
|
+
[/BEGIN\s+TRY\b/i, { token: "keyword.try" }],
|
846
|
+
[/END\s+TRY\b/i, { token: "keyword.try" }],
|
847
|
+
[/BEGIN\s+CATCH\b/i, { token: "keyword.catch" }],
|
848
|
+
[/END\s+CATCH\b/i, { token: "keyword.catch" }],
|
849
|
+
[/(BEGIN|CASE)\b/i, { token: "keyword.block" }],
|
850
|
+
[/END\b/i, { token: "keyword.block" }],
|
851
|
+
[/WHEN\b/i, { token: "keyword.choice" }],
|
852
|
+
[/THEN\b/i, { token: "keyword.choice" }]
|
853
|
+
]
|
854
|
+
}
|
855
|
+
};
|
856
|
+
export {
|
857
|
+
E as conf,
|
858
|
+
T as language
|
859
|
+
};
|