@aiao/code-editor-vue 0.0.7 → 0.0.8
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/dist/apl-B2DGVGxc-Dd6D39pP.js +76 -0
- package/dist/asciiarmor-2LVJmxlE-CAn4gnoC.js +34 -0
- package/dist/asn1-jKiBa2Ya-xsKwdyq9.js +95 -0
- package/dist/asterisk-DS281yxp-B5eTWk_B.js +271 -0
- package/dist/brainfuck-C_p9pTT8-DKVQ9poL.js +34 -0
- package/dist/clike-BMALKCNj-Ck7Gc35_.js +620 -0
- package/dist/clojure-CCKyeQKf-N9sg777Z.js +800 -0
- package/dist/cmake-CuaCgAKt-BbEgXraO.js +28 -0
- package/dist/cobol-BlTKFDRj-CHCoWafp.js +72 -0
- package/dist/coffeescript-BVCvwO8I-Z15ai5ac.js +179 -0
- package/dist/commonlisp-D_kxz07b-Ce7sn14o.js +75 -0
- package/dist/crystal-D309uH6_-DS6LrXoE.js +217 -0
- package/dist/css-BkF-NPzE-DiJu9Nkd.js +1553 -0
- package/dist/cypher-BMq4Fwjl-Ml-omWgp.js +68 -0
- package/dist/d-BZcgY6La-KCW6-bIm.js +127 -0
- package/dist/diff-Cg9d_RX2-C01qBVFc.js +18 -0
- package/dist/dockerfile-DFX8bq9N-BIbYUQV0.js +194 -0
- package/dist/dtd-CtLokQ-U-DCbNdeIA.js +84 -0
- package/dist/dylan-QYeExnWK-DIUVpsct.js +234 -0
- package/dist/ebnf-DUPDuY4r-7HIXKmWn.js +78 -0
- package/dist/ecl-CiXN-g_D-DOI-W0if.js +121 -0
- package/dist/eiffel-yQhjl4T1-DIX8Ceq1.js +110 -0
- package/dist/elm-CNT9vbN0-BcYlydpO.js +108 -0
- package/dist/erlang-CFOYdy9e-DULXsFZl.js +487 -0
- package/dist/factor-Clf6BoVk-DBb2EHMF.js +65 -0
- package/dist/fcl-CPC2WYrI-CuXG3fcK.js +103 -0
- package/dist/forth-BmxRyE9S-BcFwWpeL.js +60 -0
- package/dist/fortran-9bvPyrOW-CuLcq-Iu.js +442 -0
- package/dist/gas-cpmYfFX2-sZgGhMxB.js +183 -0
- package/dist/gherkin-CJuwpceU-BRrr8yjO.js +34 -0
- package/dist/groovy-DZeT_VM--CmF8wcSo.js +146 -0
- package/dist/haskell-CxiO_7JL-BuULsXvv.js +375 -0
- package/dist/haxe-70NVW1pR-CM27SfgM.js +359 -0
- package/dist/http-D9LttvKF-j9E8oQ7o.js +44 -0
- package/dist/idl-B6TRFYjl-B6TRFYjl.js +947 -0
- package/dist/index-BMiCCEB1-Bhkem_yf.js +305 -0
- package/dist/index-BNuasEBW-Djq6JMRj.js +94 -0
- package/dist/index-Bg1KDWyt-DaNGMguF.js +290 -0
- package/dist/{index-D6_k5ZgA.js → index-BuVm7ZG6-BZLKs8s6.js} +106 -106
- package/dist/index-BvS1cnHq-DM0hbFEQ.js +613 -0
- package/dist/index-C44L0DmY-BmmnwVzM.js +138 -0
- package/dist/index-C71CZfUx-CXN80Lrt.js +247 -0
- package/dist/{index-BluJGN_u.js → index-CQ6JWNwi-BkIQd0CX.js} +131 -130
- package/dist/index-CpRVx97--qRVKhpm0.js +342 -0
- package/dist/index-CqvQj6d--Cks52f8R.js +270 -0
- package/dist/index-CrbQBmWq-CH-PcW1J.js +157 -0
- package/dist/index-CzovO10m-BGtdggaq.js +301 -0
- package/dist/index-D0BZOY-S-DP1N-_JY.js +101 -0
- package/dist/{index-DcMCsmYb.js → index-D0svJS59-B1ELwWap.js} +79 -78
- package/dist/index-D93XVMi1-BA3BTMNq.js +136 -0
- package/dist/index-DEB5VK0f-DmPMy-wS.js +252 -0
- package/dist/index-Dp8osI_J-_47iGH9z.js +960 -0
- package/dist/index-Ds4AioqO-C6aO_ISw.js +1917 -0
- package/dist/{index-DBgKi_NE.js → index-Dy-OpkyQ-BBMsyHBR.js} +18 -18
- package/dist/index-Dyi9rNIT-DTaMAKyY.js +391 -0
- package/dist/index-ZJkjD9tT-CsDrbsME.js +74 -0
- package/dist/index-qH2lMs0G-VT1Nd_LF.js +944 -0
- package/dist/index-srIksFxX-jkv39JhL.js +59 -0
- package/dist/index-wcsJ2mym.js +31598 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/javascript-DOuB9oqA-BxiygWgm.js +691 -0
- package/dist/julia-DpvXAuO6-Bk_IfD8X.js +241 -0
- package/dist/livescript-CanGTf8u-Cx6PrvS4.js +272 -0
- package/dist/lua-XplVlWi_-8f8obHzY.js +217 -0
- package/dist/mathematica-jaRHnSxC-B83gQsL2.js +35 -0
- package/dist/mbox-BctzC1hL-Hg5U2B4l.js +76 -0
- package/dist/mirc-CFBPAOaF-CfzSSk9W.js +72 -0
- package/dist/mllike-BSnXJBGA-Ao1NpT2u.js +272 -0
- package/dist/modelica-vUgVs--1-BObVpYBg.js +93 -0
- package/dist/mscgen-Cpl0NYLN-DqNArLGH.js +104 -0
- package/dist/mumps-CQoS1kWX-CkTUOQnt.js +25 -0
- package/dist/nginx-zDPm3Z74-DJk4KP7N.js +87 -0
- package/dist/nsis-BCLyjY7m-C2MffOQ3.js +62 -0
- package/dist/ntriples-CsNjv2QF-C4aZn3EO.js +79 -0
- package/dist/octave-C8PmmSRH-DM5vTWlU.js +143 -0
- package/dist/oz-Ce8aN8oE-BcJM4SVy.js +151 -0
- package/dist/pascal-De0D6mP7-D7DGFFKL.js +77 -0
- package/dist/perl-B4bSCe1C-6aIa2glS.js +915 -0
- package/dist/pig-D24Z8EXi-BD-qt5FU.js +54 -0
- package/dist/powershell-DkYVfTzP-Blt1Rodi.js +249 -0
- package/dist/properties-Dn9wna3M-EOOwnCnk.js +26 -0
- package/dist/protobuf-BPIjwpzm-DAButU8_.js +49 -0
- package/dist/pug-TGXr6c5j-C9HfQ86E.js +248 -0
- package/dist/puppet-nyd4dhjf-CGzH5dsa.js +45 -0
- package/dist/python-BkR3uSy8-CjDnyp3B.js +313 -0
- package/dist/q-DyHZGnqm-DGuqeH_T.js +86 -0
- package/dist/r-LKEuhEGI-BFQhJnTP.js +104 -0
- package/dist/rpm-IznJm2Xc-CbZqrWCM.js +57 -0
- package/dist/ruby-CcYfvIk6-DzPSfSGo.js +228 -0
- package/dist/sas-7E8yHoCW-D726Uzkw.js +105 -0
- package/dist/scheme-DjibxsNh-Bp5gVFkm.js +124 -0
- package/dist/shell-C0C2sNA_-BTeYg6ir.js +182 -0
- package/dist/sieve-Bwz7vjP5-Cw8iTBf7.js +72 -0
- package/dist/simple-mode-mNVtnu0l-BC8mf7KF.js +89 -0
- package/dist/smalltalk-Bhddl2pB-B7URiJSp.js +48 -0
- package/dist/solr-BNlsLglM-BM2OpfTI.js +41 -0
- package/dist/sparql-FarWu_Gb-FN_uQNd4.js +197 -0
- package/dist/spreadsheet-C-cy4P5N-5CSTwVYq.js +49 -0
- package/dist/sql-CfG5lQ3l-Bd4dgm_8.js +278 -0
- package/dist/stex-Du4h4KAU-QOov_zHj.js +129 -0
- package/dist/stylus-CAdqWld3-BcRBbBxD.js +250 -0
- package/dist/swift-DSxqR9R6-2Hz4NOoF.js +230 -0
- package/dist/tcl-xfoLljhY-DAZBRGQI.js +81 -0
- package/dist/textile-D1AWE-pc-DuiIfEnb.js +295 -0
- package/dist/tiddlywiki-5wqsXtSk-WuF_8VUv.js +155 -0
- package/dist/tiki-__Kn3CeS-CWcR9ib_.js +181 -0
- package/dist/toml-DWAmxCjl-CyJoDzs6.js +56 -0
- package/dist/troff-D2UO-fKf-DVoIzS-O.js +35 -0
- package/dist/ttcn-Bsa4sfRm-hoy08sYQ.js +123 -0
- package/dist/ttcn-cfg-Bac_acMi-DaC4kQpd.js +88 -0
- package/dist/turtle-xwJUxoPV-fs94wdNM.js +80 -0
- package/dist/vb-c2kQGd6--DU726qF0.js +74 -0
- package/dist/vbscript-1f_Dhg5H-DriA32xD.js +324 -0
- package/dist/velocity-DJd0pTTC-BG368IR6.js +96 -0
- package/dist/verilog-CiS1jyi5-giQA8J-e.js +259 -0
- package/dist/vhdl-T9HkrbI2-BJ8LEDog.js +106 -0
- package/dist/webidl-CjfDENEo-BM8KXKJ5.js +155 -0
- package/dist/xquery-Ct6lEb4B-C5KDc61l.js +422 -0
- package/dist/yacas-C0absKBh-B82QJ76F.js +73 -0
- package/dist/z80-Pki2zAjW-B0IQoIbR.js +61 -0
- package/package.json +8 -10
- package/dist/index-3d5LPf68.js +0 -19017
- package/dist/languages.d.ts +0 -3
- package/dist/languages.d.ts.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { x as re, E as ae, b as ne, n as ie, u as se, t as oe, P as i, R as le } from "./index-wcsJ2mym.js";
|
|
2
|
+
import { w as ce, Y as de } from "./index-BuVm7ZG6-BZLKs8s6.js";
|
|
3
|
+
import { o as ue, n as pe } from "./index-Dyi9rNIT-DTaMAKyY.js";
|
|
4
|
+
const me = 36, R = 1, fe = 2, y = 3, C = 4, _e = 5, ge = 6, he = 7, be = 8, ye = 9, ve = 10, xe = 11, ke = 12, Oe = 13, we = 14, Qe = 15, Ce = 16, qe = 17, I = 18, Se = 19, A = 20, W = 21, Z = 22, Pe = 23, Te = 24;
|
|
5
|
+
function S(t) {
|
|
5
6
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 48 && t <= 57;
|
|
6
7
|
}
|
|
7
8
|
function ze(t) {
|
|
@@ -50,23 +51,23 @@ function Ue(t, e) {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
function P(t, e) {
|
|
53
|
-
for (; !(t.next != 95 && !
|
|
54
|
+
for (; !(t.next != 95 && !S(t.next)); )
|
|
54
55
|
e != null && (e += String.fromCharCode(t.next)), t.advance();
|
|
55
56
|
return e;
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function Xe(t) {
|
|
58
59
|
if (t.next == 39 || t.next == 34 || t.next == 96) {
|
|
59
60
|
let e = t.next;
|
|
60
61
|
t.advance(), g(t, e, !1);
|
|
61
62
|
} else
|
|
62
63
|
P(t);
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function L(t, e) {
|
|
65
66
|
for (; t.next == 48 || t.next == 49; )
|
|
66
67
|
t.advance();
|
|
67
68
|
e && t.next == e && t.advance();
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function D(t, e) {
|
|
70
71
|
for (; ; ) {
|
|
71
72
|
if (t.next == 46) {
|
|
72
73
|
if (e)
|
|
@@ -80,7 +81,7 @@ function Z(t, e) {
|
|
|
80
81
|
for (t.advance(), (t.next == 43 || t.next == 45) && t.advance(); t.next >= 48 && t.next <= 57; )
|
|
81
82
|
t.advance();
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function V(t) {
|
|
84
85
|
for (; !(t.next < 0 || t.next == 10); )
|
|
85
86
|
t.advance();
|
|
86
87
|
}
|
|
@@ -90,20 +91,20 @@ function _(t, e) {
|
|
|
90
91
|
return !0;
|
|
91
92
|
return !1;
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
+
const q = ` \r
|
|
94
95
|
`;
|
|
95
|
-
function
|
|
96
|
+
function Y(t, e, a) {
|
|
96
97
|
let r = /* @__PURE__ */ Object.create(null);
|
|
97
98
|
r.true = r.false = _e, r.null = r.unknown = ge;
|
|
98
99
|
for (let n of t.split(" "))
|
|
99
|
-
n && (r[n] =
|
|
100
|
+
n && (r[n] = A);
|
|
100
101
|
for (let n of e.split(" "))
|
|
101
102
|
n && (r[n] = W);
|
|
102
103
|
for (let n of (a || "").split(" "))
|
|
103
104
|
n && (r[n] = Te);
|
|
104
105
|
return r;
|
|
105
106
|
}
|
|
106
|
-
const h = "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",
|
|
107
|
+
const h = "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ", b = "absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ", T = {
|
|
107
108
|
backslashEscapes: !1,
|
|
108
109
|
hashComments: !1,
|
|
109
110
|
spaceAfterDashes: !1,
|
|
@@ -118,31 +119,31 @@ const h = "array binary bit boolean char character clob date decimal double floa
|
|
|
118
119
|
specialVar: "?",
|
|
119
120
|
identifierQuotes: '"',
|
|
120
121
|
caseInsensitiveIdentifiers: !1,
|
|
121
|
-
words: /* @__PURE__ */
|
|
122
|
+
words: /* @__PURE__ */ Y(b, h)
|
|
122
123
|
};
|
|
123
124
|
function Be(t, e, a, r) {
|
|
124
125
|
let n = {};
|
|
125
126
|
for (let s in T)
|
|
126
127
|
n[s] = (t.hasOwnProperty(s) ? t : T)[s];
|
|
127
|
-
return e && (n.words =
|
|
128
|
+
return e && (n.words = Y(e, a || "", r)), n;
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
-
return new
|
|
130
|
+
function G(t) {
|
|
131
|
+
return new de((e) => {
|
|
131
132
|
var a;
|
|
132
133
|
let { next: r } = e;
|
|
133
|
-
if (e.advance(), _(r,
|
|
134
|
-
for (; _(e.next,
|
|
134
|
+
if (e.advance(), _(r, q)) {
|
|
135
|
+
for (; _(e.next, q); )
|
|
135
136
|
e.advance();
|
|
136
|
-
e.acceptToken(
|
|
137
|
+
e.acceptToken(me);
|
|
137
138
|
} else if (r == 36 && t.doubleDollarQuotedStrings) {
|
|
138
139
|
let n = P(e, "");
|
|
139
|
-
e.next == 36 && (e.advance(), je(e, n), e.acceptToken(
|
|
140
|
+
e.next == 36 && (e.advance(), je(e, n), e.acceptToken(y));
|
|
140
141
|
} else if (r == 39 || r == 34 && t.doubleQuotedStrings)
|
|
141
|
-
g(e, r, t.backslashEscapes), e.acceptToken(
|
|
142
|
+
g(e, r, t.backslashEscapes), e.acceptToken(y);
|
|
142
143
|
else if (r == 35 && t.hashComments || r == 47 && e.next == 47 && t.slashComments)
|
|
143
|
-
|
|
144
|
+
V(e), e.acceptToken(R);
|
|
144
145
|
else if (r == 45 && e.next == 45 && (!t.spaceAfterDashes || e.peek(1) == 32))
|
|
145
|
-
|
|
146
|
+
V(e), e.acceptToken(R);
|
|
146
147
|
else if (r == 47 && e.next == 42) {
|
|
147
148
|
e.advance();
|
|
148
149
|
for (let n = 1; ; ) {
|
|
@@ -156,70 +157,70 @@ function K(t) {
|
|
|
156
157
|
}
|
|
157
158
|
e.acceptToken(fe);
|
|
158
159
|
} else if ((r == 101 || r == 69) && e.next == 39)
|
|
159
|
-
e.advance(), g(e, 39, !0), e.acceptToken(
|
|
160
|
+
e.advance(), g(e, 39, !0), e.acceptToken(y);
|
|
160
161
|
else if ((r == 110 || r == 78) && e.next == 39 && t.charSetCasts)
|
|
161
|
-
e.advance(), g(e, 39, t.backslashEscapes), e.acceptToken(
|
|
162
|
+
e.advance(), g(e, 39, t.backslashEscapes), e.acceptToken(y);
|
|
162
163
|
else if (r == 95 && t.charSetCasts)
|
|
163
164
|
for (let n = 0; ; n++) {
|
|
164
165
|
if (e.next == 39 && n > 1) {
|
|
165
|
-
e.advance(), g(e, 39, t.backslashEscapes), e.acceptToken(
|
|
166
|
+
e.advance(), g(e, 39, t.backslashEscapes), e.acceptToken(y);
|
|
166
167
|
break;
|
|
167
168
|
}
|
|
168
|
-
if (!
|
|
169
|
+
if (!S(e.next))
|
|
169
170
|
break;
|
|
170
171
|
e.advance();
|
|
171
172
|
}
|
|
172
|
-
else if (t.plsqlQuotingMechanism && (r == 113 || r == 81) && e.next == 39 && e.peek(1) > 0 && !_(e.peek(1),
|
|
173
|
+
else if (t.plsqlQuotingMechanism && (r == 113 || r == 81) && e.next == 39 && e.peek(1) > 0 && !_(e.peek(1), q)) {
|
|
173
174
|
let n = e.peek(1);
|
|
174
|
-
e.advance(2), Ue(e, n), e.acceptToken(
|
|
175
|
+
e.advance(2), Ue(e, n), e.acceptToken(y);
|
|
175
176
|
} else if (_(r, t.identifierQuotes)) {
|
|
176
177
|
const n = r == 91 ? 93 : r;
|
|
177
|
-
g(e, n, !1), e.acceptToken(
|
|
178
|
+
g(e, n, !1), e.acceptToken(Se);
|
|
178
179
|
} else if (r == 40)
|
|
179
180
|
e.acceptToken(he);
|
|
180
181
|
else if (r == 41)
|
|
181
|
-
e.acceptToken(ye);
|
|
182
|
-
else if (r == 123)
|
|
183
182
|
e.acceptToken(be);
|
|
183
|
+
else if (r == 123)
|
|
184
|
+
e.acceptToken(ye);
|
|
184
185
|
else if (r == 125)
|
|
185
186
|
e.acceptToken(ve);
|
|
186
187
|
else if (r == 91)
|
|
187
|
-
e.acceptToken(ke);
|
|
188
|
-
else if (r == 93)
|
|
189
188
|
e.acceptToken(xe);
|
|
189
|
+
else if (r == 93)
|
|
190
|
+
e.acceptToken(ke);
|
|
190
191
|
else if (r == 59)
|
|
191
192
|
e.acceptToken(Oe);
|
|
192
193
|
else if (t.unquotedBitLiterals && r == 48 && e.next == 98)
|
|
193
|
-
e.advance(),
|
|
194
|
+
e.advance(), L(e), e.acceptToken(Z);
|
|
194
195
|
else if ((r == 98 || r == 66) && (e.next == 39 || e.next == 34)) {
|
|
195
196
|
const n = e.next;
|
|
196
|
-
e.advance(), t.treatBitsAsBytes ? (g(e, n, t.backslashEscapes), e.acceptToken(Pe)) : (
|
|
197
|
+
e.advance(), t.treatBitsAsBytes ? (g(e, n, t.backslashEscapes), e.acceptToken(Pe)) : (L(e, n), e.acceptToken(Z));
|
|
197
198
|
} else if (r == 48 && (e.next == 120 || e.next == 88) || (r == 120 || r == 88) && e.next == 39) {
|
|
198
199
|
let n = e.next == 39;
|
|
199
200
|
for (e.advance(); ze(e.next); )
|
|
200
201
|
e.advance();
|
|
201
202
|
n && e.next == 39 && e.advance(), e.acceptToken(C);
|
|
202
203
|
} else if (r == 46 && e.next >= 48 && e.next <= 57)
|
|
203
|
-
|
|
204
|
+
D(e, !0), e.acceptToken(C);
|
|
204
205
|
else if (r == 46)
|
|
205
206
|
e.acceptToken(we);
|
|
206
207
|
else if (r >= 48 && r <= 57)
|
|
207
|
-
|
|
208
|
+
D(e, !1), e.acceptToken(C);
|
|
208
209
|
else if (_(r, t.operatorChars)) {
|
|
209
210
|
for (; _(e.next, t.operatorChars); )
|
|
210
211
|
e.advance();
|
|
211
212
|
e.acceptToken(Qe);
|
|
212
213
|
} else if (_(r, t.specialVar))
|
|
213
|
-
e.next == r && e.advance(),
|
|
214
|
+
e.next == r && e.advance(), Xe(e), e.acceptToken(qe);
|
|
214
215
|
else if (r == 58 || r == 44)
|
|
215
216
|
e.acceptToken(Ce);
|
|
216
|
-
else if (
|
|
217
|
+
else if (S(r)) {
|
|
217
218
|
let n = P(e, String.fromCharCode(r));
|
|
218
219
|
e.acceptToken(e.next == 46 || e.peek(-n.length - 1) == 46 ? I : (a = t.words[n.toLowerCase()]) !== null && a !== void 0 ? a : I);
|
|
219
220
|
}
|
|
220
221
|
});
|
|
221
222
|
}
|
|
222
|
-
const
|
|
223
|
+
const M = /* @__PURE__ */ G(T), Re = /* @__PURE__ */ ce.deserialize({
|
|
223
224
|
version: 14,
|
|
224
225
|
states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
|
|
225
226
|
stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
|
|
@@ -232,7 +233,7 @@ const F = /* @__PURE__ */ K(T), Xe = /* @__PURE__ */ me.deserialize({
|
|
|
232
233
|
skippedNodes: [0, 1, 2],
|
|
233
234
|
repeatNodeCount: 3,
|
|
234
235
|
tokenData: "RORO",
|
|
235
|
-
tokenizers: [0,
|
|
236
|
+
tokenizers: [0, M],
|
|
236
237
|
topRules: { Script: [0, 25] },
|
|
237
238
|
tokenPrec: 0
|
|
238
239
|
});
|
|
@@ -242,7 +243,7 @@ function z(t) {
|
|
|
242
243
|
e.moveTo(e.from, -1);
|
|
243
244
|
return e.node;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function k(t, e) {
|
|
246
247
|
let a = t.sliceString(e.from, e.to), r = /^([`'"\[])(.*)([`'"\]])$/.exec(a);
|
|
247
248
|
return r ? r[2] : a;
|
|
248
249
|
}
|
|
@@ -253,32 +254,32 @@ function Ie(t, e) {
|
|
|
253
254
|
if (e.name == "CompositeIdentifier") {
|
|
254
255
|
let a = [];
|
|
255
256
|
for (let r = e.firstChild; r; r = r.nextSibling)
|
|
256
|
-
Q(r) && a.push(
|
|
257
|
+
Q(r) && a.push(k(t, r));
|
|
257
258
|
return a;
|
|
258
259
|
}
|
|
259
|
-
return [
|
|
260
|
+
return [k(t, e)];
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function $(t, e) {
|
|
262
263
|
for (let a = []; ; ) {
|
|
263
264
|
if (!e || e.name != ".")
|
|
264
265
|
return a;
|
|
265
266
|
let r = z(e);
|
|
266
267
|
if (!Q(r))
|
|
267
268
|
return a;
|
|
268
|
-
a.unshift(
|
|
269
|
+
a.unshift(k(t, r)), e = z(r);
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
-
let a =
|
|
272
|
+
function Ze(t, e) {
|
|
273
|
+
let a = le(t).resolveInner(e, -1), r = De(t.doc, a);
|
|
273
274
|
return a.name == "Identifier" || a.name == "QuotedIdentifier" || a.name == "Keyword" ? {
|
|
274
275
|
from: a.from,
|
|
275
276
|
quoted: a.name == "QuotedIdentifier" ? t.doc.sliceString(a.from, a.from + 1) : null,
|
|
276
|
-
parents:
|
|
277
|
+
parents: $(t.doc, z(a)),
|
|
277
278
|
aliases: r
|
|
278
|
-
} : a.name == "." ? { from: e, quoted: null, parents:
|
|
279
|
+
} : a.name == "." ? { from: e, quoted: null, parents: $(t.doc, a), aliases: r } : { from: e, quoted: null, parents: [], empty: !0, aliases: r };
|
|
279
280
|
}
|
|
280
|
-
const
|
|
281
|
-
function
|
|
281
|
+
const Le = /* @__PURE__ */ new Set(/* @__PURE__ */ "where group having order union intersect except all distinct limit offset fetch for".split(" "));
|
|
282
|
+
function De(t, e) {
|
|
282
283
|
let a;
|
|
283
284
|
for (let n = e; !a; n = n.parent) {
|
|
284
285
|
if (!n)
|
|
@@ -291,21 +292,21 @@ function Ze(t, e) {
|
|
|
291
292
|
if (!s)
|
|
292
293
|
s = l == "from";
|
|
293
294
|
else if (l == "as" && c && Q(n.nextSibling))
|
|
294
|
-
o =
|
|
295
|
+
o = k(t, n.nextSibling);
|
|
295
296
|
else {
|
|
296
|
-
if (l &&
|
|
297
|
+
if (l && Le.has(l))
|
|
297
298
|
break;
|
|
298
|
-
c && Q(n) && (o =
|
|
299
|
+
c && Q(n) && (o = k(t, n));
|
|
299
300
|
}
|
|
300
301
|
o && (r || (r = /* @__PURE__ */ Object.create(null)), r[o] = Ie(t, c)), c = /Identifier$/.test(n.name) ? n : null;
|
|
301
302
|
}
|
|
302
303
|
return r;
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
+
function Ve(t, e, a) {
|
|
305
306
|
return a.map((r) => ({ ...r, label: r.label[0] == t ? r.label : t + r.label + e, apply: void 0 }));
|
|
306
307
|
}
|
|
307
|
-
const
|
|
308
|
-
function
|
|
308
|
+
const $e = /^\w*$/, Ne = /^[`'"\[]?\w*[`'"\]]?$/;
|
|
309
|
+
function N(t) {
|
|
309
310
|
return t.self && typeof t.self.label == "string";
|
|
310
311
|
}
|
|
311
312
|
class j {
|
|
@@ -313,8 +314,8 @@ class j {
|
|
|
313
314
|
this.idQuote = e, this.idCaseInsensitive = a, this.list = [], this.children = void 0;
|
|
314
315
|
}
|
|
315
316
|
child(e) {
|
|
316
|
-
let a = this.children || (this.children = /* @__PURE__ */ Object.create(null))
|
|
317
|
-
return
|
|
317
|
+
let a = this.children || (this.children = /* @__PURE__ */ Object.create(null));
|
|
318
|
+
return a[e] || (e && !this.list.some((n) => n.label == e) && this.list.push(E(e, "type", this.idQuote, this.idCaseInsensitive)), a[e] = new j(this.idQuote, this.idCaseInsensitive));
|
|
318
319
|
}
|
|
319
320
|
maybeChild(e) {
|
|
320
321
|
return this.children ? this.children[e] : null;
|
|
@@ -325,74 +326,74 @@ class j {
|
|
|
325
326
|
}
|
|
326
327
|
addCompletions(e) {
|
|
327
328
|
for (let a of e)
|
|
328
|
-
this.addCompletion(typeof a == "string" ?
|
|
329
|
+
this.addCompletion(typeof a == "string" ? E(a, "property", this.idQuote, this.idCaseInsensitive) : a);
|
|
329
330
|
}
|
|
330
331
|
addNamespace(e) {
|
|
331
|
-
Array.isArray(e) ? this.addCompletions(e) :
|
|
332
|
+
Array.isArray(e) ? this.addCompletions(e) : N(e) ? this.addNamespace(e.children) : this.addNamespaceObject(e);
|
|
332
333
|
}
|
|
333
334
|
addNamespaceObject(e) {
|
|
334
335
|
for (let a of Object.keys(e)) {
|
|
335
336
|
let r = e[a], n = null, s = a.replace(/\\?\./g, (l) => l == "." ? "\0" : l).split("\0"), c = this;
|
|
336
|
-
|
|
337
|
+
N(r) && (n = r.self, r = r.children);
|
|
337
338
|
for (let l = 0; l < s.length; l++)
|
|
338
339
|
n && l == s.length - 1 && c.addCompletion(n), c = c.child(s[l].replace(/\\\./g, "."));
|
|
339
340
|
c.addNamespace(r);
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
-
return new RegExp("^[a-z_][a-z_\\d]*$", r ? "i" : "").test(t) ? { label: t, type: e } : { label: t, type: e, apply: a + t +
|
|
344
|
+
function E(t, e, a, r) {
|
|
345
|
+
return new RegExp("^[a-z_][a-z_\\d]*$", r ? "i" : "").test(t) ? { label: t, type: e } : { label: t, type: e, apply: a + t + K(a) };
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function K(t) {
|
|
347
348
|
return t === "[" ? "]" : t;
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function Ee(t, e, a, r, n, s) {
|
|
350
351
|
var c;
|
|
351
|
-
let l = ((c = s?.spec.identifierQuotes) === null || c === void 0 ? void 0 : c[0]) || '"', o = new j(l, !!s?.spec.caseInsensitiveIdentifiers),
|
|
352
|
-
return o.addNamespace(t), e && (
|
|
353
|
-
let { parents: v, from:
|
|
354
|
-
if (ee && !
|
|
352
|
+
let l = ((c = s?.spec.identifierQuotes) === null || c === void 0 ? void 0 : c[0]) || '"', o = new j(l, !!s?.spec.caseInsensitiveIdentifiers), p = n ? o.child(n) : null;
|
|
353
|
+
return o.addNamespace(t), e && (p || o).addCompletions(e), a && o.addCompletions(a), p && o.addCompletions(p.list), r && o.addCompletions((p || o).child(r).list), (m) => {
|
|
354
|
+
let { parents: v, from: X, quoted: B, empty: ee, aliases: O } = Ze(m.state, m.pos);
|
|
355
|
+
if (ee && !m.explicit)
|
|
355
356
|
return null;
|
|
356
357
|
O && v.length == 1 && (v = O[v[0]] || v);
|
|
357
358
|
let d = o;
|
|
358
359
|
for (let f of v) {
|
|
359
360
|
for (; !d.children || !d.children[f]; )
|
|
360
|
-
if (d == o &&
|
|
361
|
-
d =
|
|
362
|
-
else if (d ==
|
|
361
|
+
if (d == o && p)
|
|
362
|
+
d = p;
|
|
363
|
+
else if (d == p && r)
|
|
363
364
|
d = d.child(r);
|
|
364
365
|
else
|
|
365
366
|
return null;
|
|
366
|
-
let
|
|
367
|
-
if (!
|
|
367
|
+
let x = d.maybeChild(f);
|
|
368
|
+
if (!x)
|
|
368
369
|
return null;
|
|
369
|
-
d =
|
|
370
|
+
d = x;
|
|
370
371
|
}
|
|
371
372
|
let w = d.list;
|
|
372
373
|
if (d == o && O && (w = w.concat(Object.keys(O).map((f) => ({ label: f, type: "constant" })))), B) {
|
|
373
|
-
let f = B[0],
|
|
374
|
+
let f = B[0], x = K(f), te = m.state.sliceDoc(m.pos, m.pos + 1) == x;
|
|
374
375
|
return {
|
|
375
|
-
from:
|
|
376
|
-
to: te ?
|
|
377
|
-
options:
|
|
378
|
-
validFor:
|
|
376
|
+
from: X,
|
|
377
|
+
to: te ? m.pos + 1 : void 0,
|
|
378
|
+
options: Ve(f, x, w),
|
|
379
|
+
validFor: Ne
|
|
379
380
|
};
|
|
380
381
|
} else
|
|
381
382
|
return {
|
|
382
|
-
from:
|
|
383
|
+
from: X,
|
|
383
384
|
options: w,
|
|
384
|
-
validFor:
|
|
385
|
+
validFor: $e
|
|
385
386
|
};
|
|
386
387
|
};
|
|
387
388
|
}
|
|
388
|
-
function
|
|
389
|
-
return t == W ? "type" : t ==
|
|
389
|
+
function Ae(t) {
|
|
390
|
+
return t == W ? "type" : t == A ? "keyword" : "variable";
|
|
390
391
|
}
|
|
391
392
|
function We(t, e, a) {
|
|
392
|
-
let r = Object.keys(t).map((n) => a(e ? n.toUpperCase() : n,
|
|
393
|
-
return
|
|
393
|
+
let r = Object.keys(t).map((n) => a(e ? n.toUpperCase() : n, Ae(t[n])));
|
|
394
|
+
return ue(["QuotedIdentifier", "String", "LineComment", "BlockComment", "."], pe(r));
|
|
394
395
|
}
|
|
395
|
-
let
|
|
396
|
+
let Ye = /* @__PURE__ */ Re.configure({
|
|
396
397
|
props: [
|
|
397
398
|
/* @__PURE__ */ ne.add({
|
|
398
399
|
Statement: /* @__PURE__ */ oe()
|
|
@@ -428,7 +429,7 @@ let Me = /* @__PURE__ */ Xe.configure({
|
|
|
428
429
|
})
|
|
429
430
|
]
|
|
430
431
|
});
|
|
431
|
-
class
|
|
432
|
+
class u {
|
|
432
433
|
constructor(e, a, r) {
|
|
433
434
|
this.dialect = e, this.language = a, this.spec = r;
|
|
434
435
|
}
|
|
@@ -443,7 +444,7 @@ class m {
|
|
|
443
444
|
dialect object.
|
|
444
445
|
*/
|
|
445
446
|
configureLanguage(e, a) {
|
|
446
|
-
return new
|
|
447
|
+
return new u(this.dialect, this.language.configure(e, a), this.spec);
|
|
447
448
|
}
|
|
448
449
|
/**
|
|
449
450
|
Define a new dialect.
|
|
@@ -451,48 +452,48 @@ class m {
|
|
|
451
452
|
static define(e) {
|
|
452
453
|
let a = Be(e, e.keywords, e.types, e.builtin), r = ae.define({
|
|
453
454
|
name: "sql",
|
|
454
|
-
parser:
|
|
455
|
-
tokenizers: [{ from:
|
|
455
|
+
parser: Ye.configure({
|
|
456
|
+
tokenizers: [{ from: M, to: G(a) }]
|
|
456
457
|
}),
|
|
457
458
|
languageData: {
|
|
458
459
|
commentTokens: { line: "--", block: { open: "/*", close: "*/" } },
|
|
459
460
|
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
|
|
460
461
|
}
|
|
461
462
|
});
|
|
462
|
-
return new
|
|
463
|
+
return new u(a, r, e);
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
+
function Ge(t, e) {
|
|
466
467
|
return { label: t, type: e, boost: -1 };
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
-
return We(t.dialect.words, e, a ||
|
|
469
|
+
function Me(t, e = !1, a) {
|
|
470
|
+
return We(t.dialect.words, e, a || Ge);
|
|
470
471
|
}
|
|
471
|
-
function
|
|
472
|
-
return t.schema ?
|
|
472
|
+
function Ke(t) {
|
|
473
|
+
return t.schema ? Ee(t.schema, t.tables, t.schemas, t.defaultTable, t.defaultSchema, t.dialect || U) : () => null;
|
|
473
474
|
}
|
|
474
|
-
function
|
|
475
|
+
function Fe(t) {
|
|
475
476
|
return t.schema ? (t.dialect || U).language.data.of({
|
|
476
|
-
autocomplete:
|
|
477
|
+
autocomplete: Ke(t)
|
|
477
478
|
}) : [];
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
+
function rt(t = {}) {
|
|
480
481
|
let e = t.dialect || U;
|
|
481
482
|
return new re(e.language, [
|
|
482
|
-
|
|
483
|
+
Fe(t),
|
|
483
484
|
e.language.data.of({
|
|
484
|
-
autocomplete:
|
|
485
|
+
autocomplete: Me(e, t.upperCaseKeywords, t.keywordCompletion)
|
|
485
486
|
})
|
|
486
487
|
]);
|
|
487
488
|
}
|
|
488
|
-
const U = /* @__PURE__ */
|
|
489
|
+
const U = /* @__PURE__ */ u.define({}), at = /* @__PURE__ */ u.define({
|
|
489
490
|
charSetCasts: !0,
|
|
490
491
|
doubleDollarQuotedStrings: !0,
|
|
491
492
|
operatorChars: "+-*/<>=~!@#%^&|`?",
|
|
492
493
|
specialVar: "",
|
|
493
|
-
keywords:
|
|
494
|
+
keywords: b + "abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",
|
|
494
495
|
types: h + "bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"
|
|
495
|
-
}),
|
|
496
|
+
}), F = "accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill", H = h + "bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed", J = "charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee", nt = /* @__PURE__ */ u.define({
|
|
496
497
|
operatorChars: "*+-%<>!=&|^",
|
|
497
498
|
charSetCasts: !0,
|
|
498
499
|
doubleQuotedStrings: !0,
|
|
@@ -501,10 +502,10 @@ const U = /* @__PURE__ */ m.define({}), rt = /* @__PURE__ */ m.define({
|
|
|
501
502
|
spaceAfterDashes: !0,
|
|
502
503
|
specialVar: "@?",
|
|
503
504
|
identifierQuotes: "`",
|
|
504
|
-
keywords:
|
|
505
|
+
keywords: b + "group_concat " + F,
|
|
505
506
|
types: H,
|
|
506
507
|
builtin: J
|
|
507
|
-
}),
|
|
508
|
+
}), it = /* @__PURE__ */ u.define({
|
|
508
509
|
operatorChars: "*+-%<>!=&|^",
|
|
509
510
|
charSetCasts: !0,
|
|
510
511
|
doubleQuotedStrings: !0,
|
|
@@ -513,7 +514,7 @@ const U = /* @__PURE__ */ m.define({}), rt = /* @__PURE__ */ m.define({
|
|
|
513
514
|
spaceAfterDashes: !0,
|
|
514
515
|
specialVar: "@?",
|
|
515
516
|
identifierQuotes: "`",
|
|
516
|
-
keywords:
|
|
517
|
+
keywords: b + "always generated groupby_concat hard persistent shutdown soft virtual " + F,
|
|
517
518
|
types: H,
|
|
518
519
|
builtin: J
|
|
519
520
|
});
|
|
@@ -521,27 +522,27 @@ let He = (
|
|
|
521
522
|
// Aggregate https://msdn.microsoft.com/en-us/library/ms173454.aspx
|
|
522
523
|
"approx_count_distinct approx_percentile_cont approx_percentile_disc avg checksum_agg count count_big grouping grouping_id max min product stdev stdevp sum var varp ai_generate_embeddings ai_generate_chunks cume_dist first_value lag last_value lead percentile_cont percentile_disc percent_rank left_shift right_shift bit_count get_bit set_bit collationproperty tertiary_weights @@datefirst @@dbts @@langid @@language @@lock_timeout @@max_connections @@max_precision @@nestlevel @@options @@remserver @@servername @@servicename @@spid @@textsize @@version cast convert parse try_cast try_convert try_parse asymkey_id asymkeyproperty certproperty cert_id crypt_gen_random decryptbyasymkey decryptbycert decryptbykey decryptbykeyautoasymkey decryptbykeyautocert decryptbypassphrase encryptbyasymkey encryptbycert encryptbykey encryptbypassphrase hashbytes is_objectsigned key_guid key_id key_name signbyasymkey signbycert symkeyproperty verifysignedbycert verifysignedbyasymkey @@cursor_rows @@fetch_status cursor_status datalength ident_current ident_incr ident_seed identity sql_variant_property @@datefirst current_timestamp current_timezone current_timezone_id date_bucket dateadd datediff datediff_big datefromparts datename datepart datetime2fromparts datetimefromparts datetimeoffsetfromparts datetrunc day eomonth getdate getutcdate isdate month smalldatetimefromparts switchoffset sysdatetime sysdatetimeoffset sysutcdatetime timefromparts todatetimeoffset year edit_distance edit_distance_similarity jaro_winkler_distance jaro_winkler_similarity edge_id_from_parts graph_id_from_edge_id graph_id_from_node_id node_id_from_parts object_id_from_edge_id object_id_from_node_id json isjson json_array json_contains json_modify json_object json_path_exists json_query json_value regexp_like regexp_replace regexp_substr regexp_instr regexp_count regexp_matches regexp_split_to_table abs acos asin atan atn2 ceiling cos cot degrees exp floor log log10 pi power radians rand round sign sin sqrt square tan choose greatest iif least @@procid app_name applock_mode applock_test assemblyproperty col_length col_name columnproperty databasepropertyex db_id db_name file_id file_idex file_name filegroup_id filegroup_name filegroupproperty fileproperty filepropertyex fulltextcatalogproperty fulltextserviceproperty index_col indexkey_property indexproperty next value for object_definition object_id object_name object_schema_name objectproperty objectpropertyex original_db_name parsename schema_id schema_name scope_identity serverproperty stats_date type_id type_name typeproperty dense_rank ntile rank row_number publishingservername certenclosed certprivatekey current_user database_principal_id has_dbaccess has_perms_by_name is_member is_rolemember is_srvrolemember loginproperty original_login permissions pwdencrypt pwdcompare session_user sessionproperty suser_id suser_name suser_sid suser_sname system_user user user_id user_name ascii char charindex concat concat_ws difference format left len lower ltrim nchar patindex quotename replace replicate reverse right rtrim soundex space str string_agg string_escape stuff substring translate trim unicode upper $partition @@error @@identity @@pack_received @@rowcount @@trancount binary_checksum checksum compress connectionproperty context_info current_request_id current_transaction_id decompress error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big session_context xact_state @@connections @@cpu_busy @@idle @@io_busy @@pack_sent @@packet_errors @@timeticks @@total_errors @@total_read @@total_write textptr textvalid columns_updated eventdata trigger_nestlevel vector_distance vectorproperty vector_search generate_series opendatasource openjson openquery openrowset openxml predict string_split coalesce nullif apply catch filter force include keep keepfixed modify optimize parameterization parameters partition recompile sequence set"
|
|
523
524
|
);
|
|
524
|
-
const
|
|
525
|
-
keywords:
|
|
525
|
+
const st = /* @__PURE__ */ u.define({
|
|
526
|
+
keywords: b + // Reserved Keywords https://learn.microsoft.com/en-us/sql/t-sql/language-elements/reserved-keywords-transact-sql?view=sql-server-ver17
|
|
526
527
|
"add external procedure all fetch public alter file raiserror and fillfactor read any for readtext as foreign reconfigure asc freetext references authorization freetexttable replication backup from restore begin full restrict between function return break goto revert browse grant revoke bulk group right by having rollback cascade holdlock rowcount case identity rowguidcol check identity_insert rule checkpoint identitycol save close if schema clustered in securityaudit coalesce index select collate inner semantickeyphrasetable column insert semanticsimilaritydetailstable commit intersect semanticsimilaritytable compute into session_user constraint is set contains join setuser containstable key shutdown continue kill some convert left statistics create like system_user cross lineno table current load tablesample current_date merge textsize current_time national then current_timestamp nocheck to current_user nonclustered top cursor not tran database null transaction dbcc nullif trigger deallocate of truncate declare off try_convert default offsets tsequal delete on union deny open unique desc opendatasource unpivot disk openquery update distinct openrowset updatetext distributed openxml use double option user drop or values dump order varying else outer view end over waitfor errlvl percent when escape pivot where except plan while exec precision with execute primary within group exists print writetext exit proc noexpand index forceseek forcescan holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot spatial_window_max_cells tablock tablockx updlock xlock keepidentity keepdefaults ignore_constraints ignore_triggers",
|
|
527
528
|
types: h + "smalldatetime datetimeoffset datetime2 datetime bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",
|
|
528
529
|
builtin: He,
|
|
529
530
|
operatorChars: "*+-%<>!=^&|/",
|
|
530
531
|
specialVar: "@",
|
|
531
532
|
identifierQuotes: '"['
|
|
532
|
-
}),
|
|
533
|
-
keywords:
|
|
533
|
+
}), ot = /* @__PURE__ */ u.define({
|
|
534
|
+
keywords: b + "abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",
|
|
534
535
|
types: h + "bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",
|
|
535
536
|
builtin: "auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",
|
|
536
537
|
operatorChars: "*+-%<>!=&|/~",
|
|
537
538
|
identifierQuotes: '`"',
|
|
538
539
|
specialVar: "@:?$"
|
|
539
|
-
}),
|
|
540
|
+
}), lt = /* @__PURE__ */ u.define({
|
|
540
541
|
keywords: "add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",
|
|
541
542
|
types: h + "ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",
|
|
542
543
|
slashComments: !0
|
|
543
|
-
}),
|
|
544
|
-
keywords:
|
|
544
|
+
}), ct = /* @__PURE__ */ u.define({
|
|
545
|
+
keywords: b + "abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",
|
|
545
546
|
builtin: "appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",
|
|
546
547
|
types: h + "ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",
|
|
547
548
|
operatorChars: "*/+-%<>!=~",
|
|
@@ -550,16 +551,16 @@ const it = /* @__PURE__ */ m.define({
|
|
|
550
551
|
plsqlQuotingMechanism: !0
|
|
551
552
|
});
|
|
552
553
|
export {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
554
|
+
lt as Cassandra,
|
|
555
|
+
st as MSSQL,
|
|
556
|
+
it as MariaSQL,
|
|
557
|
+
nt as MySQL,
|
|
558
|
+
ct as PLSQL,
|
|
559
|
+
at as PostgreSQL,
|
|
560
|
+
u as SQLDialect,
|
|
561
|
+
ot as SQLite,
|
|
561
562
|
U as StandardSQL,
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
Me as keywordCompletionSource,
|
|
564
|
+
Ke as schemaCompletionSource,
|
|
565
|
+
rt as sql
|
|
565
566
|
};
|