@milkdown/crepe 7.3.3
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/LICENSE +21 -0
- package/README.md +11 -0
- package/lib/apl-p0IPP13W.js +76 -0
- package/lib/asciiarmor-lJsBxlJJ.js +34 -0
- package/lib/asn1-Q9v1zIy5.js +102 -0
- package/lib/asterisk-foNkeTjy.js +273 -0
- package/lib/brainfuck-0XqyXpNS.js +35 -0
- package/lib/clike-ak6Z6Yhe.js +639 -0
- package/lib/clojure-iYO8U8Sg.js +810 -0
- package/lib/clsx-7d8NmkQq.js +21 -0
- package/lib/cmake-SVzjkxV_.js +28 -0
- package/lib/cobol-APHEnAOX.js +74 -0
- package/lib/coffeescript-KqQa0SYG.js +182 -0
- package/lib/commonlisp-bwqNqR5V.js +79 -0
- package/lib/core/crepe.d.ts +21 -0
- package/lib/core/crepe.d.ts.map +1 -0
- package/lib/core/index.d.ts +3 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/slice.d.ts +12 -0
- package/lib/core/slice.d.ts.map +1 -0
- package/lib/crystal-BViWuDpA.js +217 -0
- package/lib/css-KHXHXfXg.js +1572 -0
- package/lib/cypher-XpTt4zQ3.js +69 -0
- package/lib/d-fLig6yqY.js +139 -0
- package/lib/diff-WoKGLpy6.js +18 -0
- package/lib/dockerfile-u6f6Vw2s.js +194 -0
- package/lib/dtd-SIJRUW6K.js +91 -0
- package/lib/dylan-4HCLhpWP.js +238 -0
- package/lib/ebnf-h_0lged5.js +77 -0
- package/lib/ecl-Lf4FF0lf.js +133 -0
- package/lib/eiffel-qlw8KUyf.js +112 -0
- package/lib/elm-QRnB3zXs.js +108 -0
- package/lib/erlang-fyVKb7eK.js +488 -0
- package/lib/factor-BEeN4upY.js +65 -0
- package/lib/fcl-lRek3hEb.js +106 -0
- package/lib/feature/block-edit/handle/component.d.ts +9 -0
- package/lib/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/feature/block-edit/handle/index.d.ts +12 -0
- package/lib/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/feature/block-edit/index.d.ts +3 -0
- package/lib/feature/block-edit/index.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/component.d.ts +14 -0
- package/lib/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/config.d.ts +21 -0
- package/lib/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/icons.d.ts +14 -0
- package/lib/feature/block-edit/menu/icons.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/index.d.ts +9 -0
- package/lib/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/feature/code-mirror/index.d.ts +3 -0
- package/lib/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/feature/gap-cursor/index.d.ts +3 -0
- package/lib/feature/gap-cursor/index.d.ts.map +1 -0
- package/lib/feature/image-block/index.d.ts +3 -0
- package/lib/feature/image-block/index.d.ts.map +1 -0
- package/lib/feature/index.d.ts +18 -0
- package/lib/feature/index.d.ts.map +1 -0
- package/lib/feature/link-tooltip/consts.d.ts +5 -0
- package/lib/feature/link-tooltip/consts.d.ts.map +1 -0
- package/lib/feature/link-tooltip/index.d.ts +3 -0
- package/lib/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/feature/list-item/consts.d.ts +2 -0
- package/lib/feature/list-item/consts.d.ts.map +1 -0
- package/lib/feature/list-item/index.d.ts +3 -0
- package/lib/feature/list-item/index.d.ts.map +1 -0
- package/lib/feature/placeholder/index.d.ts +10 -0
- package/lib/feature/placeholder/index.d.ts.map +1 -0
- package/lib/feature/shared.d.ts +3 -0
- package/lib/feature/shared.d.ts.map +1 -0
- package/lib/feature/toolbar/component.d.ts +13 -0
- package/lib/feature/toolbar/component.d.ts.map +1 -0
- package/lib/feature/toolbar/consts.d.ts +5 -0
- package/lib/feature/toolbar/consts.d.ts.map +1 -0
- package/lib/feature/toolbar/index.d.ts +3 -0
- package/lib/feature/toolbar/index.d.ts.map +1 -0
- package/lib/forth-ua2bRd8T.js +60 -0
- package/lib/fortran-WnF7znuN.js +443 -0
- package/lib/gas-wowve1o7.js +183 -0
- package/lib/gherkin-m7GIChu3.js +34 -0
- package/lib/go-th443Dhb.js +158 -0
- package/lib/groovy-tR4RiZnc.js +161 -0
- package/lib/haskell-jxVBofv5.js +375 -0
- package/lib/haxe-kWPI2tq3.js +390 -0
- package/lib/hooks-82sqkbtE.js +21 -0
- package/lib/http-3GIFWUlG.js +45 -0
- package/lib/icons-HYkfuR-O.js +50 -0
- package/lib/idl-PvpMZg-l.js +947 -0
- package/lib/index-0RbcZMbq.js +8 -0
- package/lib/index-4afXjFMY.js +517 -0
- package/lib/index-7MeyepDG.js +78 -0
- package/lib/index-7QgQq3x3.js +551 -0
- package/lib/index-7pgP6qYs.js +107 -0
- package/lib/index-8DvtgRVa.js +19511 -0
- package/lib/index-8Gg-jEP4.js +288 -0
- package/lib/index-8S8qcncB.js +507 -0
- package/lib/index-9A_GmGh4.js +1039 -0
- package/lib/index-EJJfYLzA.js +928 -0
- package/lib/index-Eg39w5kL.js +984 -0
- package/lib/index-FIk_7oPb.js +168 -0
- package/lib/index-LlbrXb_n.js +368 -0
- package/lib/index-MovKtgMG.js +121 -0
- package/lib/index-N9GtIS4X.js +64 -0
- package/lib/index-Pwn25-kf.js +8 -0
- package/lib/index-SdFSDosa.js +1295 -0
- package/lib/index-W5Th22-Z.js +1744 -0
- package/lib/index-XiXSFLmI.js +20975 -0
- package/lib/index-bknOViGv.js +47 -0
- package/lib/index-bkuIUPFS.js +275 -0
- package/lib/index-jPA8J9Eo.js +8 -0
- package/lib/index-lsG76a9s.js +552 -0
- package/lib/index-oTRzPo3B.js +146 -0
- package/lib/index-rrf6_6DC.js +317 -0
- package/lib/index-vJbZIHYF.js +81 -0
- package/lib/index-vPRh55CO.js +137 -0
- package/lib/index-vxy63hib.js +323 -0
- package/lib/index-wn1_LgCS.js +99 -0
- package/lib/index-xHADmDT3.js +12 -0
- package/lib/index-yt2EpMtv.js +141 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.es.js +7 -0
- package/lib/javascript-8ZHqHagw.js +758 -0
- package/lib/jinja2-vsOFe0qD.js +154 -0
- package/lib/julia-dlp_pbN1.js +241 -0
- package/lib/livescript-Gf5R-LT6.js +273 -0
- package/lib/lua-c5Y_JsBp.js +221 -0
- package/lib/mathematica-iiGTGmUs.js +35 -0
- package/lib/mbox-ZJh86H8B.js +78 -0
- package/lib/meta-tAGyVRPE.js +511 -0
- package/lib/mirc-i0qkCa0y.js +73 -0
- package/lib/mllike-Dy551fZW.js +275 -0
- package/lib/modelica-n6tGqUT9.js +94 -0
- package/lib/mscgen-aKSbB7D9.js +104 -0
- package/lib/mumps-lNiKA6sp.js +25 -0
- package/lib/nginx--YmuCfDj.js +93 -0
- package/lib/nsis-zhS8iA09.js +62 -0
- package/lib/ntriples-E3jQl3MC.js +79 -0
- package/lib/octave-EQvkGIeG.js +144 -0
- package/lib/oz-W2cpqFf6.js +152 -0
- package/lib/pascal-lCh6ouNZ.js +79 -0
- package/lib/perl-PxEQBX0B.js +915 -0
- package/lib/pig-Y_bNcrzS.js +56 -0
- package/lib/powershell-GaQP-TZr.js +249 -0
- package/lib/properties-mbRyn54L.js +26 -0
- package/lib/prosemirror-noTDkx-k.js +4 -0
- package/lib/protobuf-8CJideyJ.js +49 -0
- package/lib/puppet-ABBaChNZ.js +45 -0
- package/lib/python-sKdHg3Ka.js +321 -0
- package/lib/q-_1yG40Nm.js +89 -0
- package/lib/r-Ziz56bHT.js +108 -0
- package/lib/rpm-ORjGOHaQ.js +57 -0
- package/lib/ruby-jlbYq0dT.js +233 -0
- package/lib/sas-2n7xeUuO.js +107 -0
- package/lib/schema-tKk3m1fu.js +62 -0
- package/lib/scheme-XCs-NPeU.js +126 -0
- package/lib/shell-0_1Um7Dq.js +184 -0
- package/lib/sieve-7uyJD1x1.js +73 -0
- package/lib/simple-mode--HIzBxba.js +95 -0
- package/lib/smalltalk-PEFzrlQ-.js +48 -0
- package/lib/solr-BLBaHahN.js +41 -0
- package/lib/sparql-4F9ZWf1b.js +204 -0
- package/lib/spreadsheet-SGSo6blj.js +49 -0
- package/lib/sql-tebLBzN0.js +291 -0
- package/lib/stex-SFJcFGOO.js +130 -0
- package/lib/stylus-rwwWYWFm.js +256 -0
- package/lib/swift-eorJ0tCv.js +238 -0
- package/lib/tcl-IwXMB8U4.js +82 -0
- package/lib/textile-ok2VyjwC.js +299 -0
- package/lib/theme/classic/index.d.ts +3 -0
- package/lib/theme/classic/index.d.ts.map +1 -0
- package/lib/theme/classic-dark/index.d.ts +3 -0
- package/lib/theme/classic-dark/index.d.ts.map +1 -0
- package/lib/theme/headless/index.d.ts +3 -0
- package/lib/theme/headless/index.d.ts.map +1 -0
- package/lib/theme/index.d.ts +8 -0
- package/lib/theme/index.d.ts.map +1 -0
- package/lib/theme/shared.d.ts +3 -0
- package/lib/theme/shared.d.ts.map +1 -0
- package/lib/tiddlywiki-DLhz8_pc.js +156 -0
- package/lib/tiki-DFAqFElY.js +183 -0
- package/lib/tippy.esm-MZ2vxByW.js +1813 -0
- package/lib/toml-ryxpTZEV.js +49 -0
- package/lib/tooltip-plugin-gcwyQdiT.js +119 -0
- package/lib/troff-ZzZyvNct.js +36 -0
- package/lib/ttcn-6gvkqqpW.js +136 -0
- package/lib/ttcn-cfg-oSu-Dq5C.js +98 -0
- package/lib/turtle-10ofr5au.js +87 -0
- package/lib/use-css-light-dom-EKWZDmbJ.js +82 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/vb-a6n6fzrD.js +74 -0
- package/lib/vbscript-dgvo8jPt.js +324 -0
- package/lib/velocity-CBncCrwO.js +97 -0
- package/lib/verilog-KlcACt6C.js +271 -0
- package/lib/vhdl-NMd7Gf35.js +117 -0
- package/lib/webidl-z1UE5DN_.js +160 -0
- package/lib/xquery-hDt5jWTp.js +431 -0
- package/lib/yacas-ftgh_qwr.js +74 -0
- package/lib/yaml-DnNTfjXK.js +53 -0
- package/lib/z80-dA1PqWe1.js +62 -0
- package/package.json +87 -0
- package/src/core/crepe.ts +98 -0
- package/src/core/index.ts +4 -0
- package/src/core/slice.ts +44 -0
- package/src/feature/block-edit/handle/component.ts +68 -0
- package/src/feature/block-edit/handle/index.ts +81 -0
- package/src/feature/block-edit/index.ts +17 -0
- package/src/feature/block-edit/menu/component.ts +210 -0
- package/src/feature/block-edit/menu/config.ts +335 -0
- package/src/feature/block-edit/menu/icons.ts +171 -0
- package/src/feature/block-edit/menu/index.ts +113 -0
- package/src/feature/block-edit/style.css +126 -0
- package/src/feature/code-mirror/index.ts +60 -0
- package/src/feature/code-mirror/style.css +159 -0
- package/src/feature/gap-cursor/index.ts +31 -0
- package/src/feature/image-block/index.ts +59 -0
- package/src/feature/image-block/style.css +215 -0
- package/src/feature/index.ts +66 -0
- package/src/feature/link-tooltip/consts.ts +47 -0
- package/src/feature/link-tooltip/index.ts +22 -0
- package/src/feature/link-tooltip/style.css +107 -0
- package/src/feature/list-item/consts.ts +15 -0
- package/src/feature/list-item/index.ts +30 -0
- package/src/feature/list-item/style.css +23 -0
- package/src/feature/placeholder/index.ts +87 -0
- package/src/feature/placeholder/style.css +9 -0
- package/src/feature/shared.ts +4 -0
- package/src/feature/toolbar/component.ts +101 -0
- package/src/feature/toolbar/consts.ts +26 -0
- package/src/feature/toolbar/index.ts +92 -0
- package/src/feature/toolbar/style.css +37 -0
- package/src/index.ts +5 -0
- package/src/theme/classic/index.ts +12 -0
- package/src/theme/classic/style.css +192 -0
- package/src/theme/classic-dark/index.ts +12 -0
- package/src/theme/classic-dark/style.css +197 -0
- package/src/theme/headless/index.ts +9 -0
- package/src/theme/index.ts +26 -0
- package/src/theme/shared.ts +4 -0
- package/src/utils/index.ts +12 -0
- package/src/vite-env.d.ts +2 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
for (var T = {}, O = e.split(" "), E = 0; E < O.length; ++E)
|
|
3
|
+
T[O[E]] = !0;
|
|
4
|
+
return T;
|
|
5
|
+
}
|
|
6
|
+
var i = "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 ", U = "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", o = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ", S = r(i), n = r(U), t = r(o), I = /[*+\-%<>=&?:\/!|]/;
|
|
7
|
+
function L(e, T, O) {
|
|
8
|
+
return T.tokenize = O, O(e, T);
|
|
9
|
+
}
|
|
10
|
+
function u(e, T) {
|
|
11
|
+
for (var O = !1, E; E = e.next(); ) {
|
|
12
|
+
if (E == "/" && O) {
|
|
13
|
+
T.tokenize = A;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
O = E == "*";
|
|
17
|
+
}
|
|
18
|
+
return "comment";
|
|
19
|
+
}
|
|
20
|
+
function C(e) {
|
|
21
|
+
return function(T, O) {
|
|
22
|
+
for (var E = !1, N, R = !1; (N = T.next()) != null; ) {
|
|
23
|
+
if (N == e && !E) {
|
|
24
|
+
R = !0;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
E = !E && N == "\\";
|
|
28
|
+
}
|
|
29
|
+
return (R || !E) && (O.tokenize = A), "error";
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function A(e, T) {
|
|
33
|
+
var O = e.next();
|
|
34
|
+
return O == '"' || O == "'" ? L(e, T, C(O)) : /[\[\]{}\(\),;\.]/.test(O) ? null : /\d/.test(O) ? (e.eatWhile(/[\w\.]/), "number") : O == "/" ? e.eat("*") ? L(e, T, u) : (e.eatWhile(I), "operator") : O == "-" ? e.eat("-") ? (e.skipToEnd(), "comment") : (e.eatWhile(I), "operator") : I.test(O) ? (e.eatWhile(I), "operator") : (e.eatWhile(/[\w\$_]/), n && n.propertyIsEnumerable(e.current().toUpperCase()) && !e.eat(")") && !e.eat(".") ? "keyword" : S && S.propertyIsEnumerable(e.current().toUpperCase()) ? "builtin" : t && t.propertyIsEnumerable(e.current().toUpperCase()) ? "type" : "variable");
|
|
35
|
+
}
|
|
36
|
+
const G = {
|
|
37
|
+
name: "pig",
|
|
38
|
+
startState: function() {
|
|
39
|
+
return {
|
|
40
|
+
tokenize: A,
|
|
41
|
+
startOfLine: !0
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
token: function(e, T) {
|
|
45
|
+
if (e.eatSpace())
|
|
46
|
+
return null;
|
|
47
|
+
var O = T.tokenize(e, T);
|
|
48
|
+
return O;
|
|
49
|
+
},
|
|
50
|
+
languageData: {
|
|
51
|
+
autocomplete: (i + o + U).split(" ")
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
G as pig
|
|
56
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
function a(e, n) {
|
|
2
|
+
n = n || {};
|
|
3
|
+
for (var r = n.prefix !== void 0 ? n.prefix : "^", t = n.suffix !== void 0 ? n.suffix : "\\b", i = 0; i < e.length; i++)
|
|
4
|
+
e[i] instanceof RegExp ? e[i] = e[i].source : e[i] = e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
5
|
+
return new RegExp(r + "(" + e.join("|") + ")" + t, "i");
|
|
6
|
+
}
|
|
7
|
+
var f = "(?=[^A-Za-z\\d\\-_]|$)", c = /[\w\-:]/, P = 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 }), d = /[\[\]{},;`\\\.]|@[({]/, 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, w = 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: "" }), y = 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, w, y], { suffix: f }), p = {
|
|
104
|
+
keyword: P,
|
|
105
|
+
number: h,
|
|
106
|
+
operator: k,
|
|
107
|
+
builtin: M,
|
|
108
|
+
punctuation: d,
|
|
109
|
+
variable: x
|
|
110
|
+
};
|
|
111
|
+
function o(e, n) {
|
|
112
|
+
var r = n.returnStack[n.returnStack.length - 1];
|
|
113
|
+
if (r && r.shouldReturnFrom(n))
|
|
114
|
+
return n.tokenize = r.tokenize, n.returnStack.pop(), n.tokenize(e, n);
|
|
115
|
+
if (e.eatSpace())
|
|
116
|
+
return null;
|
|
117
|
+
if (e.eat("("))
|
|
118
|
+
return n.bracketNesting += 1, "punctuation";
|
|
119
|
+
if (e.eat(")"))
|
|
120
|
+
return n.bracketNesting -= 1, "punctuation";
|
|
121
|
+
for (var t in p)
|
|
122
|
+
if (e.match(p[t]))
|
|
123
|
+
return t;
|
|
124
|
+
var i = e.next();
|
|
125
|
+
if (i === "'")
|
|
126
|
+
return R(e, n);
|
|
127
|
+
if (i === "$")
|
|
128
|
+
return s(e, n);
|
|
129
|
+
if (i === '"')
|
|
130
|
+
return v(e, n);
|
|
131
|
+
if (i === "<" && e.eat("#"))
|
|
132
|
+
return n.tokenize = S, S(e, n);
|
|
133
|
+
if (i === "#")
|
|
134
|
+
return e.skipToEnd(), "comment";
|
|
135
|
+
if (i === "@") {
|
|
136
|
+
var l = e.eat(/["']/);
|
|
137
|
+
if (l && e.eol())
|
|
138
|
+
return n.tokenize = u, n.startQuote = l[0], u(e, n);
|
|
139
|
+
if (e.eol())
|
|
140
|
+
return "error";
|
|
141
|
+
if (e.peek().match(/[({]/))
|
|
142
|
+
return "punctuation";
|
|
143
|
+
if (e.peek().match(c))
|
|
144
|
+
return s(e, n);
|
|
145
|
+
}
|
|
146
|
+
return "error";
|
|
147
|
+
}
|
|
148
|
+
function R(e, n) {
|
|
149
|
+
for (var r; (r = e.peek()) != null; )
|
|
150
|
+
if (e.next(), r === "'" && !e.eat("'"))
|
|
151
|
+
return n.tokenize = o, "string";
|
|
152
|
+
return "error";
|
|
153
|
+
}
|
|
154
|
+
function v(e, n) {
|
|
155
|
+
for (var r; (r = e.peek()) != null; ) {
|
|
156
|
+
if (r === "$")
|
|
157
|
+
return n.tokenize = I, "string";
|
|
158
|
+
if (e.next(), r === "`") {
|
|
159
|
+
e.next();
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (r === '"' && !e.eat('"'))
|
|
163
|
+
return n.tokenize = o, "string";
|
|
164
|
+
}
|
|
165
|
+
return "error";
|
|
166
|
+
}
|
|
167
|
+
function I(e, n) {
|
|
168
|
+
return g(e, n, v);
|
|
169
|
+
}
|
|
170
|
+
function z(e, n) {
|
|
171
|
+
return n.tokenize = u, n.startQuote = '"', u(e, n);
|
|
172
|
+
}
|
|
173
|
+
function T(e, n) {
|
|
174
|
+
return g(e, n, z);
|
|
175
|
+
}
|
|
176
|
+
function g(e, n, r) {
|
|
177
|
+
if (e.match("$(")) {
|
|
178
|
+
var t = n.bracketNesting;
|
|
179
|
+
return n.returnStack.push({
|
|
180
|
+
/*jshint loopfunc:true */
|
|
181
|
+
shouldReturnFrom: function(i) {
|
|
182
|
+
return i.bracketNesting === t;
|
|
183
|
+
},
|
|
184
|
+
tokenize: r
|
|
185
|
+
}), n.tokenize = o, n.bracketNesting += 1, "punctuation";
|
|
186
|
+
} else
|
|
187
|
+
return e.next(), n.returnStack.push({
|
|
188
|
+
shouldReturnFrom: function() {
|
|
189
|
+
return !0;
|
|
190
|
+
},
|
|
191
|
+
tokenize: r
|
|
192
|
+
}), n.tokenize = s, n.tokenize(e, n);
|
|
193
|
+
}
|
|
194
|
+
function S(e, n) {
|
|
195
|
+
for (var r = !1, t; (t = e.next()) != null; ) {
|
|
196
|
+
if (r && t == ">") {
|
|
197
|
+
n.tokenize = o;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
r = t === "#";
|
|
201
|
+
}
|
|
202
|
+
return "comment";
|
|
203
|
+
}
|
|
204
|
+
function s(e, n) {
|
|
205
|
+
var r = e.peek();
|
|
206
|
+
return e.eat("{") ? (n.tokenize = m, m(e, n)) : r != null && r.match(c) ? (e.eatWhile(c), n.tokenize = o, "variable") : (n.tokenize = o, "error");
|
|
207
|
+
}
|
|
208
|
+
function m(e, n) {
|
|
209
|
+
for (var r; (r = e.next()) != null; )
|
|
210
|
+
if (r === "}") {
|
|
211
|
+
n.tokenize = o;
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
return "variable";
|
|
215
|
+
}
|
|
216
|
+
function u(e, n) {
|
|
217
|
+
var r = n.startQuote;
|
|
218
|
+
if (e.sol() && e.match(new RegExp(r + "@")))
|
|
219
|
+
n.tokenize = o;
|
|
220
|
+
else if (r === '"')
|
|
221
|
+
for (; !e.eol(); ) {
|
|
222
|
+
var t = e.peek();
|
|
223
|
+
if (t === "$")
|
|
224
|
+
return n.tokenize = T, "string";
|
|
225
|
+
e.next(), t === "`" && 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: o
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
token: function(e, n) {
|
|
241
|
+
return n.tokenize(e, n);
|
|
242
|
+
},
|
|
243
|
+
languageData: {
|
|
244
|
+
commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
export {
|
|
248
|
+
D as powerShell
|
|
249
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const f = {
|
|
2
|
+
name: "properties",
|
|
3
|
+
token: function(e, i) {
|
|
4
|
+
var o = e.sol() || i.afterSection, l = e.eol();
|
|
5
|
+
if (i.afterSection = !1, o && (i.nextMultiline ? (i.inMultiline = !0, i.nextMultiline = !1) : i.position = "def"), l && !i.nextMultiline && (i.inMultiline = !1, i.position = "def"), o)
|
|
6
|
+
for (; e.eatSpace(); )
|
|
7
|
+
;
|
|
8
|
+
var n = e.next();
|
|
9
|
+
return o && (n === "#" || n === "!" || n === ";") ? (i.position = "comment", e.skipToEnd(), "comment") : o && n === "[" ? (i.afterSection = !0, e.skipTo("]"), e.eat("]"), "header") : n === "=" || n === ":" ? (i.position = "quote", null) : (n === "\\" && i.position === "quote" && e.eol() && (i.nextMultiline = !0), i.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
|
+
f as properties
|
|
26
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = '.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{-webkit-user-select:text;user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}';
|
|
2
|
+
export {
|
|
3
|
+
e as p
|
|
4
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
function t(e) {
|
|
2
|
+
return new RegExp("^((" + e.join(")|(") + "))\\b", "i");
|
|
3
|
+
}
|
|
4
|
+
var n = [
|
|
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
|
+
], r = t(n), i = new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");
|
|
37
|
+
function f(e) {
|
|
38
|
+
return e.eatSpace() ? null : e.match("//") ? (e.skipToEnd(), "comment") : e.match(/^[0-9\.+-]/, !1) && (e.match(/^[+-]?0x[0-9a-fA-F]+/) || e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/) || e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) ? "number" : e.match(/^"([^"]|(""))*"/) || e.match(/^'([^']|(''))*'/) ? "string" : e.match(r) ? "keyword" : e.match(i) ? "variable" : (e.next(), null);
|
|
39
|
+
}
|
|
40
|
+
const u = {
|
|
41
|
+
name: "protobuf",
|
|
42
|
+
token: f,
|
|
43
|
+
languageData: {
|
|
44
|
+
autocomplete: n
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
u as protobuf
|
|
49
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var c = {}, s = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;
|
|
2
|
+
function a(e, n) {
|
|
3
|
+
for (var i = n.split(" "), o = 0; o < i.length; o++)
|
|
4
|
+
c[i[o]] = e;
|
|
5
|
+
}
|
|
6
|
+
a("keyword", "class define site node include import inherits");
|
|
7
|
+
a("keyword", "case if else in and elsif default or");
|
|
8
|
+
a("atom", "false true running present absent file directory undef");
|
|
9
|
+
a("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 u(e, n) {
|
|
11
|
+
for (var i, o, t = !1; !e.eol() && (i = e.next()) != n.pending; ) {
|
|
12
|
+
if (i === "$" && o != "\\" && n.pending == '"') {
|
|
13
|
+
t = !0;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
o = i;
|
|
17
|
+
}
|
|
18
|
+
return t && e.backUp(1), i == n.pending ? n.continueString = !1 : n.continueString = !0, "string";
|
|
19
|
+
}
|
|
20
|
+
function l(e, n) {
|
|
21
|
+
var i = e.match(/[\w]+/, !1), o = e.match(/(\s+)?\w+\s+=>.*/, !1), t = e.match(/(\s+)?[\w:_]+(\s+)?{/, !1), f = e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, !1), r = e.next();
|
|
22
|
+
if (r === "$")
|
|
23
|
+
return e.match(s) ? n.continueString ? "variableName.special" : "variable" : "error";
|
|
24
|
+
if (n.continueString)
|
|
25
|
+
return e.backUp(1), u(e, n);
|
|
26
|
+
if (n.inDefinition) {
|
|
27
|
+
if (e.match(/(\s+)?[\w:_]+(\s+)?/))
|
|
28
|
+
return "def";
|
|
29
|
+
e.match(/\s+{/), n.inDefinition = !1;
|
|
30
|
+
}
|
|
31
|
+
return n.inInclude ? (e.match(/(\s+)?\S+(\s+)?/), n.inInclude = !1, "def") : e.match(/(\s+)?\w+\(/) ? (e.backUp(1), "def") : o ? (e.match(/(\s+)?\w+/), "tag") : i && c.hasOwnProperty(i) ? (e.backUp(1), e.match(/[\w]+/), e.match(/\s+\S+\s+{/, !1) && (n.inDefinition = !0), i == "include" && (n.inInclude = !0), c[i]) : /(^|\s+)[A-Z][\w:_]+/.test(i) ? (e.backUp(1), e.match(/(^|\s+)[A-Z][\w:_]+/), "def") : t ? (e.match(/(\s+)?[\w:_]+/), "def") : f ? (e.match(/(\s+)?[@]{1,2}/), "atom") : r == "#" ? (e.skipToEnd(), "comment") : r == "'" || r == '"' ? (n.pending = r, u(e, n)) : r == "{" || r == "}" ? "bracket" : r == "/" ? (e.match(/^[^\/]*\//), "string.special") : r.match(/[0-9]/) ? (e.eatWhile(/[0-9]+/), "number") : r == "=" ? (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, n) {
|
|
40
|
+
return e.eatSpace() ? null : l(e, n);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
p as puppet
|
|
45
|
+
};
|