@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,54 @@
|
|
|
1
|
+
function t(O) {
|
|
2
|
+
for (var E = {}, T = O.split(" "), I = 0; I < T.length; ++I) E[T[I]] = !0;
|
|
3
|
+
return E;
|
|
4
|
+
}
|
|
5
|
+
var U = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ", a = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP", C = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ", e = t(U), r = t(a), L = t(C), A = /[*+\-%<>=&?:\/!|]/;
|
|
6
|
+
function n(O, E, T) {
|
|
7
|
+
return E.tokenize = T, T(O, E);
|
|
8
|
+
}
|
|
9
|
+
function G(O, E) {
|
|
10
|
+
for (var T = !1, I; I = O.next(); ) {
|
|
11
|
+
if (I == "/" && T) {
|
|
12
|
+
E.tokenize = R;
|
|
13
|
+
break;
|
|
14
|
+
}
|
|
15
|
+
T = I == "*";
|
|
16
|
+
}
|
|
17
|
+
return "comment";
|
|
18
|
+
}
|
|
19
|
+
function o(O) {
|
|
20
|
+
return function(E, T) {
|
|
21
|
+
for (var I = !1, N, S = !1; (N = E.next()) != null; ) {
|
|
22
|
+
if (N == O && !I) {
|
|
23
|
+
S = !0;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
I = !I && N == "\\";
|
|
27
|
+
}
|
|
28
|
+
return (S || !I) && (T.tokenize = R), "error";
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function R(O, E) {
|
|
32
|
+
var T = O.next();
|
|
33
|
+
return T == '"' || T == "'" ? n(O, E, o(T)) : /[\[\]{}\(\),;\.]/.test(T) ? null : /\d/.test(T) ? (O.eatWhile(/[\w\.]/), "number") : T == "/" ? O.eat("*") ? n(O, E, G) : (O.eatWhile(A), "operator") : T == "-" ? O.eat("-") ? (O.skipToEnd(), "comment") : (O.eatWhile(A), "operator") : A.test(T) ? (O.eatWhile(A), "operator") : (O.eatWhile(/[\w\$_]/), r && r.propertyIsEnumerable(O.current().toUpperCase()) && !O.eat(")") && !O.eat(".") ? "keyword" : e && e.propertyIsEnumerable(O.current().toUpperCase()) ? "builtin" : L && L.propertyIsEnumerable(O.current().toUpperCase()) ? "type" : "variable");
|
|
34
|
+
}
|
|
35
|
+
const M = {
|
|
36
|
+
name: "pig",
|
|
37
|
+
startState: function() {
|
|
38
|
+
return {
|
|
39
|
+
tokenize: R,
|
|
40
|
+
startOfLine: !0
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
token: function(O, E) {
|
|
44
|
+
if (O.eatSpace()) return null;
|
|
45
|
+
var T = E.tokenize(O, E);
|
|
46
|
+
return T;
|
|
47
|
+
},
|
|
48
|
+
languageData: {
|
|
49
|
+
autocomplete: (U + C + a).split(" ")
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
M as pig
|
|
54
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
function a(e, t) {
|
|
2
|
+
t = t || {};
|
|
3
|
+
for (var r = t.prefix !== void 0 ? t.prefix : "^", o = t.suffix !== void 0 ? t.suffix : "\\b", n = 0; n < e.length; n++)
|
|
4
|
+
e[n] instanceof RegExp ? e[n] = e[n].source : e[n] = e[n].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
5
|
+
return new RegExp(r + "(" + e.join("|") + ")" + o, "i");
|
|
6
|
+
}
|
|
7
|
+
var f = "(?=[^A-Za-z\\d\\-_]|$)", u = /[\w\-:]/, d = a([
|
|
8
|
+
/begin|break|catch|continue|data|default|do|dynamicparam/,
|
|
9
|
+
/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
|
|
10
|
+
/param|process|return|switch|throw|trap|try|until|where|while/
|
|
11
|
+
], { suffix: f }), v = /[\[\]{},;`\\\.]|@[({]/, b = a([
|
|
12
|
+
"f",
|
|
13
|
+
/b?not/,
|
|
14
|
+
/[ic]?split/,
|
|
15
|
+
"join",
|
|
16
|
+
/is(not)?/,
|
|
17
|
+
"as",
|
|
18
|
+
/[ic]?(eq|ne|[gl][te])/,
|
|
19
|
+
/[ic]?(not)?(like|match|contains)/,
|
|
20
|
+
/[ic]?replace/,
|
|
21
|
+
/b?(and|or|xor)/
|
|
22
|
+
], { prefix: "-" }), C = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/, k = a([b, C], { suffix: "" }), h = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i, x = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/, E = /[A-Z]:|%|\?/i, y = a([
|
|
23
|
+
/Add-(Computer|Content|History|Member|PSSnapin|Type)/,
|
|
24
|
+
/Checkpoint-Computer/,
|
|
25
|
+
/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,
|
|
26
|
+
/Compare-Object/,
|
|
27
|
+
/Complete-Transaction/,
|
|
28
|
+
/Connect-PSSession/,
|
|
29
|
+
/ConvertFrom-(Csv|Json|SecureString|StringData)/,
|
|
30
|
+
/Convert-Path/,
|
|
31
|
+
/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,
|
|
32
|
+
/Copy-Item(Property)?/,
|
|
33
|
+
/Debug-Process/,
|
|
34
|
+
/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
|
|
35
|
+
/Disconnect-PSSession/,
|
|
36
|
+
/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
|
|
37
|
+
/(Enter|Exit)-PSSession/,
|
|
38
|
+
/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,
|
|
39
|
+
/ForEach-Object/,
|
|
40
|
+
/Format-(Custom|List|Table|Wide)/,
|
|
41
|
+
new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),
|
|
42
|
+
/Group-Object/,
|
|
43
|
+
/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,
|
|
44
|
+
/ImportSystemModules/,
|
|
45
|
+
/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,
|
|
46
|
+
/Join-Path/,
|
|
47
|
+
/Limit-EventLog/,
|
|
48
|
+
/Measure-(Command|Object)/,
|
|
49
|
+
/Move-Item(Property)?/,
|
|
50
|
+
new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),
|
|
51
|
+
/Out-(Default|File|GridView|Host|Null|Printer|String)/,
|
|
52
|
+
/Pause/,
|
|
53
|
+
/(Pop|Push)-Location/,
|
|
54
|
+
/Read-Host/,
|
|
55
|
+
/Receive-(Job|PSSession)/,
|
|
56
|
+
/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,
|
|
57
|
+
/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,
|
|
58
|
+
/Rename-(Computer|Item(Property)?)/,
|
|
59
|
+
/Reset-ComputerMachinePassword/,
|
|
60
|
+
/Resolve-Path/,
|
|
61
|
+
/Restart-(Computer|Service)/,
|
|
62
|
+
/Restore-Computer/,
|
|
63
|
+
/Resume-(Job|Service)/,
|
|
64
|
+
/Save-Help/,
|
|
65
|
+
/Select-(Object|String|Xml)/,
|
|
66
|
+
/Send-MailMessage/,
|
|
67
|
+
new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),
|
|
68
|
+
/Show-(Command|ControlPanelItem|EventLog)/,
|
|
69
|
+
/Sort-Object/,
|
|
70
|
+
/Split-Path/,
|
|
71
|
+
/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,
|
|
72
|
+
/Stop-(Computer|Job|Process|Service|Transcript)/,
|
|
73
|
+
/Suspend-(Job|Service)/,
|
|
74
|
+
/TabExpansion2/,
|
|
75
|
+
/Tee-Object/,
|
|
76
|
+
/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,
|
|
77
|
+
/Trace-Command/,
|
|
78
|
+
/Unblock-File/,
|
|
79
|
+
/Undo-Transaction/,
|
|
80
|
+
/Unregister-(Event|PSSessionConfiguration)/,
|
|
81
|
+
/Update-(FormatData|Help|List|TypeData)/,
|
|
82
|
+
/Use-Transaction/,
|
|
83
|
+
/Wait-(Event|Job|Process)/,
|
|
84
|
+
/Where-Object/,
|
|
85
|
+
/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,
|
|
86
|
+
/cd|help|mkdir|more|oss|prompt/,
|
|
87
|
+
/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,
|
|
88
|
+
/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,
|
|
89
|
+
/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,
|
|
90
|
+
/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
|
|
91
|
+
/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,
|
|
92
|
+
/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/
|
|
93
|
+
], { prefix: "", suffix: "" }), w = a([
|
|
94
|
+
/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,
|
|
95
|
+
/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,
|
|
96
|
+
/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
|
|
97
|
+
/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,
|
|
98
|
+
/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,
|
|
99
|
+
/WarningPreference|WhatIfPreference/,
|
|
100
|
+
/Event|EventArgs|EventSubscriber|Sender/,
|
|
101
|
+
/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,
|
|
102
|
+
/true|false|null/
|
|
103
|
+
], { prefix: "\\$", suffix: "" }), M = a([E, y, w], { suffix: f }), p = {
|
|
104
|
+
keyword: d,
|
|
105
|
+
number: h,
|
|
106
|
+
operator: k,
|
|
107
|
+
builtin: M,
|
|
108
|
+
punctuation: v,
|
|
109
|
+
variable: x
|
|
110
|
+
};
|
|
111
|
+
function i(e, t) {
|
|
112
|
+
var r = t.returnStack[t.returnStack.length - 1];
|
|
113
|
+
if (r && r.shouldReturnFrom(t))
|
|
114
|
+
return t.tokenize = r.tokenize, t.returnStack.pop(), t.tokenize(e, t);
|
|
115
|
+
if (e.eatSpace())
|
|
116
|
+
return null;
|
|
117
|
+
if (e.eat("("))
|
|
118
|
+
return t.bracketNesting += 1, "punctuation";
|
|
119
|
+
if (e.eat(")"))
|
|
120
|
+
return t.bracketNesting -= 1, "punctuation";
|
|
121
|
+
for (var o in p)
|
|
122
|
+
if (e.match(p[o]))
|
|
123
|
+
return o;
|
|
124
|
+
var n = e.next();
|
|
125
|
+
if (n === "'")
|
|
126
|
+
return R(e, t);
|
|
127
|
+
if (n === "$")
|
|
128
|
+
return c(e, t);
|
|
129
|
+
if (n === '"')
|
|
130
|
+
return P(e, t);
|
|
131
|
+
if (n === "<" && e.eat("#"))
|
|
132
|
+
return t.tokenize = m, m(e, t);
|
|
133
|
+
if (n === "#")
|
|
134
|
+
return e.skipToEnd(), "comment";
|
|
135
|
+
if (n === "@") {
|
|
136
|
+
var l = e.eat(/["']/);
|
|
137
|
+
if (l && e.eol())
|
|
138
|
+
return t.tokenize = s, t.startQuote = l[0], s(e, t);
|
|
139
|
+
if (e.eol())
|
|
140
|
+
return "error";
|
|
141
|
+
if (e.peek().match(/[({]/))
|
|
142
|
+
return "punctuation";
|
|
143
|
+
if (e.peek().match(u))
|
|
144
|
+
return c(e, t);
|
|
145
|
+
}
|
|
146
|
+
return "error";
|
|
147
|
+
}
|
|
148
|
+
function R(e, t) {
|
|
149
|
+
for (var r; (r = e.peek()) != null; )
|
|
150
|
+
if (e.next(), r === "'" && !e.eat("'"))
|
|
151
|
+
return t.tokenize = i, "string";
|
|
152
|
+
return "error";
|
|
153
|
+
}
|
|
154
|
+
function P(e, t) {
|
|
155
|
+
for (var r; (r = e.peek()) != null; ) {
|
|
156
|
+
if (r === "$")
|
|
157
|
+
return t.tokenize = z, "string";
|
|
158
|
+
if (e.next(), r === "`") {
|
|
159
|
+
e.next();
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (r === '"' && !e.eat('"'))
|
|
163
|
+
return t.tokenize = i, "string";
|
|
164
|
+
}
|
|
165
|
+
return "error";
|
|
166
|
+
}
|
|
167
|
+
function z(e, t) {
|
|
168
|
+
return g(e, t, P);
|
|
169
|
+
}
|
|
170
|
+
function T(e, t) {
|
|
171
|
+
return t.tokenize = s, t.startQuote = '"', s(e, t);
|
|
172
|
+
}
|
|
173
|
+
function I(e, t) {
|
|
174
|
+
return g(e, t, T);
|
|
175
|
+
}
|
|
176
|
+
function g(e, t, r) {
|
|
177
|
+
if (e.match("$(")) {
|
|
178
|
+
var o = t.bracketNesting;
|
|
179
|
+
return t.returnStack.push({
|
|
180
|
+
/*jshint loopfunc:true */
|
|
181
|
+
shouldReturnFrom: function(n) {
|
|
182
|
+
return n.bracketNesting === o;
|
|
183
|
+
},
|
|
184
|
+
tokenize: r
|
|
185
|
+
}), t.tokenize = i, t.bracketNesting += 1, "punctuation";
|
|
186
|
+
} else
|
|
187
|
+
return e.next(), t.returnStack.push({
|
|
188
|
+
shouldReturnFrom: function() {
|
|
189
|
+
return !0;
|
|
190
|
+
},
|
|
191
|
+
tokenize: r
|
|
192
|
+
}), t.tokenize = c, t.tokenize(e, t);
|
|
193
|
+
}
|
|
194
|
+
function m(e, t) {
|
|
195
|
+
for (var r = !1, o; (o = e.next()) != null; ) {
|
|
196
|
+
if (r && o == ">") {
|
|
197
|
+
t.tokenize = i;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
r = o === "#";
|
|
201
|
+
}
|
|
202
|
+
return "comment";
|
|
203
|
+
}
|
|
204
|
+
function c(e, t) {
|
|
205
|
+
var r = e.peek();
|
|
206
|
+
return e.eat("{") ? (t.tokenize = S, S(e, t)) : r != null && r.match(u) ? (e.eatWhile(u), t.tokenize = i, "variable") : (t.tokenize = i, "error");
|
|
207
|
+
}
|
|
208
|
+
function S(e, t) {
|
|
209
|
+
for (var r; (r = e.next()) != null; )
|
|
210
|
+
if (r === "}") {
|
|
211
|
+
t.tokenize = i;
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
return "variable";
|
|
215
|
+
}
|
|
216
|
+
function s(e, t) {
|
|
217
|
+
var r = t.startQuote;
|
|
218
|
+
if (e.sol() && e.match(new RegExp(r + "@")))
|
|
219
|
+
t.tokenize = i;
|
|
220
|
+
else if (r === '"')
|
|
221
|
+
for (; !e.eol(); ) {
|
|
222
|
+
var o = e.peek();
|
|
223
|
+
if (o === "$")
|
|
224
|
+
return t.tokenize = I, "string";
|
|
225
|
+
e.next(), o === "`" && e.next();
|
|
226
|
+
}
|
|
227
|
+
else
|
|
228
|
+
e.skipToEnd();
|
|
229
|
+
return "string";
|
|
230
|
+
}
|
|
231
|
+
const D = {
|
|
232
|
+
name: "powershell",
|
|
233
|
+
startState: function() {
|
|
234
|
+
return {
|
|
235
|
+
returnStack: [],
|
|
236
|
+
bracketNesting: 0,
|
|
237
|
+
tokenize: i
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
token: function(e, t) {
|
|
241
|
+
return t.tokenize(e, t);
|
|
242
|
+
},
|
|
243
|
+
languageData: {
|
|
244
|
+
commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
export {
|
|
248
|
+
D as powerShell
|
|
249
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
name: "properties",
|
|
3
|
+
token: function(e, t) {
|
|
4
|
+
var o = e.sol() || t.afterSection, i = e.eol();
|
|
5
|
+
if (t.afterSection = !1, o && (t.nextMultiline ? (t.inMultiline = !0, t.nextMultiline = !1) : t.position = "def"), i && !t.nextMultiline && (t.inMultiline = !1, t.position = "def"), o)
|
|
6
|
+
for (; e.eatSpace(); )
|
|
7
|
+
;
|
|
8
|
+
var n = e.next();
|
|
9
|
+
return o && (n === "#" || n === "!" || n === ";") ? (t.position = "comment", e.skipToEnd(), "comment") : o && n === "[" ? (t.afterSection = !0, e.skipTo("]"), e.eat("]"), "header") : n === "=" || n === ":" ? (t.position = "quote", null) : (n === "\\" && t.position === "quote" && e.eol() && (t.nextMultiline = !0), t.position);
|
|
10
|
+
},
|
|
11
|
+
startState: function() {
|
|
12
|
+
return {
|
|
13
|
+
position: "def",
|
|
14
|
+
// Current position, "def", "quote" or "comment"
|
|
15
|
+
nextMultiline: !1,
|
|
16
|
+
// Is the next line multiline value
|
|
17
|
+
inMultiline: !1,
|
|
18
|
+
// Is the current line a multiline value
|
|
19
|
+
afterSection: !1
|
|
20
|
+
// Did we just open a section
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
l as properties
|
|
26
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
function n(t) {
|
|
2
|
+
return new RegExp("^((" + t.join(")|(") + "))\\b", "i");
|
|
3
|
+
}
|
|
4
|
+
var e = [
|
|
5
|
+
"package",
|
|
6
|
+
"message",
|
|
7
|
+
"import",
|
|
8
|
+
"syntax",
|
|
9
|
+
"required",
|
|
10
|
+
"optional",
|
|
11
|
+
"repeated",
|
|
12
|
+
"reserved",
|
|
13
|
+
"default",
|
|
14
|
+
"extensions",
|
|
15
|
+
"packed",
|
|
16
|
+
"bool",
|
|
17
|
+
"bytes",
|
|
18
|
+
"double",
|
|
19
|
+
"enum",
|
|
20
|
+
"float",
|
|
21
|
+
"string",
|
|
22
|
+
"int32",
|
|
23
|
+
"int64",
|
|
24
|
+
"uint32",
|
|
25
|
+
"uint64",
|
|
26
|
+
"sint32",
|
|
27
|
+
"sint64",
|
|
28
|
+
"fixed32",
|
|
29
|
+
"fixed64",
|
|
30
|
+
"sfixed32",
|
|
31
|
+
"sfixed64",
|
|
32
|
+
"option",
|
|
33
|
+
"service",
|
|
34
|
+
"rpc",
|
|
35
|
+
"returns"
|
|
36
|
+
], a = n(e), i = new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");
|
|
37
|
+
function o(t) {
|
|
38
|
+
return t.eatSpace() ? null : t.match("//") ? (t.skipToEnd(), "comment") : t.match(/^[0-9\.+-]/, !1) && (t.match(/^[+-]?0x[0-9a-fA-F]+/) || t.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/) || t.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) ? "number" : t.match(/^"([^"]|(""))*"/) || t.match(/^'([^']|(''))*'/) ? "string" : t.match(a) ? "keyword" : t.match(i) ? "variable" : (t.next(), null);
|
|
39
|
+
}
|
|
40
|
+
const r = {
|
|
41
|
+
name: "protobuf",
|
|
42
|
+
token: o,
|
|
43
|
+
languageData: {
|
|
44
|
+
autocomplete: e
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
r as protobuf
|
|
49
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { javascript as a } from "./javascript-DOuB9oqA-BxiygWgm.js";
|
|
2
|
+
var u = {
|
|
3
|
+
"{": "}",
|
|
4
|
+
"(": ")",
|
|
5
|
+
"[": "]"
|
|
6
|
+
};
|
|
7
|
+
function l(e) {
|
|
8
|
+
if (typeof e != "object") return e;
|
|
9
|
+
let t = {};
|
|
10
|
+
for (let r in e) {
|
|
11
|
+
let i = e[r];
|
|
12
|
+
t[r] = i instanceof Array ? i.slice() : i;
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
class n {
|
|
17
|
+
constructor(t) {
|
|
18
|
+
this.indentUnit = t, this.javaScriptLine = !1, this.javaScriptLineExcludesColon = !1, this.javaScriptArguments = !1, this.javaScriptArgumentsDepth = 0, this.isInterpolating = !1, this.interpolationNesting = 0, this.jsState = a.startState(t), this.restOfLine = "", this.isIncludeFiltered = !1, this.isEach = !1, this.lastTag = "", this.isAttrs = !1, this.attrsNest = [], this.inAttributeName = !0, this.attributeIsType = !1, this.attrValue = "", this.indentOf = 1 / 0, this.indentToken = "";
|
|
19
|
+
}
|
|
20
|
+
copy() {
|
|
21
|
+
var t = new n(this.indentUnit);
|
|
22
|
+
return t.javaScriptLine = this.javaScriptLine, t.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon, t.javaScriptArguments = this.javaScriptArguments, t.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth, t.isInterpolating = this.isInterpolating, t.interpolationNesting = this.interpolationNesting, t.jsState = (a.copyState || l)(this.jsState), t.restOfLine = this.restOfLine, t.isIncludeFiltered = this.isIncludeFiltered, t.isEach = this.isEach, t.lastTag = this.lastTag, t.isAttrs = this.isAttrs, t.attrsNest = this.attrsNest.slice(), t.inAttributeName = this.inAttributeName, t.attributeIsType = this.attributeIsType, t.attrValue = this.attrValue, t.indentOf = this.indentOf, t.indentToken = this.indentToken, t;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function p(e, t) {
|
|
26
|
+
if (e.sol() && (t.javaScriptLine = !1, t.javaScriptLineExcludesColon = !1), t.javaScriptLine) {
|
|
27
|
+
if (t.javaScriptLineExcludesColon && e.peek() === ":") {
|
|
28
|
+
t.javaScriptLine = !1, t.javaScriptLineExcludesColon = !1;
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
var r = a.token(e, t.jsState);
|
|
32
|
+
return e.eol() && (t.javaScriptLine = !1), r || !0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function h(e, t) {
|
|
36
|
+
if (t.javaScriptArguments) {
|
|
37
|
+
if (t.javaScriptArgumentsDepth === 0 && e.peek() !== "(") {
|
|
38
|
+
t.javaScriptArguments = !1;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (e.peek() === "(" ? t.javaScriptArgumentsDepth++ : e.peek() === ")" && t.javaScriptArgumentsDepth--, t.javaScriptArgumentsDepth === 0) {
|
|
42
|
+
t.javaScriptArguments = !1;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
var r = a.token(e, t.jsState);
|
|
46
|
+
return r || !0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function m(e) {
|
|
50
|
+
if (e.match(/^yield\b/))
|
|
51
|
+
return "keyword";
|
|
52
|
+
}
|
|
53
|
+
function d(e) {
|
|
54
|
+
if (e.match(/^(?:doctype) *([^\n]+)?/)) return "meta";
|
|
55
|
+
}
|
|
56
|
+
function c(e, t) {
|
|
57
|
+
if (e.match("#{"))
|
|
58
|
+
return t.isInterpolating = !0, t.interpolationNesting = 0, "punctuation";
|
|
59
|
+
}
|
|
60
|
+
function v(e, t) {
|
|
61
|
+
if (t.isInterpolating) {
|
|
62
|
+
if (e.peek() === "}") {
|
|
63
|
+
if (t.interpolationNesting--, t.interpolationNesting < 0)
|
|
64
|
+
return e.next(), t.isInterpolating = !1, "punctuation";
|
|
65
|
+
} else e.peek() === "{" && t.interpolationNesting++;
|
|
66
|
+
return a.token(e, t.jsState) || !0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function S(e, t) {
|
|
70
|
+
if (e.match(/^case\b/))
|
|
71
|
+
return t.javaScriptLine = !0, "keyword";
|
|
72
|
+
}
|
|
73
|
+
function j(e, t) {
|
|
74
|
+
if (e.match(/^when\b/))
|
|
75
|
+
return t.javaScriptLine = !0, t.javaScriptLineExcludesColon = !0, "keyword";
|
|
76
|
+
}
|
|
77
|
+
function g(e) {
|
|
78
|
+
if (e.match(/^default\b/))
|
|
79
|
+
return "keyword";
|
|
80
|
+
}
|
|
81
|
+
function k(e, t) {
|
|
82
|
+
if (e.match(/^extends?\b/))
|
|
83
|
+
return t.restOfLine = "string", "keyword";
|
|
84
|
+
}
|
|
85
|
+
function b(e, t) {
|
|
86
|
+
if (e.match(/^append\b/))
|
|
87
|
+
return t.restOfLine = "variable", "keyword";
|
|
88
|
+
}
|
|
89
|
+
function A(e, t) {
|
|
90
|
+
if (e.match(/^prepend\b/))
|
|
91
|
+
return t.restOfLine = "variable", "keyword";
|
|
92
|
+
}
|
|
93
|
+
function L(e, t) {
|
|
94
|
+
if (e.match(/^block\b *(?:(prepend|append)\b)?/))
|
|
95
|
+
return t.restOfLine = "variable", "keyword";
|
|
96
|
+
}
|
|
97
|
+
function y(e, t) {
|
|
98
|
+
if (e.match(/^include\b/))
|
|
99
|
+
return t.restOfLine = "string", "keyword";
|
|
100
|
+
}
|
|
101
|
+
function w(e, t) {
|
|
102
|
+
if (e.match(/^include:([a-zA-Z0-9\-]+)/, !1) && e.match("include"))
|
|
103
|
+
return t.isIncludeFiltered = !0, "keyword";
|
|
104
|
+
}
|
|
105
|
+
function N(e, t) {
|
|
106
|
+
if (t.isIncludeFiltered) {
|
|
107
|
+
var r = f(e, t);
|
|
108
|
+
return t.isIncludeFiltered = !1, t.restOfLine = "string", r;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function x(e, t) {
|
|
112
|
+
if (e.match(/^mixin\b/))
|
|
113
|
+
return t.javaScriptLine = !0, "keyword";
|
|
114
|
+
}
|
|
115
|
+
function T(e, t) {
|
|
116
|
+
if (e.match(/^\+([-\w]+)/))
|
|
117
|
+
return e.match(/^\( *[-\w]+ *=/, !1) || (t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0), "variable";
|
|
118
|
+
if (e.match("+#{", !1))
|
|
119
|
+
return e.next(), t.mixinCallAfter = !0, c(e, t);
|
|
120
|
+
}
|
|
121
|
+
function I(e, t) {
|
|
122
|
+
if (t.mixinCallAfter)
|
|
123
|
+
return t.mixinCallAfter = !1, e.match(/^\( *[-\w]+ *=/, !1) || (t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0), !0;
|
|
124
|
+
}
|
|
125
|
+
function O(e, t) {
|
|
126
|
+
if (e.match(/^(if|unless|else if|else)\b/))
|
|
127
|
+
return t.javaScriptLine = !0, "keyword";
|
|
128
|
+
}
|
|
129
|
+
function E(e, t) {
|
|
130
|
+
if (e.match(/^(- *)?(each|for)\b/))
|
|
131
|
+
return t.isEach = !0, "keyword";
|
|
132
|
+
}
|
|
133
|
+
function C(e, t) {
|
|
134
|
+
if (t.isEach) {
|
|
135
|
+
if (e.match(/^ in\b/))
|
|
136
|
+
return t.javaScriptLine = !0, t.isEach = !1, "keyword";
|
|
137
|
+
if (e.sol() || e.eol())
|
|
138
|
+
t.isEach = !1;
|
|
139
|
+
else if (e.next()) {
|
|
140
|
+
for (; !e.match(/^ in\b/, !1) && e.next(); )
|
|
141
|
+
;
|
|
142
|
+
return "variable";
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function D(e, t) {
|
|
147
|
+
if (e.match(/^while\b/))
|
|
148
|
+
return t.javaScriptLine = !0, "keyword";
|
|
149
|
+
}
|
|
150
|
+
function F(e, t) {
|
|
151
|
+
var r;
|
|
152
|
+
if (r = e.match(/^(\w(?:[-:\w]*\w)?)\/?/))
|
|
153
|
+
return t.lastTag = r[1].toLowerCase(), "tag";
|
|
154
|
+
}
|
|
155
|
+
function f(e, t) {
|
|
156
|
+
if (e.match(/^:([\w\-]+)/))
|
|
157
|
+
return s(e, t), "atom";
|
|
158
|
+
}
|
|
159
|
+
function V(e, t) {
|
|
160
|
+
if (e.match(/^(!?=|-)/))
|
|
161
|
+
return t.javaScriptLine = !0, "punctuation";
|
|
162
|
+
}
|
|
163
|
+
function U(e) {
|
|
164
|
+
if (e.match(/^#([\w-]+)/))
|
|
165
|
+
return "builtin";
|
|
166
|
+
}
|
|
167
|
+
function z(e) {
|
|
168
|
+
if (e.match(/^\.([\w-]+)/))
|
|
169
|
+
return "className";
|
|
170
|
+
}
|
|
171
|
+
function Z(e, t) {
|
|
172
|
+
if (e.peek() == "(")
|
|
173
|
+
return e.next(), t.isAttrs = !0, t.attrsNest = [], t.inAttributeName = !0, t.attrValue = "", t.attributeIsType = !1, "punctuation";
|
|
174
|
+
}
|
|
175
|
+
function o(e, t) {
|
|
176
|
+
if (t.isAttrs) {
|
|
177
|
+
if (u[e.peek()] && t.attrsNest.push(u[e.peek()]), t.attrsNest[t.attrsNest.length - 1] === e.peek())
|
|
178
|
+
t.attrsNest.pop();
|
|
179
|
+
else if (e.eat(")"))
|
|
180
|
+
return t.isAttrs = !1, "punctuation";
|
|
181
|
+
if (t.inAttributeName && e.match(/^[^=,\)!]+/))
|
|
182
|
+
return (e.peek() === "=" || e.peek() === "!") && (t.inAttributeName = !1, t.jsState = a.startState(2), t.lastTag === "script" && e.current().trim().toLowerCase() === "type" ? t.attributeIsType = !0 : t.attributeIsType = !1), "attribute";
|
|
183
|
+
var r = a.token(e, t.jsState);
|
|
184
|
+
if (t.attrsNest.length === 0 && (r === "string" || r === "variable" || r === "keyword"))
|
|
185
|
+
try {
|
|
186
|
+
return Function("", "var x " + t.attrValue.replace(/,\s*$/, "").replace(/^!/, "")), t.inAttributeName = !0, t.attrValue = "", e.backUp(e.current().length), o(e, t);
|
|
187
|
+
} catch {
|
|
188
|
+
}
|
|
189
|
+
return t.attrValue += e.current(), r || !0;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function $(e, t) {
|
|
193
|
+
if (e.match(/^&attributes\b/))
|
|
194
|
+
return t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0, "keyword";
|
|
195
|
+
}
|
|
196
|
+
function q(e) {
|
|
197
|
+
if (e.sol() && e.eatSpace())
|
|
198
|
+
return "indent";
|
|
199
|
+
}
|
|
200
|
+
function B(e, t) {
|
|
201
|
+
if (e.match(/^ *\/\/(-)?([^\n]*)/))
|
|
202
|
+
return t.indentOf = e.indentation(), t.indentToken = "comment", "comment";
|
|
203
|
+
}
|
|
204
|
+
function G(e) {
|
|
205
|
+
if (e.match(/^: */))
|
|
206
|
+
return "colon";
|
|
207
|
+
}
|
|
208
|
+
function H(e, t) {
|
|
209
|
+
if (e.match(/^(?:\| ?| )([^\n]+)/))
|
|
210
|
+
return "string";
|
|
211
|
+
if (e.match(/^(<[^\n]*)/, !1))
|
|
212
|
+
return s(e, t), e.skipToEnd(), t.indentToken;
|
|
213
|
+
}
|
|
214
|
+
function J(e, t) {
|
|
215
|
+
if (e.eat("."))
|
|
216
|
+
return s(e, t), "dot";
|
|
217
|
+
}
|
|
218
|
+
function K(e) {
|
|
219
|
+
return e.next(), null;
|
|
220
|
+
}
|
|
221
|
+
function s(e, t) {
|
|
222
|
+
t.indentOf = e.indentation(), t.indentToken = "string";
|
|
223
|
+
}
|
|
224
|
+
function M(e, t) {
|
|
225
|
+
if (e.sol() && (t.restOfLine = ""), t.restOfLine) {
|
|
226
|
+
e.skipToEnd();
|
|
227
|
+
var r = t.restOfLine;
|
|
228
|
+
return t.restOfLine = "", r;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function P(e) {
|
|
232
|
+
return new n(e);
|
|
233
|
+
}
|
|
234
|
+
function Q(e) {
|
|
235
|
+
return e.copy();
|
|
236
|
+
}
|
|
237
|
+
function R(e, t) {
|
|
238
|
+
var r = M(e, t) || v(e, t) || N(e, t) || C(e, t) || o(e, t) || p(e, t) || h(e, t) || I(e, t) || m(e) || d(e) || c(e, t) || S(e, t) || j(e, t) || g(e) || k(e, t) || b(e, t) || A(e, t) || L(e, t) || y(e, t) || w(e, t) || x(e, t) || T(e, t) || O(e, t) || E(e, t) || D(e, t) || F(e, t) || f(e, t) || V(e, t) || U(e) || z(e) || Z(e, t) || $(e, t) || q(e) || H(e, t) || B(e, t) || G(e) || J(e, t) || K(e);
|
|
239
|
+
return r === !0 ? null : r;
|
|
240
|
+
}
|
|
241
|
+
const W = {
|
|
242
|
+
startState: P,
|
|
243
|
+
copyState: Q,
|
|
244
|
+
token: R
|
|
245
|
+
};
|
|
246
|
+
export {
|
|
247
|
+
W as pug
|
|
248
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var r = {}, u = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;
|
|
2
|
+
function o(e, t) {
|
|
3
|
+
for (var a = t.split(" "), n = 0; n < a.length; n++)
|
|
4
|
+
r[a[n]] = e;
|
|
5
|
+
}
|
|
6
|
+
o("keyword", "class define site node include import inherits");
|
|
7
|
+
o("keyword", "case if else in and elsif default or");
|
|
8
|
+
o("atom", "false true running present absent file directory undef");
|
|
9
|
+
o("builtin", "action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");
|
|
10
|
+
function c(e, t) {
|
|
11
|
+
for (var a, n, s = !1; !e.eol() && (a = e.next()) != t.pending; ) {
|
|
12
|
+
if (a === "$" && n != "\\" && t.pending == '"') {
|
|
13
|
+
s = !0;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
n = a;
|
|
17
|
+
}
|
|
18
|
+
return s && e.backUp(1), a == t.pending ? t.continueString = !1 : t.continueString = !0, "string";
|
|
19
|
+
}
|
|
20
|
+
function f(e, t) {
|
|
21
|
+
var a = e.match(/[\w]+/, !1), n = e.match(/(\s+)?\w+\s+=>.*/, !1), s = e.match(/(\s+)?[\w:_]+(\s+)?{/, !1), l = e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, !1), i = e.next();
|
|
22
|
+
if (i === "$")
|
|
23
|
+
return e.match(u) ? t.continueString ? "variableName.special" : "variable" : "error";
|
|
24
|
+
if (t.continueString)
|
|
25
|
+
return e.backUp(1), c(e, t);
|
|
26
|
+
if (t.inDefinition) {
|
|
27
|
+
if (e.match(/(\s+)?[\w:_]+(\s+)?/))
|
|
28
|
+
return "def";
|
|
29
|
+
e.match(/\s+{/), t.inDefinition = !1;
|
|
30
|
+
}
|
|
31
|
+
return t.inInclude ? (e.match(/(\s+)?\S+(\s+)?/), t.inInclude = !1, "def") : e.match(/(\s+)?\w+\(/) ? (e.backUp(1), "def") : n ? (e.match(/(\s+)?\w+/), "tag") : a && r.hasOwnProperty(a) ? (e.backUp(1), e.match(/[\w]+/), e.match(/\s+\S+\s+{/, !1) && (t.inDefinition = !0), a == "include" && (t.inInclude = !0), r[a]) : /(^|\s+)[A-Z][\w:_]+/.test(a) ? (e.backUp(1), e.match(/(^|\s+)[A-Z][\w:_]+/), "def") : s ? (e.match(/(\s+)?[\w:_]+/), "def") : l ? (e.match(/(\s+)?[@]{1,2}/), "atom") : i == "#" ? (e.skipToEnd(), "comment") : i == "'" || i == '"' ? (t.pending = i, c(e, t)) : i == "{" || i == "}" ? "bracket" : i == "/" ? (e.match(/^[^\/]*\//), "string.special") : i.match(/[0-9]/) ? (e.eatWhile(/[0-9]+/), "number") : i == "=" ? (e.peek() == ">" && e.next(), "operator") : (e.eatWhile(/[\w-]/), null);
|
|
32
|
+
}
|
|
33
|
+
const p = {
|
|
34
|
+
name: "puppet",
|
|
35
|
+
startState: function() {
|
|
36
|
+
var e = {};
|
|
37
|
+
return e.inDefinition = !1, e.inInclude = !1, e.continueString = !1, e.pending = !1, e;
|
|
38
|
+
},
|
|
39
|
+
token: function(e, t) {
|
|
40
|
+
return e.eatSpace() ? null : f(e, t);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
p as puppet
|
|
45
|
+
};
|