@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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
function o(e) {
|
|
2
|
+
return new RegExp("^((" + e.join(")|(") + "))\\b");
|
|
3
|
+
}
|
|
4
|
+
var h = /[\^@!\|<>#~\.\*\-\+\\/,=]/, m = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/, k = /(:::)|(\.\.\.)|(=<:)|(>=:)/, s = [
|
|
5
|
+
"in",
|
|
6
|
+
"then",
|
|
7
|
+
"else",
|
|
8
|
+
"of",
|
|
9
|
+
"elseof",
|
|
10
|
+
"elsecase",
|
|
11
|
+
"elseif",
|
|
12
|
+
"catch",
|
|
13
|
+
"finally",
|
|
14
|
+
"with",
|
|
15
|
+
"require",
|
|
16
|
+
"prepare",
|
|
17
|
+
"import",
|
|
18
|
+
"export",
|
|
19
|
+
"define",
|
|
20
|
+
"do"
|
|
21
|
+
], f = ["end"], p = o(["true", "false", "nil", "unit"]), z = o([
|
|
22
|
+
"andthen",
|
|
23
|
+
"at",
|
|
24
|
+
"attr",
|
|
25
|
+
"declare",
|
|
26
|
+
"feat",
|
|
27
|
+
"from",
|
|
28
|
+
"lex",
|
|
29
|
+
"mod",
|
|
30
|
+
"div",
|
|
31
|
+
"mode",
|
|
32
|
+
"orelse",
|
|
33
|
+
"parser",
|
|
34
|
+
"prod",
|
|
35
|
+
"prop",
|
|
36
|
+
"scanner",
|
|
37
|
+
"self",
|
|
38
|
+
"syn",
|
|
39
|
+
"token"
|
|
40
|
+
]), g = o([
|
|
41
|
+
"local",
|
|
42
|
+
"proc",
|
|
43
|
+
"fun",
|
|
44
|
+
"case",
|
|
45
|
+
"class",
|
|
46
|
+
"if",
|
|
47
|
+
"cond",
|
|
48
|
+
"or",
|
|
49
|
+
"dis",
|
|
50
|
+
"choice",
|
|
51
|
+
"not",
|
|
52
|
+
"thread",
|
|
53
|
+
"try",
|
|
54
|
+
"raise",
|
|
55
|
+
"lock",
|
|
56
|
+
"for",
|
|
57
|
+
"suchthat",
|
|
58
|
+
"meth",
|
|
59
|
+
"functor"
|
|
60
|
+
]), l = o(s), d = o(f);
|
|
61
|
+
function a(e, t) {
|
|
62
|
+
if (e.eatSpace())
|
|
63
|
+
return null;
|
|
64
|
+
if (e.match(/[{}]/))
|
|
65
|
+
return "bracket";
|
|
66
|
+
if (e.match("[]"))
|
|
67
|
+
return "keyword";
|
|
68
|
+
if (e.match(k) || e.match(m))
|
|
69
|
+
return "operator";
|
|
70
|
+
if (e.match(p))
|
|
71
|
+
return "atom";
|
|
72
|
+
var r = e.match(g);
|
|
73
|
+
if (r)
|
|
74
|
+
return t.doInCurrentLine ? t.doInCurrentLine = !1 : t.currentIndent++, r[0] == "proc" || r[0] == "fun" ? t.tokenize = b : r[0] == "class" ? t.tokenize = x : r[0] == "meth" && (t.tokenize = I), "keyword";
|
|
75
|
+
if (e.match(l) || e.match(z))
|
|
76
|
+
return "keyword";
|
|
77
|
+
if (e.match(d))
|
|
78
|
+
return t.currentIndent--, "keyword";
|
|
79
|
+
var n = e.next();
|
|
80
|
+
if (n == '"' || n == "'")
|
|
81
|
+
return t.tokenize = v(n), t.tokenize(e, t);
|
|
82
|
+
if (/[~\d]/.test(n)) {
|
|
83
|
+
if (n == "~")
|
|
84
|
+
if (/^[0-9]/.test(e.peek())) {
|
|
85
|
+
if (e.next() == "0" && e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
|
|
86
|
+
return "number";
|
|
87
|
+
} else return null;
|
|
88
|
+
return n == "0" && e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/) ? "number" : null;
|
|
89
|
+
}
|
|
90
|
+
return n == "%" ? (e.skipToEnd(), "comment") : n == "/" && e.eat("*") ? (t.tokenize = u, u(e, t)) : h.test(n) ? "operator" : (e.eatWhile(/\w/), "variable");
|
|
91
|
+
}
|
|
92
|
+
function x(e, t) {
|
|
93
|
+
return e.eatSpace() ? null : (e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/), t.tokenize = a, "type");
|
|
94
|
+
}
|
|
95
|
+
function I(e, t) {
|
|
96
|
+
return e.eatSpace() ? null : (e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/), t.tokenize = a, "def");
|
|
97
|
+
}
|
|
98
|
+
function b(e, t) {
|
|
99
|
+
return e.eatSpace() ? null : !t.hasPassedFirstStage && e.eat("{") ? (t.hasPassedFirstStage = !0, "bracket") : t.hasPassedFirstStage ? (e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/), t.hasPassedFirstStage = !1, t.tokenize = a, "def") : (t.tokenize = a, null);
|
|
100
|
+
}
|
|
101
|
+
function u(e, t) {
|
|
102
|
+
for (var r = !1, n; n = e.next(); ) {
|
|
103
|
+
if (n == "/" && r) {
|
|
104
|
+
t.tokenize = a;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
r = n == "*";
|
|
108
|
+
}
|
|
109
|
+
return "comment";
|
|
110
|
+
}
|
|
111
|
+
function v(e) {
|
|
112
|
+
return function(t, r) {
|
|
113
|
+
for (var n = !1, i, c = !1; (i = t.next()) != null; ) {
|
|
114
|
+
if (i == e && !n) {
|
|
115
|
+
c = !0;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
n = !n && i == "\\";
|
|
119
|
+
}
|
|
120
|
+
return (c || !n) && (r.tokenize = a), "string";
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function S() {
|
|
124
|
+
var e = s.concat(f);
|
|
125
|
+
return new RegExp("[\\[\\]]|(" + e.join("|") + ")$");
|
|
126
|
+
}
|
|
127
|
+
const w = {
|
|
128
|
+
name: "oz",
|
|
129
|
+
startState: function() {
|
|
130
|
+
return {
|
|
131
|
+
tokenize: a,
|
|
132
|
+
currentIndent: 0,
|
|
133
|
+
doInCurrentLine: !1,
|
|
134
|
+
hasPassedFirstStage: !1
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
token: function(e, t) {
|
|
138
|
+
return e.sol() && (t.doInCurrentLine = 0), t.tokenize(e, t);
|
|
139
|
+
},
|
|
140
|
+
indent: function(e, t, r) {
|
|
141
|
+
var n = t.replace(/^\s+|\s+$/g, "");
|
|
142
|
+
return n.match(d) || n.match(l) || n.match(/(\[])/) ? r.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * r.unit;
|
|
143
|
+
},
|
|
144
|
+
languageData: {
|
|
145
|
+
indentOnInut: S(),
|
|
146
|
+
commentTokens: { line: "%", block: { open: "/*", close: "*/" } }
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
export {
|
|
150
|
+
w as oz
|
|
151
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function u(e) {
|
|
2
|
+
for (var r = {}, t = e.split(" "), n = 0; n < t.length; ++n) r[t[n]] = !0;
|
|
3
|
+
return r;
|
|
4
|
+
}
|
|
5
|
+
var c = u(
|
|
6
|
+
"absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"
|
|
7
|
+
), f = { null: !0 }, o = /[+\-*&%=<>!?|\/]/;
|
|
8
|
+
function p(e, r) {
|
|
9
|
+
var t = e.next();
|
|
10
|
+
if (t == "#" && r.startOfLine)
|
|
11
|
+
return e.skipToEnd(), "meta";
|
|
12
|
+
if (t == '"' || t == "'")
|
|
13
|
+
return r.tokenize = d(t), r.tokenize(e, r);
|
|
14
|
+
if (t == "(" && e.eat("*"))
|
|
15
|
+
return r.tokenize = l, l(e, r);
|
|
16
|
+
if (t == "{")
|
|
17
|
+
return r.tokenize = s, s(e, r);
|
|
18
|
+
if (/[\[\]\(\),;\:\.]/.test(t))
|
|
19
|
+
return null;
|
|
20
|
+
if (/\d/.test(t))
|
|
21
|
+
return e.eatWhile(/[\w\.]/), "number";
|
|
22
|
+
if (t == "/" && e.eat("/"))
|
|
23
|
+
return e.skipToEnd(), "comment";
|
|
24
|
+
if (o.test(t))
|
|
25
|
+
return e.eatWhile(o), "operator";
|
|
26
|
+
e.eatWhile(/[\w\$_]/);
|
|
27
|
+
var n = e.current().toLowerCase();
|
|
28
|
+
return c.propertyIsEnumerable(n) ? "keyword" : f.propertyIsEnumerable(n) ? "atom" : "variable";
|
|
29
|
+
}
|
|
30
|
+
function d(e) {
|
|
31
|
+
return function(r, t) {
|
|
32
|
+
for (var n = !1, a, i = !1; (a = r.next()) != null; ) {
|
|
33
|
+
if (a == e && !n) {
|
|
34
|
+
i = !0;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
n = !n && a == "\\";
|
|
38
|
+
}
|
|
39
|
+
return (i || !n) && (t.tokenize = null), "string";
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function l(e, r) {
|
|
43
|
+
for (var t = !1, n; n = e.next(); ) {
|
|
44
|
+
if (n == ")" && t) {
|
|
45
|
+
r.tokenize = null;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
t = n == "*";
|
|
49
|
+
}
|
|
50
|
+
return "comment";
|
|
51
|
+
}
|
|
52
|
+
function s(e, r) {
|
|
53
|
+
for (var t; t = e.next(); )
|
|
54
|
+
if (t == "}") {
|
|
55
|
+
r.tokenize = null;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
return "comment";
|
|
59
|
+
}
|
|
60
|
+
const m = {
|
|
61
|
+
name: "pascal",
|
|
62
|
+
startState: function() {
|
|
63
|
+
return { tokenize: null };
|
|
64
|
+
},
|
|
65
|
+
token: function(e, r) {
|
|
66
|
+
if (e.eatSpace()) return null;
|
|
67
|
+
var t = (r.tokenize || p)(e, r);
|
|
68
|
+
return t;
|
|
69
|
+
},
|
|
70
|
+
languageData: {
|
|
71
|
+
indentOnInput: /^\s*[{}]$/,
|
|
72
|
+
commentTokens: { block: { open: "(*", close: "*)" } }
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
m as pascal
|
|
77
|
+
};
|