@oscloudlab/knowledge-card 0.0.1 → 0.0.2
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/abap-bNFqRLO1.js +84 -0
- package/dist/abnf-hvXtkKLY.js +87 -0
- package/dist/actionscript-6i80VbAv.js +43 -0
- package/dist/ada-CiSKRw34.js +52 -0
- package/dist/agda-BELchEdZ.js +56 -0
- package/dist/al-DkPZllof.js +56 -0
- package/dist/antlr4-D6U2qvIr.js +96 -0
- package/dist/apacheconf-DoADUQkC.js +80 -0
- package/dist/apex-Dwxgykqz.js +104 -0
- package/dist/apl-n43gQAL3.js +65 -0
- package/dist/applescript-DUNzhl2t.js +50 -0
- package/dist/aql-BNnsomU8.js +82 -0
- package/dist/arduino-Ctiiir5A.js +41 -0
- package/dist/arff-CF3A9Ff-.js +43 -0
- package/dist/asciidoc-BORHAu3L.js +240 -0
- package/dist/asm6502-OhJaS22O.js +62 -0
- package/dist/asmatmel-CG3mJBJs.js +74 -0
- package/dist/aspnet-Bgu9cVxS.js +83 -0
- package/dist/autohotkey-BMzF8w3W.js +64 -0
- package/dist/autoit-BUz7W_A-.js +67 -0
- package/dist/avisynth-D_5DsX9W.js +195 -0
- package/dist/avro-idl-DXBF-8pT.js +74 -0
- package/dist/bash-0-vitIuH.js +223 -0
- package/dist/bash-CmPTK8K6.js +26 -0
- package/dist/basic-CBrKUqQp.js +28 -0
- package/dist/basic-CgjK_kM4.js +26 -0
- package/dist/batch-DDuJqYDJ.js +125 -0
- package/dist/bbcode-BBBJW4h9.js +60 -0
- package/dist/bicep-B7Vet2aR.js +102 -0
- package/dist/birb-DPs12VRI.js +53 -0
- package/dist/bison-BKvEoKEG.js +73 -0
- package/dist/bnf-CaE0Bt3T.js +52 -0
- package/dist/brainfuck-GdsepcND.js +53 -0
- package/dist/brightscript-CaQ-B4pE.js +76 -0
- package/dist/bro-C_rmjGgn.js +60 -0
- package/dist/bsl-DQhyt9j4.js +101 -0
- package/dist/c-D8-laUL_.js +26 -0
- package/dist/c-b2c4WJSm.js +83 -0
- package/dist/cfscript-DcwVkFDX.js +71 -0
- package/dist/chaiscript-C1jdPAs0.js +89 -0
- package/dist/cil-C54xDxMg.js +52 -0
- package/dist/clike-D8ff3B0t.js +61 -0
- package/dist/clojure-BtKUzyKV.js +63 -0
- package/dist/cmake-CcFmEv5M.js +62 -0
- package/dist/cobol-SnYz3b9P.js +82 -0
- package/dist/coffeescript-CKJzYVhc.js +110 -0
- package/dist/concurnas-C6YKMKIG.js +90 -0
- package/dist/coq-AH1nKVcq.js +81 -0
- package/dist/core-CcwoL92f.js +1712 -0
- package/dist/cpp-Bh1PKWEj.js +26 -0
- package/dist/cpp-C0j-5811.js +115 -0
- package/dist/crystal-ByWjq0Om.js +87 -0
- package/dist/csharp-BmDeN1AH.js +388 -0
- package/dist/csharp-C-RIlwgF.js +26 -0
- package/dist/cshtml-BX2903vs.js +134 -0
- package/dist/csp-BKqyZN9w.js +90 -0
- package/dist/css-9KZNpeR_.js +90 -0
- package/dist/css-extras-DWWoGQa1.js +139 -0
- package/dist/csv-6jawsFvm.js +37 -0
- package/dist/cypher-GT5Ln_K4.js +65 -0
- package/dist/d-DQuNeOB7.js +109 -0
- package/dist/dart-CHER8X1l.js +101 -0
- package/dist/dataweave-DL_Y2LqP.js +73 -0
- package/dist/dax-D27J9qU6.js +60 -0
- package/dist/dhall-C-Dtjrdj.js +95 -0
- package/dist/diff-Dg1kV9wC.js +78 -0
- package/dist/django-LEJ_YyjH.js +81 -0
- package/dist/dns-zone-file-CX7rXdX2.js +64 -0
- package/dist/docker-CtY3JCLx.js +127 -0
- package/dist/dot-od_DZdpT.js +102 -0
- package/dist/ebnf-DIuzViAe.js +53 -0
- package/dist/editorconfig-CX02cRV5.js +60 -0
- package/dist/eiffel-D3XUiBw2.js +67 -0
- package/dist/ejs-2AfMOM5A.js +58 -0
- package/dist/elixir-722y_YPp.js +129 -0
- package/dist/elm-CIyhdE5y.js +78 -0
- package/dist/erb-B4chbVqA.js +60 -0
- package/dist/erlang-DxizlpkP.js +76 -0
- package/dist/etlua-D_9hun9v.js +58 -0
- package/dist/excel-formula-CmpI_82m.js +95 -0
- package/dist/factor-krg_8lb-.js +949 -0
- package/dist/false-B2gdCewG.js +60 -0
- package/dist/firestore-security-rules-xige90gq.js +67 -0
- package/dist/flow-bpD4sbhm.js +57 -0
- package/dist/fortran-B4crZzNk.js +73 -0
- package/dist/fsharp-BnvVN9HC.js +105 -0
- package/dist/ftl-BoWDVp6s.js +146 -0
- package/dist/gap-DxJ82BxA.js +78 -0
- package/dist/gcode-u6kBGAFD.js +49 -0
- package/dist/gdscript-DvuFm0WL.js +60 -0
- package/dist/gedcom-D6YNHC5R.js +61 -0
- package/dist/gherkin-DhC07ENE.js +115 -0
- package/dist/git-5vwNu_fL.js +96 -0
- package/dist/glsl-BGzQvWQa.js +39 -0
- package/dist/gml-DQQsqa0X.js +40 -0
- package/dist/gn-Bz3fehJS.js +76 -0
- package/dist/go-DQVNbr0F.js +57 -0
- package/dist/go-module-DAdBkEV6.js +55 -0
- package/dist/graphql-b5aI1fau.js +154 -0
- package/dist/groovy-C4Zi8h0f.js +82 -0
- package/dist/haml-B9jL77OH.js +172 -0
- package/dist/handlebars-BWszzUxR.js +74 -0
- package/dist/haskell-BrIvnyGx.js +26 -0
- package/dist/haskell-DR6jYji5.js +75 -0
- package/dist/haxe-DUpmVd5P.js +105 -0
- package/dist/hcl-CLqVpYtA.js +93 -0
- package/dist/hlsl-CsYJVSWg.js +55 -0
- package/dist/hoon-D0TgxHvB.js +47 -0
- package/dist/hpkp-BiU-mQjG.js +41 -0
- package/dist/hsts-DE54dR1b.js +41 -0
- package/dist/http-CfgOm4UI.js +155 -0
- package/dist/ichigojam-CVZ6Aj_t.js +46 -0
- package/dist/icon-CekiVVmc.js +53 -0
- package/dist/icu-message-format-CJA9loKb.js +165 -0
- package/dist/idris-KG9ztadM.js +51 -0
- package/dist/iecst-wFMMjMpf.js +65 -0
- package/dist/ignore-Byv4NN_B.js +51 -0
- package/dist/index-Sj89RFCY.js +136569 -0
- package/dist/index.esm.js +2 -683
- package/dist/index.umd.js +1611 -15
- package/dist/inform7-YsL-LiaC.js +90 -0
- package/dist/ini-ChNiYeuM.js +73 -0
- package/dist/io-BzLClKN_.js +55 -0
- package/dist/j-BuLAn7Gf.js +61 -0
- package/dist/java-3PJ6FLyt.js +26 -0
- package/dist/java-DYIb7l3j.js +98 -0
- package/dist/javadoc-BnSaiIyg.js +118 -0
- package/dist/javadoclike-BSqXhy54.js +26 -0
- package/dist/javadoclike-CHbTYI14.js +59 -0
- package/dist/javascript-Cl708kfq.js +152 -0
- package/dist/javastacktrace-DVGIqwxN.js +167 -0
- package/dist/jexl-DMjq6Vaw.js +47 -0
- package/dist/jolie-DXoSR52A.js +72 -0
- package/dist/jq-Dp1c5kuj.js +100 -0
- package/dist/js-extras-DJfB1MC8.js +150 -0
- package/dist/js-templates--GrCX2F1.js +197 -0
- package/dist/jsdoc-vErSu9Cr.js +116 -0
- package/dist/json-BW8KBIeJ.js +35 -0
- package/dist/json-BefNJCW-.js +26 -0
- package/dist/json5-CsdIXkOZ.js +56 -0
- package/dist/jsonp-Dz_5Lt-E.js +41 -0
- package/dist/jsstacktrace-DbBQ3Cv7.js +74 -0
- package/dist/jsx-Bv5_R7Yd.js +26 -0
- package/dist/jsx-FTe7XA1B.js +77 -0
- package/dist/julia-CoYGw2IR.js +68 -0
- package/dist/keepalived-CPWdwddz.js +81 -0
- package/dist/keyman-DNslP0Yy.js +76 -0
- package/dist/kotlin-CbZgjbyh.js +108 -0
- package/dist/kumir-Q_jLwxfZ.js +120 -0
- package/dist/kusto-dM9uOfWk.js +71 -0
- package/dist/latex-Bfeq39tO.js +92 -0
- package/dist/latte-CFxOlcdj.js +101 -0
- package/dist/less-DwfFB3qp.js +75 -0
- package/dist/lilypond-DaH_baew.js +104 -0
- package/dist/liquid-5rAVI9Ad.js +97 -0
- package/dist/lisp-Btc3xid7.js +194 -0
- package/dist/livescript-DQvJc3cA.js +150 -0
- package/dist/llvm-B7k0U20m.js +52 -0
- package/dist/log-B7ulCZCI.js +133 -0
- package/dist/lolcode-BEEMlfuU.js +81 -0
- package/dist/lua-BggcDXQp.js +31 -0
- package/dist/lua-D-T62TZ5.js +26 -0
- package/dist/magma-DAN3ZGAI.js +63 -0
- package/dist/makefile-Bjl-N6S3.js +63 -0
- package/dist/markdown-6Q2QSFJe.js +355 -0
- package/dist/markup-Bwuswjib.js +194 -0
- package/dist/markup-templating-BLspI5oq.js +26 -0
- package/dist/markup-templating-CVTxtFGH.js +77 -0
- package/dist/matlab-Bim6HLuO.js +46 -0
- package/dist/maxscript-BJqnafAC.js +97 -0
- package/dist/mel-C4iJe_aZ.js +74 -0
- package/dist/mermaid-DbKsw5IU.js +137 -0
- package/dist/mizar-DdUuEnQ0.js +45 -0
- package/dist/mongodb-C7OZqIiL.js +321 -0
- package/dist/monkey-CFQNpGhn.js +61 -0
- package/dist/moonscript-BDdCZd5M.js +87 -0
- package/dist/n1ql-C-ll6pgt.js +55 -0
- package/dist/n4js-DCLtuFdY.js +43 -0
- package/dist/nand2tetris-hdl-DJsK5r3l.js +42 -0
- package/dist/naniscript-DtHo8Sfl.js +165 -0
- package/dist/nasm-gJZT8LPh.js +57 -0
- package/dist/neon-SaMGcsnU.js +73 -0
- package/dist/nevod-Dqvto6vw.js +158 -0
- package/dist/nginx-Cp89qRQy.js +82 -0
- package/dist/nim-CdGVC6Mb.js +75 -0
- package/dist/nix-jnfiSyYI.js +69 -0
- package/dist/nsis-BZ4yPak6.js +58 -0
- package/dist/objectivec-B9lo2Gq2.js +44 -0
- package/dist/ocaml-DtZ_IyiS.js +88 -0
- package/dist/opencl-CtUznKol.js +83 -0
- package/dist/openqasm-BAmjbx7B.js +50 -0
- package/dist/oz-mvOvhn7u.js +61 -0
- package/dist/parigp-B5Xdmiju.js +81 -0
- package/dist/parser-Ct77dMe3.js +106 -0
- package/dist/pascal-Dwf-aqDs.js +95 -0
- package/dist/pascaligo-DWTvG1fw.js +115 -0
- package/dist/pcaxis-BUnNg5h_.js +84 -0
- package/dist/peoplecode-CewkQs1u.js +74 -0
- package/dist/perl-CmRi-uRU.js +164 -0
- package/dist/php-C_FrOCG4.js +334 -0
- package/dist/php-e7f7GtZ8.js +26 -0
- package/dist/php-extras-ATZDccPm.js +50 -0
- package/dist/phpdoc-uba1O-5-.js +61 -0
- package/dist/plsql-BLNilzVM.js +51 -0
- package/dist/powerquery-CddEWH0P.js +83 -0
- package/dist/powershell-SimxvdWh.js +88 -0
- package/dist/processing-IeXhsRmw.js +46 -0
- package/dist/prolog-CnTr7enQ.js +52 -0
- package/dist/promql-DpmXmCiA.js +120 -0
- package/dist/properties-BraQbkIL.js +42 -0
- package/dist/protobuf-BKmtm9wI.js +71 -0
- package/dist/psl-DfJLNMzA.js +68 -0
- package/dist/pug-C7olXkyh.js +212 -0
- package/dist/puppet-DMdAuQ_Z.js +167 -0
- package/dist/pure-BVQraXQo.js +111 -0
- package/dist/purebasic-DnAwivDW.js +87 -0
- package/dist/purescript-BBcUX3cf.js +62 -0
- package/dist/python-C9JXUpy2.js +94 -0
- package/dist/q-Ct9Ut4C4.js +83 -0
- package/dist/qml-DubjWeE3.js +103 -0
- package/dist/qore-CDjxpVlT.js +53 -0
- package/dist/qsharp-Dyr5mrma.js +128 -0
- package/dist/r-B4F2KUJL.js +55 -0
- package/dist/racket-D5k9UW-t.js +50 -0
- package/dist/reason-Cs82zJO7.js +54 -0
- package/dist/regex-Z8MvaNEm.js +124 -0
- package/dist/rego-CcGrxeab.js +58 -0
- package/dist/renpy-mByYQWSM.js +51 -0
- package/dist/rest-BoR9ZMoX.js +231 -0
- package/dist/rip-C3Bf4Bpl.js +62 -0
- package/dist/roboconf-1MYmsJJ7.js +60 -0
- package/dist/robotframework-fBSrPGHK.js +122 -0
- package/dist/ruby-BQlisu6i.js +182 -0
- package/dist/ruby-DRrUXRqW.js +26 -0
- package/dist/rust-DhUR7ICB.js +149 -0
- package/dist/sas-D7DM5vmM.js +362 -0
- package/dist/sass-B-3W9xmk.js +96 -0
- package/dist/scala-DmHnWeTz.js +80 -0
- package/dist/scheme-B-TWMKN_.js +122 -0
- package/dist/scheme-egHBLRqV.js +26 -0
- package/dist/scss-BU4D1BLj.js +106 -0
- package/dist/shell-session-6QFBv7G6.js +93 -0
- package/dist/smali-B48Y4QYt.js +112 -0
- package/dist/smalltalk-w59b04aF.js +71 -0
- package/dist/smarty-CnWvL-Ef.js +147 -0
- package/dist/sml-cUUD1qMQ.js +91 -0
- package/dist/solidity-Drt__SLk.js +49 -0
- package/dist/solution-file-CYG1BOQK.js +79 -0
- package/dist/soy-BZNQzgkB.js +112 -0
- package/dist/sparql-BQDndvZG.js +49 -0
- package/dist/splunk-spl-ezOLCJwA.js +57 -0
- package/dist/sqf-C83ezg-4.js +63 -0
- package/dist/sql-CVBSuRzU.js +26 -0
- package/dist/sql-qhcRp-Km.js +44 -0
- package/dist/squirrel-2r-3bEO_.js +74 -0
- package/dist/stan-D2wLHzr8.js +86 -0
- package/dist/style.css +1 -1
- package/dist/stylus-KkSvURTJ.js +165 -0
- package/dist/swift-c7528WsQ.js +152 -0
- package/dist/systemd-DWsV0AtP.js +88 -0
- package/dist/t4-cs-D7NmzTCB.js +38 -0
- package/dist/t4-templating-Bc9GyRcs.js +26 -0
- package/dist/t4-templating-yxm91MEk.js +56 -0
- package/dist/t4-vb-Df3tMe1Q.js +38 -0
- package/dist/tap-wFXvu_No.js +56 -0
- package/dist/tcl-BZqzhUcQ.js +79 -0
- package/dist/textile-DrTKyn7T.js +289 -0
- package/dist/toml-LVQpNmZe.js +86 -0
- package/dist/tremor-A_cxX8C4.js +90 -0
- package/dist/tsx-CQKNNLzi.js +46 -0
- package/dist/tt2-CPOtfoBh.js +78 -0
- package/dist/turtle-BjRE9oBS.js +26 -0
- package/dist/turtle-z6QfbtiY.js +61 -0
- package/dist/twig-Cz25rowk.js +72 -0
- package/dist/typescript--VNBoLO-.js +56 -0
- package/dist/typescript-Bx2QMcny.js +26 -0
- package/dist/typoscript-BdH7x5a4.js +109 -0
- package/dist/unrealscript-Cb8322pT.js +71 -0
- package/dist/uorazor-CHv0VHYn.js +81 -0
- package/dist/uri-ci9M926F.js +116 -0
- package/dist/v-DL4z_kNT.js +106 -0
- package/dist/vala-CPIzd5en.js +113 -0
- package/dist/vbnet-BoCvq106.js +26 -0
- package/dist/vbnet-ClfmYufs.js +36 -0
- package/dist/velocity-CBXhMUrK.js +99 -0
- package/dist/verilog-C1ZX-Tr8.js +59 -0
- package/dist/vhdl-CLlMgFjz.js +56 -0
- package/dist/vim-BuFUFT06.js +43 -0
- package/dist/visual-basic-CzPES6jG.js +59 -0
- package/dist/warpscript-C5YvStKz.js +54 -0
- package/dist/wasm-txCKMkgE.js +64 -0
- package/dist/web-idl-B4OgJf1y.js +118 -0
- package/dist/wiki-C6_DR7WK.js +110 -0
- package/dist/wolfram-D9ETP9M6.js +58 -0
- package/dist/wren-CkhJWcmB.js +121 -0
- package/dist/xeora-Cg3OrGlT.js +147 -0
- package/dist/xml-doc-C0mFvWUS.js +56 -0
- package/dist/xojo-CW6K9MHL.js +51 -0
- package/dist/xquery-B0ssbj_m.js +118 -0
- package/dist/yaml-S0xfBtlT.js +26 -0
- package/dist/yaml-hxc7aP7n.js +92 -0
- package/dist/yang-Dg6OSQ6Y.js +53 -0
- package/dist/zig-xuUtE8Pe.js +117 -0
- package/package.json +30 -4
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { g as Z } from "./index-Sj89RFCY.js";
|
|
2
|
+
function $(i, s) {
|
|
3
|
+
for (var p = 0; p < s.length; p++) {
|
|
4
|
+
const n = s[p];
|
|
5
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
6
|
+
for (const a in n)
|
|
7
|
+
if (a !== "default" && !(a in i)) {
|
|
8
|
+
const t = Object.getOwnPropertyDescriptor(n, a);
|
|
9
|
+
t && Object.defineProperty(i, a, t.get ? t : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => n[a]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var h, k;
|
|
19
|
+
function j() {
|
|
20
|
+
if (k) return h;
|
|
21
|
+
k = 1, h = i, i.displayName = "graphql", i.aliases = [];
|
|
22
|
+
function i(s) {
|
|
23
|
+
s.languages.graphql = {
|
|
24
|
+
comment: /#.*/,
|
|
25
|
+
description: {
|
|
26
|
+
pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,
|
|
27
|
+
greedy: !0,
|
|
28
|
+
alias: "string",
|
|
29
|
+
inside: {
|
|
30
|
+
"language-markdown": {
|
|
31
|
+
pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,
|
|
32
|
+
lookbehind: !0,
|
|
33
|
+
inside: s.languages.markdown
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
string: {
|
|
38
|
+
pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,
|
|
39
|
+
greedy: !0
|
|
40
|
+
},
|
|
41
|
+
number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
42
|
+
boolean: /\b(?:false|true)\b/,
|
|
43
|
+
variable: /\$[a-z_]\w*/i,
|
|
44
|
+
directive: {
|
|
45
|
+
pattern: /@[a-z_]\w*/i,
|
|
46
|
+
alias: "function"
|
|
47
|
+
},
|
|
48
|
+
"attr-name": {
|
|
49
|
+
pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,
|
|
50
|
+
greedy: !0
|
|
51
|
+
},
|
|
52
|
+
"atom-input": {
|
|
53
|
+
pattern: /\b[A-Z]\w*Input\b/,
|
|
54
|
+
alias: "class-name"
|
|
55
|
+
},
|
|
56
|
+
scalar: /\b(?:Boolean|Float|ID|Int|String)\b/,
|
|
57
|
+
constant: /\b[A-Z][A-Z_\d]*\b/,
|
|
58
|
+
"class-name": {
|
|
59
|
+
pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,
|
|
60
|
+
lookbehind: !0
|
|
61
|
+
},
|
|
62
|
+
fragment: {
|
|
63
|
+
pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,
|
|
64
|
+
lookbehind: !0,
|
|
65
|
+
alias: "function"
|
|
66
|
+
},
|
|
67
|
+
"definition-mutation": {
|
|
68
|
+
pattern: /(\bmutation\s+)[a-zA-Z_]\w*/,
|
|
69
|
+
lookbehind: !0,
|
|
70
|
+
alias: "function"
|
|
71
|
+
},
|
|
72
|
+
"definition-query": {
|
|
73
|
+
pattern: /(\bquery\s+)[a-zA-Z_]\w*/,
|
|
74
|
+
lookbehind: !0,
|
|
75
|
+
alias: "function"
|
|
76
|
+
},
|
|
77
|
+
keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,
|
|
78
|
+
operator: /[!=|&]|\.{3}/,
|
|
79
|
+
"property-query": /\w+(?=\s*\()/,
|
|
80
|
+
object: /\w+(?=\s*\{)/,
|
|
81
|
+
punctuation: /[!(){}\[\]:=,]/,
|
|
82
|
+
property: /\w+/
|
|
83
|
+
}, s.hooks.add("after-tokenize", function(n) {
|
|
84
|
+
if (n.language !== "graphql")
|
|
85
|
+
return;
|
|
86
|
+
var a = n.tokens.filter(function(r) {
|
|
87
|
+
return typeof r != "string" && r.type !== "comment" && r.type !== "scalar";
|
|
88
|
+
}), t = 0;
|
|
89
|
+
function l(r) {
|
|
90
|
+
return a[t + r];
|
|
91
|
+
}
|
|
92
|
+
function v(r, o) {
|
|
93
|
+
o = o || 0;
|
|
94
|
+
for (var e = 0; e < r.length; e++) {
|
|
95
|
+
var u = l(e + o);
|
|
96
|
+
if (!u || u.type !== r[e])
|
|
97
|
+
return !1;
|
|
98
|
+
}
|
|
99
|
+
return !0;
|
|
100
|
+
}
|
|
101
|
+
function q(r, o) {
|
|
102
|
+
for (var e = 1, u = t; u < a.length; u++) {
|
|
103
|
+
var A = a[u], m = A.content;
|
|
104
|
+
if (A.type === "punctuation" && typeof m == "string") {
|
|
105
|
+
if (r.test(m))
|
|
106
|
+
e++;
|
|
107
|
+
else if (o.test(m) && (e--, e === 0))
|
|
108
|
+
return u;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return -1;
|
|
112
|
+
}
|
|
113
|
+
function f(r, o) {
|
|
114
|
+
var e = r.alias;
|
|
115
|
+
e ? Array.isArray(e) || (r.alias = e = [e]) : r.alias = e = [], e.push(o);
|
|
116
|
+
}
|
|
117
|
+
for (; t < a.length; ) {
|
|
118
|
+
var w = a[t++];
|
|
119
|
+
if (w.type === "keyword" && w.content === "mutation") {
|
|
120
|
+
var c = [];
|
|
121
|
+
if (v(["definition-mutation", "punctuation"]) && l(1).content === "(") {
|
|
122
|
+
t += 2;
|
|
123
|
+
var g = q(/^\($/, /^\)$/);
|
|
124
|
+
if (g === -1)
|
|
125
|
+
continue;
|
|
126
|
+
for (; t < g; t++) {
|
|
127
|
+
var b = l(0);
|
|
128
|
+
b.type === "variable" && (f(b, "variable-input"), c.push(b.content));
|
|
129
|
+
}
|
|
130
|
+
t = g + 1;
|
|
131
|
+
}
|
|
132
|
+
if (v(["punctuation", "property-query"]) && l(0).content === "{" && (t++, f(l(0), "property-mutation"), c.length > 0)) {
|
|
133
|
+
var _ = q(/^\{$/, /^\}$/);
|
|
134
|
+
if (_ === -1)
|
|
135
|
+
continue;
|
|
136
|
+
for (var d = t; d < _; d++) {
|
|
137
|
+
var y = a[d];
|
|
138
|
+
y.type === "variable" && c.indexOf(y.content) >= 0 && f(y, "variable-input");
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return h;
|
|
146
|
+
}
|
|
147
|
+
var z = j();
|
|
148
|
+
const x = /* @__PURE__ */ Z(z), I = /* @__PURE__ */ $({
|
|
149
|
+
__proto__: null,
|
|
150
|
+
default: x
|
|
151
|
+
}, [z]);
|
|
152
|
+
export {
|
|
153
|
+
I as g
|
|
154
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { g as u } from "./index-Sj89RFCY.js";
|
|
2
|
+
function c(n, t) {
|
|
3
|
+
for (var e = 0; e < t.length; e++) {
|
|
4
|
+
const o = t[e];
|
|
5
|
+
if (typeof o != "string" && !Array.isArray(o)) {
|
|
6
|
+
for (const r in o)
|
|
7
|
+
if (r !== "default" && !(r in n)) {
|
|
8
|
+
const a = Object.getOwnPropertyDescriptor(o, r);
|
|
9
|
+
a && Object.defineProperty(n, r, a.get ? a : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => o[r]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i, s;
|
|
19
|
+
function l() {
|
|
20
|
+
if (s) return i;
|
|
21
|
+
s = 1, i = n, n.displayName = "groovy", n.aliases = [];
|
|
22
|
+
function n(t) {
|
|
23
|
+
t.languages.groovy = t.languages.extend("clike", {
|
|
24
|
+
string: [
|
|
25
|
+
{
|
|
26
|
+
// https://groovy-lang.org/syntax.html#_dollar_slashy_string
|
|
27
|
+
pattern: /("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,
|
|
28
|
+
greedy: !0
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
// TODO: Slash strings (e.g. /foo/) can contain line breaks but this will cause a lot of trouble with
|
|
32
|
+
// simple division (see JS regex), so find a fix maybe?
|
|
33
|
+
pattern: /(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
34
|
+
greedy: !0
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
keyword: /\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,
|
|
38
|
+
number: /\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,
|
|
39
|
+
operator: {
|
|
40
|
+
pattern: /(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,
|
|
41
|
+
lookbehind: !0
|
|
42
|
+
},
|
|
43
|
+
punctuation: /\.+|[{}[\];(),:$]/
|
|
44
|
+
}), t.languages.insertBefore("groovy", "string", {
|
|
45
|
+
shebang: {
|
|
46
|
+
pattern: /#!.+/,
|
|
47
|
+
alias: "comment"
|
|
48
|
+
}
|
|
49
|
+
}), t.languages.insertBefore("groovy", "punctuation", {
|
|
50
|
+
"spock-block": /\b(?:and|cleanup|expect|given|setup|then|when|where):/
|
|
51
|
+
}), t.languages.insertBefore("groovy", "function", {
|
|
52
|
+
annotation: {
|
|
53
|
+
pattern: /(^|[^.])@\w+/,
|
|
54
|
+
lookbehind: !0,
|
|
55
|
+
alias: "punctuation"
|
|
56
|
+
}
|
|
57
|
+
}), t.hooks.add("wrap", function(e) {
|
|
58
|
+
if (e.language === "groovy" && e.type === "string") {
|
|
59
|
+
var o = e.content.value[0];
|
|
60
|
+
if (o != "'") {
|
|
61
|
+
var r = /([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;
|
|
62
|
+
o === "$" && (r = /([^\$])(?:\$(?:\{.*?\}|[\w.]+))/), e.content.value = e.content.value.replace(/</g, "<").replace(/&/g, "&"), e.content = t.highlight(e.content.value, {
|
|
63
|
+
expression: {
|
|
64
|
+
pattern: r,
|
|
65
|
+
lookbehind: !0,
|
|
66
|
+
inside: t.languages.groovy
|
|
67
|
+
}
|
|
68
|
+
}), e.classes.push(o === "/" ? "regex" : "gstring");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
return i;
|
|
74
|
+
}
|
|
75
|
+
var g = l();
|
|
76
|
+
const p = /* @__PURE__ */ u(g), d = /* @__PURE__ */ c({
|
|
77
|
+
__proto__: null,
|
|
78
|
+
default: p
|
|
79
|
+
}, [g]);
|
|
80
|
+
export {
|
|
81
|
+
d as g
|
|
82
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { g as c } from "./index-Sj89RFCY.js";
|
|
2
|
+
import { r as f } from "./ruby-BQlisu6i.js";
|
|
3
|
+
function b(l, n) {
|
|
4
|
+
for (var a = 0; a < n.length; a++) {
|
|
5
|
+
const e = n[a];
|
|
6
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
7
|
+
for (const r in e)
|
|
8
|
+
if (r !== "default" && !(r in l)) {
|
|
9
|
+
const i = Object.getOwnPropertyDescriptor(e, r);
|
|
10
|
+
i && Object.defineProperty(l, r, i.get ? i : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => e[r]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(l, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var u, g;
|
|
20
|
+
function m() {
|
|
21
|
+
if (g) return u;
|
|
22
|
+
g = 1;
|
|
23
|
+
var l = f();
|
|
24
|
+
u = n, n.displayName = "haml", n.aliases = [];
|
|
25
|
+
function n(a) {
|
|
26
|
+
a.register(l), function(e) {
|
|
27
|
+
e.languages.haml = {
|
|
28
|
+
// Multiline stuff should appear before the rest
|
|
29
|
+
"multiline-comment": {
|
|
30
|
+
pattern: /((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,
|
|
31
|
+
lookbehind: !0,
|
|
32
|
+
alias: "comment"
|
|
33
|
+
},
|
|
34
|
+
"multiline-code": [
|
|
35
|
+
{
|
|
36
|
+
pattern: /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,
|
|
37
|
+
lookbehind: !0,
|
|
38
|
+
inside: e.languages.ruby
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
pattern: /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,
|
|
42
|
+
lookbehind: !0,
|
|
43
|
+
inside: e.languages.ruby
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
// See at the end of the file for known filters
|
|
47
|
+
filter: {
|
|
48
|
+
pattern: /((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,
|
|
49
|
+
lookbehind: !0,
|
|
50
|
+
inside: {
|
|
51
|
+
"filter-name": {
|
|
52
|
+
pattern: /^:[\w-]+/,
|
|
53
|
+
alias: "symbol"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
markup: {
|
|
58
|
+
pattern: /((?:^|\r?\n|\r)[\t ]*)<.+/,
|
|
59
|
+
lookbehind: !0,
|
|
60
|
+
inside: e.languages.markup
|
|
61
|
+
},
|
|
62
|
+
doctype: {
|
|
63
|
+
pattern: /((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,
|
|
64
|
+
lookbehind: !0
|
|
65
|
+
},
|
|
66
|
+
tag: {
|
|
67
|
+
// Allows for one nested group of braces
|
|
68
|
+
pattern: /((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,
|
|
69
|
+
lookbehind: !0,
|
|
70
|
+
inside: {
|
|
71
|
+
attributes: [
|
|
72
|
+
{
|
|
73
|
+
// Lookbehind tries to prevent interpolations from breaking it all
|
|
74
|
+
// Allows for one nested group of braces
|
|
75
|
+
pattern: /(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,
|
|
76
|
+
lookbehind: !0,
|
|
77
|
+
inside: e.languages.ruby
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
pattern: /\([^)]+\)/,
|
|
81
|
+
inside: {
|
|
82
|
+
"attr-value": {
|
|
83
|
+
pattern: /(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,
|
|
84
|
+
lookbehind: !0
|
|
85
|
+
},
|
|
86
|
+
"attr-name": /[\w:-]+(?=\s*!?=|\s*[,)])/,
|
|
87
|
+
punctuation: /[=(),]/
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
pattern: /\[[^\]]+\]/,
|
|
92
|
+
inside: e.languages.ruby
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
punctuation: /[<>]/
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
code: {
|
|
99
|
+
pattern: /((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,
|
|
100
|
+
lookbehind: !0,
|
|
101
|
+
inside: e.languages.ruby
|
|
102
|
+
},
|
|
103
|
+
// Interpolations in plain text
|
|
104
|
+
interpolation: {
|
|
105
|
+
pattern: /#\{[^}]+\}/,
|
|
106
|
+
inside: {
|
|
107
|
+
delimiter: {
|
|
108
|
+
pattern: /^#\{|\}$/,
|
|
109
|
+
alias: "punctuation"
|
|
110
|
+
},
|
|
111
|
+
ruby: {
|
|
112
|
+
pattern: /[\s\S]+/,
|
|
113
|
+
inside: e.languages.ruby
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
punctuation: {
|
|
118
|
+
pattern: /((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,
|
|
119
|
+
lookbehind: !0
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
for (var r = "((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+", i = [
|
|
123
|
+
"css",
|
|
124
|
+
{
|
|
125
|
+
filter: "coffee",
|
|
126
|
+
language: "coffeescript"
|
|
127
|
+
},
|
|
128
|
+
"erb",
|
|
129
|
+
"javascript",
|
|
130
|
+
"less",
|
|
131
|
+
"markdown",
|
|
132
|
+
"ruby",
|
|
133
|
+
"scss",
|
|
134
|
+
"textile"
|
|
135
|
+
], s = {}, o = 0, d = i.length; o < d; o++) {
|
|
136
|
+
var t = i[o];
|
|
137
|
+
t = typeof t == "string" ? {
|
|
138
|
+
filter: t,
|
|
139
|
+
language: t
|
|
140
|
+
} : t, e.languages[t.language] && (s["filter-" + t.filter] = {
|
|
141
|
+
pattern: RegExp(
|
|
142
|
+
r.replace("{{filter_name}}", function() {
|
|
143
|
+
return t.filter;
|
|
144
|
+
})
|
|
145
|
+
),
|
|
146
|
+
lookbehind: !0,
|
|
147
|
+
inside: {
|
|
148
|
+
"filter-name": {
|
|
149
|
+
pattern: /^:[\w-]+/,
|
|
150
|
+
alias: "symbol"
|
|
151
|
+
},
|
|
152
|
+
text: {
|
|
153
|
+
pattern: /[\s\S]+/,
|
|
154
|
+
alias: [t.language, "language-" + t.language],
|
|
155
|
+
inside: e.languages[t.language]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
e.languages.insertBefore("haml", "filter", s);
|
|
161
|
+
}(a);
|
|
162
|
+
}
|
|
163
|
+
return u;
|
|
164
|
+
}
|
|
165
|
+
var p = m();
|
|
166
|
+
const h = /* @__PURE__ */ c(p), v = /* @__PURE__ */ b({
|
|
167
|
+
__proto__: null,
|
|
168
|
+
default: h
|
|
169
|
+
}, [p]);
|
|
170
|
+
export {
|
|
171
|
+
v as h
|
|
172
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { g as i } from "./index-Sj89RFCY.js";
|
|
2
|
+
import { r as d } from "./markup-templating-CVTxtFGH.js";
|
|
3
|
+
function b(n, r) {
|
|
4
|
+
for (var t = 0; t < r.length; t++) {
|
|
5
|
+
const e = r[t];
|
|
6
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
7
|
+
for (const a in e)
|
|
8
|
+
if (a !== "default" && !(a in n)) {
|
|
9
|
+
const s = Object.getOwnPropertyDescriptor(e, a);
|
|
10
|
+
s && Object.defineProperty(n, a, s.get ? s : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => e[a]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var o, l;
|
|
20
|
+
function g() {
|
|
21
|
+
if (l) return o;
|
|
22
|
+
l = 1;
|
|
23
|
+
var n = d();
|
|
24
|
+
o = r, r.displayName = "handlebars", r.aliases = ["hbs"];
|
|
25
|
+
function r(t) {
|
|
26
|
+
t.register(n), function(e) {
|
|
27
|
+
e.languages.handlebars = {
|
|
28
|
+
comment: /\{\{![\s\S]*?\}\}/,
|
|
29
|
+
delimiter: {
|
|
30
|
+
pattern: /^\{\{\{?|\}\}\}?$/,
|
|
31
|
+
alias: "punctuation"
|
|
32
|
+
},
|
|
33
|
+
string: /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
34
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,
|
|
35
|
+
boolean: /\b(?:false|true)\b/,
|
|
36
|
+
block: {
|
|
37
|
+
pattern: /^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,
|
|
38
|
+
lookbehind: !0,
|
|
39
|
+
alias: "keyword"
|
|
40
|
+
},
|
|
41
|
+
brackets: {
|
|
42
|
+
pattern: /\[[^\]]+\]/,
|
|
43
|
+
inside: {
|
|
44
|
+
punctuation: /\[|\]/,
|
|
45
|
+
variable: /[\s\S]+/
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
punctuation: /[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,
|
|
49
|
+
variable: /[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/
|
|
50
|
+
}, e.hooks.add("before-tokenize", function(a) {
|
|
51
|
+
var s = /\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;
|
|
52
|
+
e.languages["markup-templating"].buildPlaceholders(
|
|
53
|
+
a,
|
|
54
|
+
"handlebars",
|
|
55
|
+
s
|
|
56
|
+
);
|
|
57
|
+
}), e.hooks.add("after-tokenize", function(a) {
|
|
58
|
+
e.languages["markup-templating"].tokenizePlaceholders(
|
|
59
|
+
a,
|
|
60
|
+
"handlebars"
|
|
61
|
+
);
|
|
62
|
+
}), e.languages.hbs = e.languages.handlebars;
|
|
63
|
+
}(t);
|
|
64
|
+
}
|
|
65
|
+
return o;
|
|
66
|
+
}
|
|
67
|
+
var u = g();
|
|
68
|
+
const p = /* @__PURE__ */ i(u), h = /* @__PURE__ */ b({
|
|
69
|
+
__proto__: null,
|
|
70
|
+
default: p
|
|
71
|
+
}, [u]);
|
|
72
|
+
export {
|
|
73
|
+
h
|
|
74
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { g as n } from "./index-Sj89RFCY.js";
|
|
2
|
+
import { r as f } from "./haskell-DR6jYji5.js";
|
|
3
|
+
function i(t, s) {
|
|
4
|
+
for (var o = 0; o < s.length; o++) {
|
|
5
|
+
const e = s[o];
|
|
6
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
7
|
+
for (const r in e)
|
|
8
|
+
if (r !== "default" && !(r in t)) {
|
|
9
|
+
const a = Object.getOwnPropertyDescriptor(e, r);
|
|
10
|
+
a && Object.defineProperty(t, r, a.get ? a : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => e[r]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var l = f();
|
|
20
|
+
const c = /* @__PURE__ */ n(l), g = /* @__PURE__ */ i({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
default: c
|
|
23
|
+
}, [l]);
|
|
24
|
+
export {
|
|
25
|
+
g as h
|
|
26
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var t, i;
|
|
2
|
+
function r() {
|
|
3
|
+
if (i) return t;
|
|
4
|
+
i = 1, t = e, e.displayName = "haskell", e.aliases = ["hs"];
|
|
5
|
+
function e(a) {
|
|
6
|
+
a.languages.haskell = {
|
|
7
|
+
comment: {
|
|
8
|
+
pattern: /(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,
|
|
9
|
+
lookbehind: !0
|
|
10
|
+
},
|
|
11
|
+
char: {
|
|
12
|
+
pattern: /'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,
|
|
13
|
+
alias: "string"
|
|
14
|
+
},
|
|
15
|
+
string: {
|
|
16
|
+
pattern: /"(?:[^\\"]|\\(?:\S|\s+\\))*"/,
|
|
17
|
+
greedy: !0
|
|
18
|
+
},
|
|
19
|
+
keyword: /\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,
|
|
20
|
+
"import-statement": {
|
|
21
|
+
// The imported or hidden names are not included in this import
|
|
22
|
+
// statement. This is because we want to highlight those exactly like
|
|
23
|
+
// we do for the names in the program.
|
|
24
|
+
pattern: /(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,
|
|
25
|
+
lookbehind: !0,
|
|
26
|
+
inside: {
|
|
27
|
+
keyword: /\b(?:as|hiding|import|qualified)\b/,
|
|
28
|
+
punctuation: /\./
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
// These are builtin variables only. Constructors are highlighted later as a constant.
|
|
32
|
+
builtin: /\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,
|
|
33
|
+
// decimal integers and floating point numbers | octal integers | hexadecimal integers
|
|
34
|
+
number: /\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,
|
|
35
|
+
operator: [
|
|
36
|
+
{
|
|
37
|
+
// infix operator
|
|
38
|
+
pattern: /`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,
|
|
39
|
+
greedy: !0
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
// function composition
|
|
43
|
+
pattern: /(\s)\.(?=\s)/,
|
|
44
|
+
lookbehind: !0
|
|
45
|
+
},
|
|
46
|
+
// Most of this is needed because of the meaning of a single '.'.
|
|
47
|
+
// If it stands alone freely, it is the function composition.
|
|
48
|
+
// It may also be a separator between a module name and an identifier => no
|
|
49
|
+
// operator. If it comes together with other special characters it is an
|
|
50
|
+
// operator too.
|
|
51
|
+
//
|
|
52
|
+
// This regex means: /[-!#$%*+=?&@|~.:<>^\\\/]+/ without /\./.
|
|
53
|
+
/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/
|
|
54
|
+
],
|
|
55
|
+
// In Haskell, nearly everything is a variable, do not highlight these.
|
|
56
|
+
hvariable: {
|
|
57
|
+
pattern: /\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,
|
|
58
|
+
inside: {
|
|
59
|
+
punctuation: /\./
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
constant: {
|
|
63
|
+
pattern: /\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,
|
|
64
|
+
inside: {
|
|
65
|
+
punctuation: /\./
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
punctuation: /[{}[\];(),.:]/
|
|
69
|
+
}, a.languages.hs = a.languages.haskell;
|
|
70
|
+
}
|
|
71
|
+
return t;
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
r
|
|
75
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { g as u } from "./index-Sj89RFCY.js";
|
|
2
|
+
function p(t, e) {
|
|
3
|
+
for (var n = 0; n < e.length; n++) {
|
|
4
|
+
const a = e[n];
|
|
5
|
+
if (typeof a != "string" && !Array.isArray(a)) {
|
|
6
|
+
for (const r in a)
|
|
7
|
+
if (r !== "default" && !(r in t)) {
|
|
8
|
+
const i = Object.getOwnPropertyDescriptor(a, r);
|
|
9
|
+
i && Object.defineProperty(t, r, i.get ? i : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => a[r]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var s, o;
|
|
19
|
+
function g() {
|
|
20
|
+
if (o) return s;
|
|
21
|
+
o = 1, s = t, t.displayName = "haxe", t.aliases = [];
|
|
22
|
+
function t(e) {
|
|
23
|
+
e.languages.haxe = e.languages.extend("clike", {
|
|
24
|
+
string: {
|
|
25
|
+
// Strings can be multi-line
|
|
26
|
+
pattern: /"(?:[^"\\]|\\[\s\S])*"/,
|
|
27
|
+
greedy: !0
|
|
28
|
+
},
|
|
29
|
+
"class-name": [
|
|
30
|
+
{
|
|
31
|
+
pattern: /(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,
|
|
32
|
+
lookbehind: !0
|
|
33
|
+
},
|
|
34
|
+
// based on naming convention
|
|
35
|
+
/\b[A-Z]\w*/
|
|
36
|
+
],
|
|
37
|
+
// The final look-ahead prevents highlighting of keywords if expressions such as "haxe.macro.Expr"
|
|
38
|
+
keyword: /\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,
|
|
39
|
+
function: {
|
|
40
|
+
pattern: /\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,
|
|
41
|
+
greedy: !0
|
|
42
|
+
},
|
|
43
|
+
operator: /\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/
|
|
44
|
+
}), e.languages.insertBefore("haxe", "string", {
|
|
45
|
+
"string-interpolation": {
|
|
46
|
+
pattern: /'(?:[^'\\]|\\[\s\S])*'/,
|
|
47
|
+
greedy: !0,
|
|
48
|
+
inside: {
|
|
49
|
+
interpolation: {
|
|
50
|
+
pattern: /(^|[^\\])\$(?:\w+|\{[^{}]+\})/,
|
|
51
|
+
lookbehind: !0,
|
|
52
|
+
inside: {
|
|
53
|
+
"interpolation-punctuation": {
|
|
54
|
+
pattern: /^\$\{?|\}$/,
|
|
55
|
+
alias: "punctuation"
|
|
56
|
+
},
|
|
57
|
+
expression: {
|
|
58
|
+
pattern: /[\s\S]+/,
|
|
59
|
+
inside: e.languages.haxe
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
string: /[\s\S]+/
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}), e.languages.insertBefore("haxe", "class-name", {
|
|
67
|
+
regex: {
|
|
68
|
+
pattern: /~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,
|
|
69
|
+
greedy: !0,
|
|
70
|
+
inside: {
|
|
71
|
+
"regex-flags": /\b[a-z]+$/,
|
|
72
|
+
"regex-source": {
|
|
73
|
+
pattern: /^(~\/)[\s\S]+(?=\/$)/,
|
|
74
|
+
lookbehind: !0,
|
|
75
|
+
alias: "language-regex",
|
|
76
|
+
inside: e.languages.regex
|
|
77
|
+
},
|
|
78
|
+
"regex-delimiter": /^~\/|\/$/
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}), e.languages.insertBefore("haxe", "keyword", {
|
|
82
|
+
preprocessor: {
|
|
83
|
+
pattern: /#(?:else|elseif|end|if)\b.*/,
|
|
84
|
+
alias: "property"
|
|
85
|
+
},
|
|
86
|
+
metadata: {
|
|
87
|
+
pattern: /@:?[\w.]+/,
|
|
88
|
+
alias: "symbol"
|
|
89
|
+
},
|
|
90
|
+
reification: {
|
|
91
|
+
pattern: /\$(?:\w+|(?=\{))/,
|
|
92
|
+
alias: "important"
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return s;
|
|
97
|
+
}
|
|
98
|
+
var l = g();
|
|
99
|
+
const c = /* @__PURE__ */ u(l), f = /* @__PURE__ */ p({
|
|
100
|
+
__proto__: null,
|
|
101
|
+
default: c
|
|
102
|
+
}, [l]);
|
|
103
|
+
export {
|
|
104
|
+
f as h
|
|
105
|
+
};
|