@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.
Files changed (126) hide show
  1. package/dist/apl-B2DGVGxc-Dd6D39pP.js +76 -0
  2. package/dist/asciiarmor-2LVJmxlE-CAn4gnoC.js +34 -0
  3. package/dist/asn1-jKiBa2Ya-xsKwdyq9.js +95 -0
  4. package/dist/asterisk-DS281yxp-B5eTWk_B.js +271 -0
  5. package/dist/brainfuck-C_p9pTT8-DKVQ9poL.js +34 -0
  6. package/dist/clike-BMALKCNj-Ck7Gc35_.js +620 -0
  7. package/dist/clojure-CCKyeQKf-N9sg777Z.js +800 -0
  8. package/dist/cmake-CuaCgAKt-BbEgXraO.js +28 -0
  9. package/dist/cobol-BlTKFDRj-CHCoWafp.js +72 -0
  10. package/dist/coffeescript-BVCvwO8I-Z15ai5ac.js +179 -0
  11. package/dist/commonlisp-D_kxz07b-Ce7sn14o.js +75 -0
  12. package/dist/crystal-D309uH6_-DS6LrXoE.js +217 -0
  13. package/dist/css-BkF-NPzE-DiJu9Nkd.js +1553 -0
  14. package/dist/cypher-BMq4Fwjl-Ml-omWgp.js +68 -0
  15. package/dist/d-BZcgY6La-KCW6-bIm.js +127 -0
  16. package/dist/diff-Cg9d_RX2-C01qBVFc.js +18 -0
  17. package/dist/dockerfile-DFX8bq9N-BIbYUQV0.js +194 -0
  18. package/dist/dtd-CtLokQ-U-DCbNdeIA.js +84 -0
  19. package/dist/dylan-QYeExnWK-DIUVpsct.js +234 -0
  20. package/dist/ebnf-DUPDuY4r-7HIXKmWn.js +78 -0
  21. package/dist/ecl-CiXN-g_D-DOI-W0if.js +121 -0
  22. package/dist/eiffel-yQhjl4T1-DIX8Ceq1.js +110 -0
  23. package/dist/elm-CNT9vbN0-BcYlydpO.js +108 -0
  24. package/dist/erlang-CFOYdy9e-DULXsFZl.js +487 -0
  25. package/dist/factor-Clf6BoVk-DBb2EHMF.js +65 -0
  26. package/dist/fcl-CPC2WYrI-CuXG3fcK.js +103 -0
  27. package/dist/forth-BmxRyE9S-BcFwWpeL.js +60 -0
  28. package/dist/fortran-9bvPyrOW-CuLcq-Iu.js +442 -0
  29. package/dist/gas-cpmYfFX2-sZgGhMxB.js +183 -0
  30. package/dist/gherkin-CJuwpceU-BRrr8yjO.js +34 -0
  31. package/dist/groovy-DZeT_VM--CmF8wcSo.js +146 -0
  32. package/dist/haskell-CxiO_7JL-BuULsXvv.js +375 -0
  33. package/dist/haxe-70NVW1pR-CM27SfgM.js +359 -0
  34. package/dist/http-D9LttvKF-j9E8oQ7o.js +44 -0
  35. package/dist/idl-B6TRFYjl-B6TRFYjl.js +947 -0
  36. package/dist/index-BMiCCEB1-Bhkem_yf.js +305 -0
  37. package/dist/index-BNuasEBW-Djq6JMRj.js +94 -0
  38. package/dist/index-Bg1KDWyt-DaNGMguF.js +290 -0
  39. package/dist/{index-D6_k5ZgA.js → index-BuVm7ZG6-BZLKs8s6.js} +106 -106
  40. package/dist/index-BvS1cnHq-DM0hbFEQ.js +613 -0
  41. package/dist/index-C44L0DmY-BmmnwVzM.js +138 -0
  42. package/dist/index-C71CZfUx-CXN80Lrt.js +247 -0
  43. package/dist/{index-BluJGN_u.js → index-CQ6JWNwi-BkIQd0CX.js} +131 -130
  44. package/dist/index-CpRVx97--qRVKhpm0.js +342 -0
  45. package/dist/index-CqvQj6d--Cks52f8R.js +270 -0
  46. package/dist/index-CrbQBmWq-CH-PcW1J.js +157 -0
  47. package/dist/index-CzovO10m-BGtdggaq.js +301 -0
  48. package/dist/index-D0BZOY-S-DP1N-_JY.js +101 -0
  49. package/dist/{index-DcMCsmYb.js → index-D0svJS59-B1ELwWap.js} +79 -78
  50. package/dist/index-D93XVMi1-BA3BTMNq.js +136 -0
  51. package/dist/index-DEB5VK0f-DmPMy-wS.js +252 -0
  52. package/dist/index-Dp8osI_J-_47iGH9z.js +960 -0
  53. package/dist/index-Ds4AioqO-C6aO_ISw.js +1917 -0
  54. package/dist/{index-DBgKi_NE.js → index-Dy-OpkyQ-BBMsyHBR.js} +18 -18
  55. package/dist/index-Dyi9rNIT-DTaMAKyY.js +391 -0
  56. package/dist/index-ZJkjD9tT-CsDrbsME.js +74 -0
  57. package/dist/index-qH2lMs0G-VT1Nd_LF.js +944 -0
  58. package/dist/index-srIksFxX-jkv39JhL.js +59 -0
  59. package/dist/index-wcsJ2mym.js +31598 -0
  60. package/dist/index.d.ts +0 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +2 -3
  63. package/dist/javascript-DOuB9oqA-BxiygWgm.js +691 -0
  64. package/dist/julia-DpvXAuO6-Bk_IfD8X.js +241 -0
  65. package/dist/livescript-CanGTf8u-Cx6PrvS4.js +272 -0
  66. package/dist/lua-XplVlWi_-8f8obHzY.js +217 -0
  67. package/dist/mathematica-jaRHnSxC-B83gQsL2.js +35 -0
  68. package/dist/mbox-BctzC1hL-Hg5U2B4l.js +76 -0
  69. package/dist/mirc-CFBPAOaF-CfzSSk9W.js +72 -0
  70. package/dist/mllike-BSnXJBGA-Ao1NpT2u.js +272 -0
  71. package/dist/modelica-vUgVs--1-BObVpYBg.js +93 -0
  72. package/dist/mscgen-Cpl0NYLN-DqNArLGH.js +104 -0
  73. package/dist/mumps-CQoS1kWX-CkTUOQnt.js +25 -0
  74. package/dist/nginx-zDPm3Z74-DJk4KP7N.js +87 -0
  75. package/dist/nsis-BCLyjY7m-C2MffOQ3.js +62 -0
  76. package/dist/ntriples-CsNjv2QF-C4aZn3EO.js +79 -0
  77. package/dist/octave-C8PmmSRH-DM5vTWlU.js +143 -0
  78. package/dist/oz-Ce8aN8oE-BcJM4SVy.js +151 -0
  79. package/dist/pascal-De0D6mP7-D7DGFFKL.js +77 -0
  80. package/dist/perl-B4bSCe1C-6aIa2glS.js +915 -0
  81. package/dist/pig-D24Z8EXi-BD-qt5FU.js +54 -0
  82. package/dist/powershell-DkYVfTzP-Blt1Rodi.js +249 -0
  83. package/dist/properties-Dn9wna3M-EOOwnCnk.js +26 -0
  84. package/dist/protobuf-BPIjwpzm-DAButU8_.js +49 -0
  85. package/dist/pug-TGXr6c5j-C9HfQ86E.js +248 -0
  86. package/dist/puppet-nyd4dhjf-CGzH5dsa.js +45 -0
  87. package/dist/python-BkR3uSy8-CjDnyp3B.js +313 -0
  88. package/dist/q-DyHZGnqm-DGuqeH_T.js +86 -0
  89. package/dist/r-LKEuhEGI-BFQhJnTP.js +104 -0
  90. package/dist/rpm-IznJm2Xc-CbZqrWCM.js +57 -0
  91. package/dist/ruby-CcYfvIk6-DzPSfSGo.js +228 -0
  92. package/dist/sas-7E8yHoCW-D726Uzkw.js +105 -0
  93. package/dist/scheme-DjibxsNh-Bp5gVFkm.js +124 -0
  94. package/dist/shell-C0C2sNA_-BTeYg6ir.js +182 -0
  95. package/dist/sieve-Bwz7vjP5-Cw8iTBf7.js +72 -0
  96. package/dist/simple-mode-mNVtnu0l-BC8mf7KF.js +89 -0
  97. package/dist/smalltalk-Bhddl2pB-B7URiJSp.js +48 -0
  98. package/dist/solr-BNlsLglM-BM2OpfTI.js +41 -0
  99. package/dist/sparql-FarWu_Gb-FN_uQNd4.js +197 -0
  100. package/dist/spreadsheet-C-cy4P5N-5CSTwVYq.js +49 -0
  101. package/dist/sql-CfG5lQ3l-Bd4dgm_8.js +278 -0
  102. package/dist/stex-Du4h4KAU-QOov_zHj.js +129 -0
  103. package/dist/stylus-CAdqWld3-BcRBbBxD.js +250 -0
  104. package/dist/swift-DSxqR9R6-2Hz4NOoF.js +230 -0
  105. package/dist/tcl-xfoLljhY-DAZBRGQI.js +81 -0
  106. package/dist/textile-D1AWE-pc-DuiIfEnb.js +295 -0
  107. package/dist/tiddlywiki-5wqsXtSk-WuF_8VUv.js +155 -0
  108. package/dist/tiki-__Kn3CeS-CWcR9ib_.js +181 -0
  109. package/dist/toml-DWAmxCjl-CyJoDzs6.js +56 -0
  110. package/dist/troff-D2UO-fKf-DVoIzS-O.js +35 -0
  111. package/dist/ttcn-Bsa4sfRm-hoy08sYQ.js +123 -0
  112. package/dist/ttcn-cfg-Bac_acMi-DaC4kQpd.js +88 -0
  113. package/dist/turtle-xwJUxoPV-fs94wdNM.js +80 -0
  114. package/dist/vb-c2kQGd6--DU726qF0.js +74 -0
  115. package/dist/vbscript-1f_Dhg5H-DriA32xD.js +324 -0
  116. package/dist/velocity-DJd0pTTC-BG368IR6.js +96 -0
  117. package/dist/verilog-CiS1jyi5-giQA8J-e.js +259 -0
  118. package/dist/vhdl-T9HkrbI2-BJ8LEDog.js +106 -0
  119. package/dist/webidl-CjfDENEo-BM8KXKJ5.js +155 -0
  120. package/dist/xquery-Ct6lEb4B-C5KDc61l.js +422 -0
  121. package/dist/yacas-C0absKBh-B82QJ76F.js +73 -0
  122. package/dist/z80-Pki2zAjW-B0IQoIbR.js +61 -0
  123. package/package.json +8 -10
  124. package/dist/index-3d5LPf68.js +0 -19017
  125. package/dist/languages.d.ts +0 -3
  126. package/dist/languages.d.ts.map +0 -1
@@ -0,0 +1,106 @@
1
+ function c(e) {
2
+ for (var t = {}, n = e.split(","), r = 0; r < n.length; ++r) {
3
+ var i = n[r].toUpperCase(), a = n[r].charAt(0).toUpperCase() + n[r].slice(1);
4
+ t[n[r]] = !0, t[i] = !0, t[a] = !0;
5
+ }
6
+ return t;
7
+ }
8
+ function f(e) {
9
+ return e.eatWhile(/[\w\$_]/), "meta";
10
+ }
11
+ var y = c("null"), p = { "`": f, $: f }, m = !1, b = c("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"), h = c("architecture,entity,begin,case,port,else,elsif,end,for,function,if"), d = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/, o;
12
+ function s(e, t) {
13
+ var n = e.next();
14
+ if (p[n]) {
15
+ var r = p[n](e, t);
16
+ if (r !== !1) return r;
17
+ }
18
+ if (n == '"')
19
+ return t.tokenize = v(n), t.tokenize(e, t);
20
+ if (n == "'")
21
+ return t.tokenize = k(n), t.tokenize(e, t);
22
+ if (/[\[\]{}\(\),;\:\.]/.test(n))
23
+ return o = n, null;
24
+ if (/[\d']/.test(n))
25
+ return e.eatWhile(/[\w\.']/), "number";
26
+ if (n == "-" && e.eat("-"))
27
+ return e.skipToEnd(), "comment";
28
+ if (d.test(n))
29
+ return e.eatWhile(d), "operator";
30
+ e.eatWhile(/[\w\$_]/);
31
+ var i = e.current();
32
+ return b.propertyIsEnumerable(i.toLowerCase()) ? (h.propertyIsEnumerable(i) && (o = "newstatement"), "keyword") : y.propertyIsEnumerable(i) ? "atom" : "variable";
33
+ }
34
+ function k(e) {
35
+ return function(t, n) {
36
+ for (var r = !1, i, a = !1; (i = t.next()) != null; ) {
37
+ if (i == e && !r) {
38
+ a = !0;
39
+ break;
40
+ }
41
+ r = !r && i == "--";
42
+ }
43
+ return (a || !(r || m)) && (n.tokenize = s), "string";
44
+ };
45
+ }
46
+ function v(e) {
47
+ return function(t, n) {
48
+ for (var r = !1, i, a = !1; (i = t.next()) != null; ) {
49
+ if (i == e && !r) {
50
+ a = !0;
51
+ break;
52
+ }
53
+ r = !r && i == "--";
54
+ }
55
+ return (a || !(r || m)) && (n.tokenize = s), "string.special";
56
+ };
57
+ }
58
+ function g(e, t, n, r, i) {
59
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
60
+ }
61
+ function u(e, t, n) {
62
+ return e.context = new g(e.indented, t, n, null, e.context);
63
+ }
64
+ function l(e) {
65
+ var t = e.context.type;
66
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
67
+ }
68
+ const x = {
69
+ name: "vhdl",
70
+ startState: function(e) {
71
+ return {
72
+ tokenize: null,
73
+ context: new g(-e, 0, "top", !1),
74
+ indented: 0,
75
+ startOfLine: !0
76
+ };
77
+ },
78
+ token: function(e, t) {
79
+ var n = t.context;
80
+ if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
81
+ o = null;
82
+ var r = (t.tokenize || s)(e, t);
83
+ if (r == "comment" || r == "meta") return r;
84
+ if (n.align == null && (n.align = !0), (o == ";" || o == ":") && n.type == "statement") l(t);
85
+ else if (o == "{") u(t, e.column(), "}");
86
+ else if (o == "[") u(t, e.column(), "]");
87
+ else if (o == "(") u(t, e.column(), ")");
88
+ else if (o == "}") {
89
+ for (; n.type == "statement"; ) n = l(t);
90
+ for (n.type == "}" && (n = l(t)); n.type == "statement"; ) n = l(t);
91
+ } else o == n.type ? l(t) : (n.type == "}" || n.type == "top" || n.type == "statement" && o == "newstatement") && u(t, e.column(), "statement");
92
+ return t.startOfLine = !1, r;
93
+ },
94
+ indent: function(e, t, n) {
95
+ if (e.tokenize != s && e.tokenize != null) return 0;
96
+ var r = t && t.charAt(0), i = e.context, a = r == i.type;
97
+ return i.type == "statement" ? i.indented + (r == "{" ? 0 : n.unit) : i.align ? i.column + (a ? 0 : 1) : i.indented + (a ? 0 : n.unit);
98
+ },
99
+ languageData: {
100
+ indentOnInput: /^\s*[{}]$/,
101
+ commentTokens: { line: "--" }
102
+ }
103
+ };
104
+ export {
105
+ x as vhdl
106
+ };
@@ -0,0 +1,155 @@
1
+ function n(t) {
2
+ return new RegExp("^((" + t.join(")|(") + "))\\b");
3
+ }
4
+ var o = [
5
+ "Clamp",
6
+ "Constructor",
7
+ "EnforceRange",
8
+ "Exposed",
9
+ "ImplicitThis",
10
+ "Global",
11
+ "PrimaryGlobal",
12
+ "LegacyArrayClass",
13
+ "LegacyUnenumerableNamedProperties",
14
+ "LenientThis",
15
+ "NamedConstructor",
16
+ "NewObject",
17
+ "NoInterfaceObject",
18
+ "OverrideBuiltins",
19
+ "PutForwards",
20
+ "Replaceable",
21
+ "SameObject",
22
+ "TreatNonObjectAsNull",
23
+ "TreatNullAs",
24
+ "EmptyString",
25
+ "Unforgeable",
26
+ "Unscopeable"
27
+ ], s = n(o), c = [
28
+ "unsigned",
29
+ "short",
30
+ "long",
31
+ // UnsignedIntegerType
32
+ "unrestricted",
33
+ "float",
34
+ "double",
35
+ // UnrestrictedFloatType
36
+ "boolean",
37
+ "byte",
38
+ "octet",
39
+ // Rest of PrimitiveType
40
+ "Promise",
41
+ // PromiseType
42
+ "ArrayBuffer",
43
+ "DataView",
44
+ "Int8Array",
45
+ "Int16Array",
46
+ "Int32Array",
47
+ "Uint8Array",
48
+ "Uint16Array",
49
+ "Uint32Array",
50
+ "Uint8ClampedArray",
51
+ "Float32Array",
52
+ "Float64Array",
53
+ // BufferRelatedType
54
+ "ByteString",
55
+ "DOMString",
56
+ "USVString",
57
+ "sequence",
58
+ "object",
59
+ "RegExp",
60
+ "Error",
61
+ "DOMException",
62
+ "FrozenArray",
63
+ // Rest of NonAnyType
64
+ "any",
65
+ // Rest of SingleType
66
+ "void"
67
+ // Rest of ReturnType
68
+ ], f = n(c), l = [
69
+ "attribute",
70
+ "callback",
71
+ "const",
72
+ "deleter",
73
+ "dictionary",
74
+ "enum",
75
+ "getter",
76
+ "implements",
77
+ "inherit",
78
+ "interface",
79
+ "iterable",
80
+ "legacycaller",
81
+ "maplike",
82
+ "partial",
83
+ "required",
84
+ "serializer",
85
+ "setlike",
86
+ "setter",
87
+ "static",
88
+ "stringifier",
89
+ "typedef",
90
+ // ArgumentNameKeyword except
91
+ // "unrestricted"
92
+ "optional",
93
+ "readonly",
94
+ "or"
95
+ ], u = n(l), m = [
96
+ "true",
97
+ "false",
98
+ // BooleanLiteral
99
+ "Infinity",
100
+ "NaN",
101
+ // FloatLiteral
102
+ "null"
103
+ // Rest of ConstValue
104
+ ], d = n(m), y = ["callback", "dictionary", "enum", "interface"], b = n(y), p = ["typedef"], h = n(p), A = /^[:<=>?]/, g = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/, D = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/, i = /^_?[A-Za-z][0-9A-Z_a-z-]*/, k = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, E = /^"[^"]*"/, C = /^\/\*.*?\*\//, N = /^\/\*.*/, w = /^.*?\*\//;
105
+ function S(t, e) {
106
+ if (t.eatSpace()) return null;
107
+ if (e.inComment)
108
+ return t.match(w) ? (e.inComment = !1, "comment") : (t.skipToEnd(), "comment");
109
+ if (t.match("//"))
110
+ return t.skipToEnd(), "comment";
111
+ if (t.match(C)) return "comment";
112
+ if (t.match(N))
113
+ return e.inComment = !0, "comment";
114
+ if (t.match(/^-?[0-9\.]/, !1) && (t.match(g) || t.match(D)))
115
+ return "number";
116
+ if (t.match(E)) return "string";
117
+ if (e.startDef && t.match(i)) return "def";
118
+ if (e.endDef && t.match(k))
119
+ return e.endDef = !1, "def";
120
+ if (t.match(u)) return "keyword";
121
+ if (t.match(f)) {
122
+ var a = e.lastToken, r = (t.match(/^\s*(.+?)\b/, !1) || [])[1];
123
+ return a === ":" || a === "implements" || r === "implements" || r === "=" ? "builtin" : "type";
124
+ }
125
+ return t.match(s) ? "builtin" : t.match(d) ? "atom" : t.match(i) ? "variable" : t.match(A) ? "operator" : (t.next(), null);
126
+ }
127
+ const T = {
128
+ name: "webidl",
129
+ startState: function() {
130
+ return {
131
+ // Is in multiline comment
132
+ inComment: !1,
133
+ // Last non-whitespace, matched token
134
+ lastToken: "",
135
+ // Next token is a definition
136
+ startDef: !1,
137
+ // Last token of the statement is a definition
138
+ endDef: !1
139
+ };
140
+ },
141
+ token: function(t, e) {
142
+ var a = S(t, e);
143
+ if (a) {
144
+ var r = t.current();
145
+ e.lastToken = r, a === "keyword" ? (e.startDef = b.test(r), e.endDef = e.endDef || h.test(r)) : e.startDef = !1;
146
+ }
147
+ return a;
148
+ },
149
+ languageData: {
150
+ autocomplete: o.concat(c).concat(l).concat(m)
151
+ }
152
+ };
153
+ export {
154
+ T as webIDL
155
+ };
@@ -0,0 +1,422 @@
1
+ var d = (function() {
2
+ function e(z) {
3
+ return { type: z, style: "keyword" };
4
+ }
5
+ for (var t = e("operator"), n = { type: "atom", style: "atom" }, r = { type: "punctuation", style: null }, i = { type: "axis_specifier", style: "qualifier" }, o = {
6
+ ",": r
7
+ }, m = [
8
+ "after",
9
+ "all",
10
+ "allowing",
11
+ "ancestor",
12
+ "ancestor-or-self",
13
+ "any",
14
+ "array",
15
+ "as",
16
+ "ascending",
17
+ "at",
18
+ "attribute",
19
+ "base-uri",
20
+ "before",
21
+ "boundary-space",
22
+ "by",
23
+ "case",
24
+ "cast",
25
+ "castable",
26
+ "catch",
27
+ "child",
28
+ "collation",
29
+ "comment",
30
+ "construction",
31
+ "contains",
32
+ "content",
33
+ "context",
34
+ "copy",
35
+ "copy-namespaces",
36
+ "count",
37
+ "decimal-format",
38
+ "declare",
39
+ "default",
40
+ "delete",
41
+ "descendant",
42
+ "descendant-or-self",
43
+ "descending",
44
+ "diacritics",
45
+ "different",
46
+ "distance",
47
+ "document",
48
+ "document-node",
49
+ "element",
50
+ "else",
51
+ "empty",
52
+ "empty-sequence",
53
+ "encoding",
54
+ "end",
55
+ "entire",
56
+ "every",
57
+ "exactly",
58
+ "except",
59
+ "external",
60
+ "first",
61
+ "following",
62
+ "following-sibling",
63
+ "for",
64
+ "from",
65
+ "ftand",
66
+ "ftnot",
67
+ "ft-option",
68
+ "ftor",
69
+ "function",
70
+ "fuzzy",
71
+ "greatest",
72
+ "group",
73
+ "if",
74
+ "import",
75
+ "in",
76
+ "inherit",
77
+ "insensitive",
78
+ "insert",
79
+ "instance",
80
+ "intersect",
81
+ "into",
82
+ "invoke",
83
+ "is",
84
+ "item",
85
+ "language",
86
+ "last",
87
+ "lax",
88
+ "least",
89
+ "let",
90
+ "levels",
91
+ "lowercase",
92
+ "map",
93
+ "modify",
94
+ "module",
95
+ "most",
96
+ "namespace",
97
+ "next",
98
+ "no",
99
+ "node",
100
+ "nodes",
101
+ "no-inherit",
102
+ "no-preserve",
103
+ "not",
104
+ "occurs",
105
+ "of",
106
+ "only",
107
+ "option",
108
+ "order",
109
+ "ordered",
110
+ "ordering",
111
+ "paragraph",
112
+ "paragraphs",
113
+ "parent",
114
+ "phrase",
115
+ "preceding",
116
+ "preceding-sibling",
117
+ "preserve",
118
+ "previous",
119
+ "processing-instruction",
120
+ "relationship",
121
+ "rename",
122
+ "replace",
123
+ "return",
124
+ "revalidation",
125
+ "same",
126
+ "satisfies",
127
+ "schema",
128
+ "schema-attribute",
129
+ "schema-element",
130
+ "score",
131
+ "self",
132
+ "sensitive",
133
+ "sentence",
134
+ "sentences",
135
+ "sequence",
136
+ "skip",
137
+ "sliding",
138
+ "some",
139
+ "stable",
140
+ "start",
141
+ "stemming",
142
+ "stop",
143
+ "strict",
144
+ "strip",
145
+ "switch",
146
+ "text",
147
+ "then",
148
+ "thesaurus",
149
+ "times",
150
+ "to",
151
+ "transform",
152
+ "treat",
153
+ "try",
154
+ "tumbling",
155
+ "type",
156
+ "typeswitch",
157
+ "union",
158
+ "unordered",
159
+ "update",
160
+ "updating",
161
+ "uppercase",
162
+ "using",
163
+ "validate",
164
+ "value",
165
+ "variable",
166
+ "version",
167
+ "weight",
168
+ "when",
169
+ "where",
170
+ "wildcards",
171
+ "window",
172
+ "with",
173
+ "without",
174
+ "word",
175
+ "words",
176
+ "xquery"
177
+ ], a = 0, s = m.length; a < s; a++)
178
+ o[m[a]] = e(m[a]);
179
+ for (var p = [
180
+ "xs:anyAtomicType",
181
+ "xs:anySimpleType",
182
+ "xs:anyType",
183
+ "xs:anyURI",
184
+ "xs:base64Binary",
185
+ "xs:boolean",
186
+ "xs:byte",
187
+ "xs:date",
188
+ "xs:dateTime",
189
+ "xs:dateTimeStamp",
190
+ "xs:dayTimeDuration",
191
+ "xs:decimal",
192
+ "xs:double",
193
+ "xs:duration",
194
+ "xs:ENTITIES",
195
+ "xs:ENTITY",
196
+ "xs:float",
197
+ "xs:gDay",
198
+ "xs:gMonth",
199
+ "xs:gMonthDay",
200
+ "xs:gYear",
201
+ "xs:gYearMonth",
202
+ "xs:hexBinary",
203
+ "xs:ID",
204
+ "xs:IDREF",
205
+ "xs:IDREFS",
206
+ "xs:int",
207
+ "xs:integer",
208
+ "xs:item",
209
+ "xs:java",
210
+ "xs:language",
211
+ "xs:long",
212
+ "xs:Name",
213
+ "xs:NCName",
214
+ "xs:negativeInteger",
215
+ "xs:NMTOKEN",
216
+ "xs:NMTOKENS",
217
+ "xs:nonNegativeInteger",
218
+ "xs:nonPositiveInteger",
219
+ "xs:normalizedString",
220
+ "xs:NOTATION",
221
+ "xs:numeric",
222
+ "xs:positiveInteger",
223
+ "xs:precisionDecimal",
224
+ "xs:QName",
225
+ "xs:short",
226
+ "xs:string",
227
+ "xs:time",
228
+ "xs:token",
229
+ "xs:unsignedByte",
230
+ "xs:unsignedInt",
231
+ "xs:unsignedLong",
232
+ "xs:unsignedShort",
233
+ "xs:untyped",
234
+ "xs:untypedAtomic",
235
+ "xs:yearMonthDuration"
236
+ ], a = 0, s = p.length; a < s; a++)
237
+ o[p[a]] = n;
238
+ for (var f = ["eq", "ne", "lt", "le", "gt", "ge", ":=", "=", ">", ">=", "<", "<=", ".", "|", "?", "and", "or", "div", "idiv", "mod", "*", "/", "+", "-"], a = 0, s = f.length; a < s; a++)
239
+ o[f[a]] = t;
240
+ for (var v = [
241
+ "self::",
242
+ "attribute::",
243
+ "child::",
244
+ "descendant::",
245
+ "descendant-or-self::",
246
+ "parent::",
247
+ "ancestor::",
248
+ "ancestor-or-self::",
249
+ "following::",
250
+ "preceding::",
251
+ "following-sibling::",
252
+ "preceding-sibling::"
253
+ ], a = 0, s = v.length; a < s; a++)
254
+ o[v[a]] = i;
255
+ return o;
256
+ })();
257
+ function x(e, t, n) {
258
+ return t.tokenize = n, n(e, t);
259
+ }
260
+ function u(e, t) {
261
+ var n = e.next(), r = !1, i = A(e);
262
+ if (n == "<") {
263
+ if (e.match("!--", !0))
264
+ return x(e, t, S);
265
+ if (e.match("![CDATA", !1))
266
+ return t.tokenize = D, "tag";
267
+ if (e.match("?", !1))
268
+ return x(e, t, E);
269
+ var o = e.eat("/");
270
+ e.eatSpace();
271
+ for (var m = "", a; a = e.eat(/[^\s\u00a0=<>\"\'\/?]/); ) m += a;
272
+ return x(e, t, N(m, o));
273
+ } else {
274
+ if (n == "{")
275
+ return l(t, { type: "codeblock" }), null;
276
+ if (n == "}")
277
+ return c(t), null;
278
+ if (b(t))
279
+ return n == ">" ? "tag" : n == "/" && e.eat(">") ? (c(t), "tag") : "variable";
280
+ if (/\d/.test(n))
281
+ return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/), "atom";
282
+ if (n === "(" && e.eat(":"))
283
+ return l(t, { type: "comment" }), x(e, t, w);
284
+ if (!i && (n === '"' || n === "'"))
285
+ return k(e, t, n);
286
+ if (n === "$")
287
+ return x(e, t, T);
288
+ if (n === ":" && e.eat("="))
289
+ return "keyword";
290
+ if (n === "(")
291
+ return l(t, { type: "paren" }), null;
292
+ if (n === ")")
293
+ return c(t), null;
294
+ if (n === "[")
295
+ return l(t, { type: "bracket" }), null;
296
+ if (n === "]")
297
+ return c(t), null;
298
+ var s = d.propertyIsEnumerable(n) && d[n];
299
+ if (i && n === '"') for (; e.next() !== '"'; )
300
+ ;
301
+ if (i && n === "'") for (; e.next() !== "'"; )
302
+ ;
303
+ s || e.eatWhile(/[\w\$_-]/);
304
+ var p = e.eat(":");
305
+ !e.eat(":") && p && e.eatWhile(/[\w\$_-]/), e.match(/^[ \t]*\(/, !1) && (r = !0);
306
+ var f = e.current();
307
+ return s = d.propertyIsEnumerable(f) && d[f], r && !s && (s = { type: "function_call", style: "def" }), _(t) ? (c(t), "variable") : ((f == "element" || f == "attribute" || s.type == "axis_specifier") && l(t, { type: "xmlconstructor" }), s ? s.style : "variable");
308
+ }
309
+ }
310
+ function w(e, t) {
311
+ for (var n = !1, r = !1, i = 0, o; o = e.next(); ) {
312
+ if (o == ")" && n)
313
+ if (i > 0)
314
+ i--;
315
+ else {
316
+ c(t);
317
+ break;
318
+ }
319
+ else o == ":" && r && i++;
320
+ n = o == ":", r = o == "(";
321
+ }
322
+ return "comment";
323
+ }
324
+ function I(e, t) {
325
+ return function(n, r) {
326
+ for (var i; i = n.next(); )
327
+ if (i == e) {
328
+ c(r), t && (r.tokenize = t);
329
+ break;
330
+ } else if (n.match("{", !1) && g(r))
331
+ return l(r, { type: "codeblock" }), r.tokenize = u, "string";
332
+ return "string";
333
+ };
334
+ }
335
+ function k(e, t, n, r) {
336
+ let i = I(n, r);
337
+ return l(t, { type: "string", name: n, tokenize: i }), x(e, t, i);
338
+ }
339
+ function T(e, t) {
340
+ var n = /[\w\$_-]/;
341
+ if (e.eat('"')) {
342
+ for (; e.next() !== '"'; )
343
+ ;
344
+ e.eat(":");
345
+ } else
346
+ e.eatWhile(n), e.match(":=", !1) || e.eat(":");
347
+ return e.eatWhile(n), t.tokenize = u, "variable";
348
+ }
349
+ function N(e, t) {
350
+ return function(n, r) {
351
+ if (n.eatSpace(), t && n.eat(">"))
352
+ return c(r), r.tokenize = u, "tag";
353
+ if (n.eat("/") || l(r, { type: "tag", name: e, tokenize: u }), n.eat(">"))
354
+ r.tokenize = u;
355
+ else
356
+ return r.tokenize = y, "tag";
357
+ return "tag";
358
+ };
359
+ }
360
+ function y(e, t) {
361
+ var n = e.next();
362
+ return n == "/" && e.eat(">") ? (g(t) && c(t), b(t) && c(t), "tag") : n == ">" ? (g(t) && c(t), "tag") : n == "=" ? null : n == '"' || n == "'" ? k(e, t, n, y) : (g(t) || l(t, { type: "attribute", tokenize: y }), e.eat(/[a-zA-Z_:]/), e.eatWhile(/[-a-zA-Z0-9_:.]/), e.eatSpace(), (e.match(">", !1) || e.match("/", !1)) && (c(t), t.tokenize = u), "attribute");
363
+ }
364
+ function S(e, t) {
365
+ for (var n; n = e.next(); )
366
+ if (n == "-" && e.match("->", !0))
367
+ return t.tokenize = u, "comment";
368
+ }
369
+ function D(e, t) {
370
+ for (var n; n = e.next(); )
371
+ if (n == "]" && e.match("]", !0))
372
+ return t.tokenize = u, "comment";
373
+ }
374
+ function E(e, t) {
375
+ for (var n; n = e.next(); )
376
+ if (n == "?" && e.match(">", !0))
377
+ return t.tokenize = u, "processingInstruction";
378
+ }
379
+ function b(e) {
380
+ return h(e, "tag");
381
+ }
382
+ function g(e) {
383
+ return h(e, "attribute");
384
+ }
385
+ function _(e) {
386
+ return h(e, "xmlconstructor");
387
+ }
388
+ function A(e) {
389
+ return e.current() === '"' ? e.match(/^[^\"]+\"\:/, !1) : e.current() === "'" ? e.match(/^[^\"]+\'\:/, !1) : !1;
390
+ }
391
+ function h(e, t) {
392
+ return e.stack.length && e.stack[e.stack.length - 1].type == t;
393
+ }
394
+ function l(e, t) {
395
+ e.stack.push(t);
396
+ }
397
+ function c(e) {
398
+ e.stack.pop();
399
+ var t = e.stack.length && e.stack[e.stack.length - 1].tokenize;
400
+ e.tokenize = t || u;
401
+ }
402
+ const q = {
403
+ name: "xquery",
404
+ startState: function() {
405
+ return {
406
+ tokenize: u,
407
+ cc: [],
408
+ stack: []
409
+ };
410
+ },
411
+ token: function(e, t) {
412
+ if (e.eatSpace()) return null;
413
+ var n = t.tokenize(e, t);
414
+ return n;
415
+ },
416
+ languageData: {
417
+ commentTokens: { block: { open: "(:", close: ":)" } }
418
+ }
419
+ };
420
+ export {
421
+ q as xQuery
422
+ };