editor.md-next 0.0.0-stage → 0.1.1
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 +32 -0
- package/dist/cdn/editormd-next.min.js +96 -0
- package/dist/cdn/index.css +2 -0
- package/dist/es/chunks/apl-BsW9fB9B.js +74 -0
- package/dist/es/chunks/asciiarmor-CZm6RLC5.js +30 -0
- package/dist/es/chunks/asn1-DBNYSAs9.js +86 -0
- package/dist/es/chunks/asterisk-XIYTp-BQ.js +63 -0
- package/dist/es/chunks/brainfuck-C03PadMX.js +26 -0
- package/dist/es/chunks/clike-QWVxZJBi.js +583 -0
- package/dist/es/chunks/clojure-DT_PY7rc.js +98 -0
- package/dist/es/chunks/cmake-DsoLxE-D.js +27 -0
- package/dist/es/chunks/cobol-CZjCUlI-.js +59 -0
- package/dist/es/chunks/coffeescript-CuHwxkgS.js +174 -0
- package/dist/es/chunks/commonlisp-CGpKWWCQ.js +90 -0
- package/dist/es/chunks/crystal-BH2tBqmL.js +159 -0
- package/dist/es/chunks/css-C6pN9rmb.js +314 -0
- package/dist/es/chunks/cypher-DknS4f0k.js +66 -0
- package/dist/es/chunks/d-zXrED2QC.js +121 -0
- package/dist/es/chunks/diff-Ca3g43eR.js +15 -0
- package/dist/es/chunks/dist-9Y-Blrkp.js +118 -0
- package/dist/es/chunks/dist-B0cBTTiS.js +408 -0
- package/dist/es/chunks/dist-BX9Ur1J1.js +74 -0
- package/dist/es/chunks/dist-BmAxhg3z.js +555 -0
- package/dist/es/chunks/dist-C6c_aHTh.js +269 -0
- package/dist/es/chunks/dist-CGdw3vqm.js +429 -0
- package/dist/es/chunks/dist-CNbWaVYs.js +11572 -0
- package/dist/es/chunks/dist-CR-jmTSB.js +1338 -0
- package/dist/es/chunks/dist-CahNaXTc.js +388 -0
- package/dist/es/chunks/dist-CeqtAM8-.js +438 -0
- package/dist/es/chunks/dist-Clo-Jkvm.js +291 -0
- package/dist/es/chunks/dist-Cpw9AD2K.js +372 -0
- package/dist/es/chunks/dist-Ct5FNAAH.js +406 -0
- package/dist/es/chunks/dist-D0OW86fR.js +605 -0
- package/dist/es/chunks/dist-DAlgXLzd.js +110 -0
- package/dist/es/chunks/dist-DL-UifMi.js +744 -0
- package/dist/es/chunks/dist-DQadNG25.js +523 -0
- package/dist/es/chunks/dist-DlAXkWGE.js +67 -0
- package/dist/es/chunks/dist-DoThxrrR.js +371 -0
- package/dist/es/chunks/dist-DrwgGib-.js +377 -0
- package/dist/es/chunks/dist-P5rAF7pi.js +197 -0
- package/dist/es/chunks/dist-fTCYxiV-.js +355 -0
- package/dist/es/chunks/dockerfile-BZSDl6MT.js +196 -0
- package/dist/es/chunks/dtd-DzUNfrcJ.js +77 -0
- package/dist/es/chunks/dylan-CFjlscB1.js +186 -0
- package/dist/es/chunks/ebnf-Vn9hWL1o.js +67 -0
- package/dist/es/chunks/ecl-CbjLeBF5.js +105 -0
- package/dist/es/chunks/eiffel-Dmm3m78y.js +49 -0
- package/dist/es/chunks/elm-CSe2F7PE.js +85 -0
- package/dist/es/chunks/erlang-D6YOoBpM.js +321 -0
- package/dist/es/chunks/factor-DAqyQvq1.js +165 -0
- package/dist/es/chunks/fcl-BZA_wXmw.js +99 -0
- package/dist/es/chunks/forth-MNc4axOK.js +45 -0
- package/dist/es/chunks/fortran-auI4bdzC.js +40 -0
- package/dist/es/chunks/gas-CZDp8wLI.js +167 -0
- package/dist/es/chunks/gherkin-B12NX28O.js +29 -0
- package/dist/es/chunks/groovy-CBShT4in.js +143 -0
- package/dist/es/chunks/haskell-DQf5nq2l.js +85 -0
- package/dist/es/chunks/haxe-CBKywepX.js +351 -0
- package/dist/es/chunks/http-B-vrcJu5.js +43 -0
- package/dist/es/chunks/idl-kztl-rIS.js +41 -0
- package/dist/es/chunks/javascript-COVyUmNV.js +636 -0
- package/dist/es/chunks/julia-C7x1UmUy.js +173 -0
- package/dist/es/chunks/livescript-BcSQznfC.js +250 -0
- package/dist/es/chunks/lua-CuzOmeFy.js +104 -0
- package/dist/es/chunks/mathematica-C_8O0eBN.js +37 -0
- package/dist/es/chunks/mbox-CgRq7o1s.js +65 -0
- package/dist/es/chunks/mirc-46fAnY_I.js +61 -0
- package/dist/es/chunks/mllike-DwngWEOH.js +260 -0
- package/dist/es/chunks/modelica-CLh6SOPZ.js +82 -0
- package/dist/es/chunks/mscgen-CqCKoWqr.js +287 -0
- package/dist/es/chunks/mumps-CTaGGpGh.js +24 -0
- package/dist/es/chunks/nginx-D8_Tx5a5.js +76 -0
- package/dist/es/chunks/nsis-LQ_3myBa.js +143 -0
- package/dist/es/chunks/ntriples-C8_f-qnr.js +76 -0
- package/dist/es/chunks/octave-Bg8pIvq8.js +40 -0
- package/dist/es/chunks/oz-fY6iPhaV.js +151 -0
- package/dist/es/chunks/pascal-yJGuSy92.js +66 -0
- package/dist/es/chunks/perl-Cp3_dIJp.js +626 -0
- package/dist/es/chunks/pig-Dp8CFFHM.js +49 -0
- package/dist/es/chunks/powershell-CFKKqebC.js +233 -0
- package/dist/es/chunks/properties-bVaZpKhj.js +19 -0
- package/dist/es/chunks/protobuf-CJ_NuiRp.js +14 -0
- package/dist/es/chunks/pug-CNVrzrF7.js +202 -0
- package/dist/es/chunks/puppet-DFrFlsRb.js +37 -0
- package/dist/es/chunks/python-DDOdLHWp.js +219 -0
- package/dist/es/chunks/q-CfAEY3XK.js +82 -0
- package/dist/es/chunks/r-D33f5qKA.js +133 -0
- package/dist/es/chunks/rolldown-runtime-QGRDbDUS.js +19 -0
- package/dist/es/chunks/rpm-KA2CbYVz.js +39 -0
- package/dist/es/chunks/ruby-DkaeL5UR.js +165 -0
- package/dist/es/chunks/sas-BMhoxqFi.js +73 -0
- package/dist/es/chunks/scheme-DiiFnhTV.js +116 -0
- package/dist/es/chunks/shell-BkraTAet.js +108 -0
- package/dist/es/chunks/sieve-CO0RsW8J.js +59 -0
- package/dist/es/chunks/simple-mode-DwMrk-pB.js +95 -0
- package/dist/es/chunks/smalltalk-susA3LoJ.js +43 -0
- package/dist/es/chunks/solr-Dyiozr6d.js +36 -0
- package/dist/es/chunks/sparql-svcWfrig.js +78 -0
- package/dist/es/chunks/spreadsheet-D64TPnFY.js +48 -0
- package/dist/es/chunks/sql-iy-in7fW.js +254 -0
- package/dist/es/chunks/stex-CK4iWXBq.js +108 -0
- package/dist/es/chunks/stylus-Bla1TtoF.js +281 -0
- package/dist/es/chunks/swift-BfLWtovc.js +158 -0
- package/dist/es/chunks/tcl-Cqsx32oK.js +71 -0
- package/dist/es/chunks/textile-CP9LptjR.js +215 -0
- package/dist/es/chunks/tiddlywiki-Ta-GM0jK.js +129 -0
- package/dist/es/chunks/tiki-CX4cONcl.js +160 -0
- package/dist/es/chunks/toml-BvD52WqI.js +27 -0
- package/dist/es/chunks/troff-CQ9EHWHs.js +29 -0
- package/dist/es/chunks/ttcn-DvhS_Gkc.js +117 -0
- package/dist/es/chunks/ttcn-cfg-GQi0YvSM.js +80 -0
- package/dist/es/chunks/turtle-VdGQLPpt.js +78 -0
- package/dist/es/chunks/vb-CPJS1Nrj.js +108 -0
- package/dist/es/chunks/vbscript-DEYreBb1.js +208 -0
- package/dist/es/chunks/velocity-BzjrTOAF.js +89 -0
- package/dist/es/chunks/verilog-Bc3Yq1WU.js +218 -0
- package/dist/es/chunks/vhdl-BD6jHQjr.js +102 -0
- package/dist/es/chunks/webidl-C5YO-ffA.js +102 -0
- package/dist/es/chunks/xquery-ugZJVSaq.js +204 -0
- package/dist/es/chunks/yacas-tAOeQ6Ok.js +72 -0
- package/dist/es/chunks/z80-DZa7RpgS.js +43 -0
- package/dist/es/index.js +19829 -0
- package/dist/iife/index.iife.js +96 -0
- package/dist/index.css +2 -0
- package/dist/types/cm/create-view.d.ts +19 -0
- package/dist/types/cm/create-view.d.ts.map +1 -0
- package/dist/types/cm/shortcuts.d.ts +11 -0
- package/dist/types/cm/shortcuts.d.ts.map +1 -0
- package/dist/types/cm/themes.d.ts +24 -0
- package/dist/types/cm/themes.d.ts.map +1 -0
- package/dist/types/cm/themes.test.d.ts +2 -0
- package/dist/types/cm/themes.test.d.ts.map +1 -0
- package/dist/types/defaults.d.ts +5 -0
- package/dist/types/defaults.d.ts.map +1 -0
- package/dist/types/dialogs/code.d.ts +5 -0
- package/dist/types/dialogs/code.d.ts.map +1 -0
- package/dist/types/dialogs/data/html-entities-data.d.ts +9 -0
- package/dist/types/dialogs/data/html-entities-data.d.ts.map +1 -0
- package/dist/types/dialogs/dialog.d.ts +37 -0
- package/dist/types/dialogs/dialog.d.ts.map +1 -0
- package/dist/types/dialogs/emoji.d.ts +4 -0
- package/dist/types/dialogs/emoji.d.ts.map +1 -0
- package/dist/types/dialogs/entities.d.ts +4 -0
- package/dist/types/dialogs/entities.d.ts.map +1 -0
- package/dist/types/dialogs/form.d.ts +12 -0
- package/dist/types/dialogs/form.d.ts.map +1 -0
- package/dist/types/dialogs/image.d.ts +4 -0
- package/dist/types/dialogs/image.d.ts.map +1 -0
- package/dist/types/dialogs/link.d.ts +6 -0
- package/dist/types/dialogs/link.d.ts.map +1 -0
- package/dist/types/dialogs/misc.d.ts +6 -0
- package/dist/types/dialogs/misc.d.ts.map +1 -0
- package/dist/types/dialogs/registry.d.ts +8 -0
- package/dist/types/dialogs/registry.d.ts.map +1 -0
- package/dist/types/dialogs/table.d.ts +4 -0
- package/dist/types/dialogs/table.d.ts.map +1 -0
- package/dist/types/editor.d.ts +105 -0
- package/dist/types/editor.d.ts.map +1 -0
- package/dist/types/features/paste-drop.d.ts +4 -0
- package/dist/types/features/paste-drop.d.ts.map +1 -0
- package/dist/types/features/view-modes.d.ts +8 -0
- package/dist/types/features/view-modes.d.ts.map +1 -0
- package/dist/types/i18n/en.d.ts +3 -0
- package/dist/types/i18n/en.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +9 -0
- package/dist/types/i18n/index.d.ts.map +1 -0
- package/dist/types/i18n/zh-cn.d.ts +3 -0
- package/dist/types/i18n/zh-cn.d.ts.map +1 -0
- package/dist/types/i18n/zh-tw.d.ts +3 -0
- package/dist/types/i18n/zh-tw.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lifecycle/layout.d.ts +11 -0
- package/dist/types/lifecycle/layout.d.ts.map +1 -0
- package/dist/types/lifecycle/mount.d.ts +12 -0
- package/dist/types/lifecycle/mount.d.ts.map +1 -0
- package/dist/types/markdown/cdn-lazy.d.ts +49 -0
- package/dist/types/markdown/cdn-lazy.d.ts.map +1 -0
- package/dist/types/markdown/data/emoji-data.d.ts +13 -0
- package/dist/types/markdown/data/emoji-data.d.ts.map +1 -0
- package/dist/types/markdown/data/emoji-unicode.d.ts +6 -0
- package/dist/types/markdown/data/emoji-unicode.d.ts.map +1 -0
- package/dist/types/markdown/data-attr.d.ts +10 -0
- package/dist/types/markdown/data-attr.d.ts.map +1 -0
- package/dist/types/markdown/engine.d.ts +18 -0
- package/dist/types/markdown/engine.d.ts.map +1 -0
- package/dist/types/markdown/engine.test.d.ts +2 -0
- package/dist/types/markdown/engine.test.d.ts.map +1 -0
- package/dist/types/markdown/highlight.d.ts +9 -0
- package/dist/types/markdown/highlight.d.ts.map +1 -0
- package/dist/types/markdown/plugin-emoji.d.ts +9 -0
- package/dist/types/markdown/plugin-emoji.d.ts.map +1 -0
- package/dist/types/markdown/plugin-fence.d.ts +3 -0
- package/dist/types/markdown/plugin-fence.d.ts.map +1 -0
- package/dist/types/markdown/plugin-misc.d.ts +9 -0
- package/dist/types/markdown/plugin-misc.d.ts.map +1 -0
- package/dist/types/markdown/plugin-tasks.d.ts +4 -0
- package/dist/types/markdown/plugin-tasks.d.ts.map +1 -0
- package/dist/types/markdown/plugin-tex.d.ts +3 -0
- package/dist/types/markdown/plugin-tex.d.ts.map +1 -0
- package/dist/types/markdown/plugin-toc.d.ts +18 -0
- package/dist/types/markdown/plugin-toc.d.ts.map +1 -0
- package/dist/types/normalize.d.ts +3 -0
- package/dist/types/normalize.d.ts.map +1 -0
- package/dist/types/preview/pane.d.ts +9 -0
- package/dist/types/preview/pane.d.ts.map +1 -0
- package/dist/types/preview/post-render.d.ts +19 -0
- package/dist/types/preview/post-render.d.ts.map +1 -0
- package/dist/types/preview/sync-scroll.d.ts +13 -0
- package/dist/types/preview/sync-scroll.d.ts.map +1 -0
- package/dist/types/preview/toc.d.ts +15 -0
- package/dist/types/preview/toc.d.ts.map +1 -0
- package/dist/types/render-to.d.ts +3 -0
- package/dist/types/render-to.d.ts.map +1 -0
- package/dist/types/toolbar/handlers.d.ts +4 -0
- package/dist/types/toolbar/handlers.d.ts.map +1 -0
- package/dist/types/toolbar/icons.d.ts +5 -0
- package/dist/types/toolbar/icons.d.ts.map +1 -0
- package/dist/types/toolbar/modes.d.ts +20 -0
- package/dist/types/toolbar/modes.d.ts.map +1 -0
- package/dist/types/toolbar/toolbar.d.ts +16 -0
- package/dist/types/toolbar/toolbar.d.ts.map +1 -0
- package/dist/types/types/common.d.ts +7 -0
- package/dist/types/types/common.d.ts.map +1 -0
- package/dist/types/types/events.d.ts +38 -0
- package/dist/types/types/events.d.ts.map +1 -0
- package/dist/types/types/lang.d.ts +95 -0
- package/dist/types/types/lang.d.ts.map +1 -0
- package/dist/types/types/settings.d.ts +171 -0
- package/dist/types/types/settings.d.ts.map +1 -0
- package/dist/umd/index.umd.cjs +96 -0
- package/package.json +69 -3
- package/README.md +0 -3
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/mirc.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
|
|
4
|
+
return t;
|
|
5
|
+
}
|
|
6
|
+
var t = e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"), n = e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"), r = e("if elseif else and not or eq ne in ni for foreach while switch"), i = /[+\-*&%=<>!?^\/\|]/;
|
|
7
|
+
function a(e, t, n) {
|
|
8
|
+
return t.tokenize = n, n(e, t);
|
|
9
|
+
}
|
|
10
|
+
function o(e, o) {
|
|
11
|
+
var l = o.beforeParams;
|
|
12
|
+
o.beforeParams = !1;
|
|
13
|
+
var u = e.next();
|
|
14
|
+
if (/[\[\]{}\(\),\.]/.test(u)) return u == "(" && l ? o.inParams = !0 : u == ")" && (o.inParams = !1), null;
|
|
15
|
+
if (/\d/.test(u)) return e.eatWhile(/[\w\.]/), "number";
|
|
16
|
+
if (u == "\\") return e.eat("\\"), e.eat(/./), "number";
|
|
17
|
+
if (u == "/" && e.eat("*")) return a(e, o, s);
|
|
18
|
+
if (u == ";" && e.match(/ *\( *\(/)) return a(e, o, c);
|
|
19
|
+
if (u == ";" && !o.inParams) return e.skipToEnd(), "comment";
|
|
20
|
+
if (u == "\"") return e.eat(/"/), "keyword";
|
|
21
|
+
if (u == "$") return e.eatWhile(/[$_a-z0-9A-Z\.:]/), t && t.propertyIsEnumerable(e.current().toLowerCase()) ? "keyword" : (o.beforeParams = !0, "builtin");
|
|
22
|
+
if (u == "%") return e.eatWhile(/[^,\s()]/), o.beforeParams = !0, "string";
|
|
23
|
+
if (i.test(u)) return e.eatWhile(i), "operator";
|
|
24
|
+
e.eatWhile(/[\w\$_{}]/);
|
|
25
|
+
var d = e.current().toLowerCase();
|
|
26
|
+
return n && n.propertyIsEnumerable(d) ? "keyword" : r && r.propertyIsEnumerable(d) ? (o.beforeParams = !0, "keyword") : null;
|
|
27
|
+
}
|
|
28
|
+
function s(e, t) {
|
|
29
|
+
for (var n = !1, r; r = e.next();) {
|
|
30
|
+
if (r == "/" && n) {
|
|
31
|
+
t.tokenize = o;
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
n = r == "*";
|
|
35
|
+
}
|
|
36
|
+
return "comment";
|
|
37
|
+
}
|
|
38
|
+
function c(e, t) {
|
|
39
|
+
for (var n = 0, r; r = e.next();) {
|
|
40
|
+
if (r == ";" && n == 2) {
|
|
41
|
+
t.tokenize = o;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
r == ")" ? n++ : r != " " && (n = 0);
|
|
45
|
+
}
|
|
46
|
+
return "meta";
|
|
47
|
+
}
|
|
48
|
+
var l = {
|
|
49
|
+
name: "mirc",
|
|
50
|
+
startState: function() {
|
|
51
|
+
return {
|
|
52
|
+
tokenize: o,
|
|
53
|
+
beforeParams: !1,
|
|
54
|
+
inParams: !1
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
token: function(e, t) {
|
|
58
|
+
return e.eatSpace() ? null : t.tokenize(e, t);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export { l as mirc };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/mllike.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
var t = {
|
|
4
|
+
as: "keyword",
|
|
5
|
+
do: "keyword",
|
|
6
|
+
else: "keyword",
|
|
7
|
+
end: "keyword",
|
|
8
|
+
exception: "keyword",
|
|
9
|
+
fun: "keyword",
|
|
10
|
+
functor: "keyword",
|
|
11
|
+
if: "keyword",
|
|
12
|
+
in: "keyword",
|
|
13
|
+
include: "keyword",
|
|
14
|
+
let: "keyword",
|
|
15
|
+
of: "keyword",
|
|
16
|
+
open: "keyword",
|
|
17
|
+
rec: "keyword",
|
|
18
|
+
struct: "keyword",
|
|
19
|
+
then: "keyword",
|
|
20
|
+
type: "keyword",
|
|
21
|
+
val: "keyword",
|
|
22
|
+
while: "keyword",
|
|
23
|
+
with: "keyword"
|
|
24
|
+
}, n = e.extraWords || {};
|
|
25
|
+
for (var r in n) n.hasOwnProperty(r) && (t[r] = e.extraWords[r]);
|
|
26
|
+
var i = [];
|
|
27
|
+
for (var a in t) i.push(a);
|
|
28
|
+
function o(n, r) {
|
|
29
|
+
var i = n.next();
|
|
30
|
+
if (i === "\"") return r.tokenize = s, r.tokenize(n, r);
|
|
31
|
+
if (i === "{" && n.eat("|")) return r.longString = !0, r.tokenize = l, r.tokenize(n, r);
|
|
32
|
+
if (i === "(" && n.match(/^\*(?!\))/)) return r.commentLevel++, r.tokenize = c, r.tokenize(n, r);
|
|
33
|
+
if (i === "~" || i === "?") return n.eatWhile(/\w/), "variableName.special";
|
|
34
|
+
if (i === "`") return n.eatWhile(/\w/), "quote";
|
|
35
|
+
if (i === "/" && e.slashComments && n.eat("/")) return n.skipToEnd(), "comment";
|
|
36
|
+
if (/\d/.test(i)) return i === "0" && n.eat(/[bB]/) && n.eatWhile(/[01]/), i === "0" && n.eat(/[xX]/) && n.eatWhile(/[0-9a-fA-F]/), i === "0" && n.eat(/[oO]/) ? n.eatWhile(/[0-7]/) : (n.eatWhile(/[\d_]/), n.eat(".") && n.eatWhile(/[\d]/), n.eat(/[eE]/) && n.eatWhile(/[\d\-+]/)), "number";
|
|
37
|
+
if (/[+\-*&%=<>!?|@\.~:]/.test(i)) return "operator";
|
|
38
|
+
if (/[\w\xa1-\uffff]/.test(i)) {
|
|
39
|
+
n.eatWhile(/[\w\xa1-\uffff]/);
|
|
40
|
+
var a = n.current();
|
|
41
|
+
return t.hasOwnProperty(a) ? t[a] : "variable";
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function s(e, t) {
|
|
46
|
+
for (var n, r = !1, i = !1; (n = e.next()) != null;) {
|
|
47
|
+
if (n === "\"" && !i) {
|
|
48
|
+
r = !0;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
i = !i && n === "\\";
|
|
52
|
+
}
|
|
53
|
+
return r && !i && (t.tokenize = o), "string";
|
|
54
|
+
}
|
|
55
|
+
function c(e, t) {
|
|
56
|
+
for (var n, r; t.commentLevel > 0 && (r = e.next()) != null;) n === "(" && r === "*" && t.commentLevel++, n === "*" && r === ")" && t.commentLevel--, n = r;
|
|
57
|
+
return t.commentLevel <= 0 && (t.tokenize = o), "comment";
|
|
58
|
+
}
|
|
59
|
+
function l(e, t) {
|
|
60
|
+
for (var n, r; t.longString && (r = e.next()) != null;) n === "|" && r === "}" && (t.longString = !1), n = r;
|
|
61
|
+
return t.longString || (t.tokenize = o), "string";
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
startState: function() {
|
|
65
|
+
return {
|
|
66
|
+
tokenize: o,
|
|
67
|
+
commentLevel: 0,
|
|
68
|
+
longString: !1
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
token: function(e, t) {
|
|
72
|
+
return e.eatSpace() ? null : t.tokenize(e, t);
|
|
73
|
+
},
|
|
74
|
+
languageData: {
|
|
75
|
+
autocomplete: i,
|
|
76
|
+
commentTokens: {
|
|
77
|
+
line: e.slashComments ? "//" : void 0,
|
|
78
|
+
block: {
|
|
79
|
+
open: "(*",
|
|
80
|
+
close: "*)"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
var t = e({
|
|
87
|
+
name: "ocaml",
|
|
88
|
+
extraWords: {
|
|
89
|
+
and: "keyword",
|
|
90
|
+
assert: "keyword",
|
|
91
|
+
begin: "keyword",
|
|
92
|
+
class: "keyword",
|
|
93
|
+
constraint: "keyword",
|
|
94
|
+
done: "keyword",
|
|
95
|
+
downto: "keyword",
|
|
96
|
+
external: "keyword",
|
|
97
|
+
function: "keyword",
|
|
98
|
+
initializer: "keyword",
|
|
99
|
+
lazy: "keyword",
|
|
100
|
+
match: "keyword",
|
|
101
|
+
method: "keyword",
|
|
102
|
+
module: "keyword",
|
|
103
|
+
mutable: "keyword",
|
|
104
|
+
new: "keyword",
|
|
105
|
+
nonrec: "keyword",
|
|
106
|
+
object: "keyword",
|
|
107
|
+
private: "keyword",
|
|
108
|
+
sig: "keyword",
|
|
109
|
+
to: "keyword",
|
|
110
|
+
try: "keyword",
|
|
111
|
+
value: "keyword",
|
|
112
|
+
virtual: "keyword",
|
|
113
|
+
when: "keyword",
|
|
114
|
+
raise: "builtin",
|
|
115
|
+
failwith: "builtin",
|
|
116
|
+
true: "builtin",
|
|
117
|
+
false: "builtin",
|
|
118
|
+
asr: "builtin",
|
|
119
|
+
land: "builtin",
|
|
120
|
+
lor: "builtin",
|
|
121
|
+
lsl: "builtin",
|
|
122
|
+
lsr: "builtin",
|
|
123
|
+
lxor: "builtin",
|
|
124
|
+
mod: "builtin",
|
|
125
|
+
or: "builtin",
|
|
126
|
+
raise_notrace: "builtin",
|
|
127
|
+
trace: "builtin",
|
|
128
|
+
exit: "builtin",
|
|
129
|
+
print_string: "builtin",
|
|
130
|
+
print_endline: "builtin",
|
|
131
|
+
int: "type",
|
|
132
|
+
float: "type",
|
|
133
|
+
bool: "type",
|
|
134
|
+
char: "type",
|
|
135
|
+
string: "type",
|
|
136
|
+
unit: "type",
|
|
137
|
+
List: "builtin"
|
|
138
|
+
}
|
|
139
|
+
}), n = e({
|
|
140
|
+
name: "fsharp",
|
|
141
|
+
extraWords: {
|
|
142
|
+
abstract: "keyword",
|
|
143
|
+
assert: "keyword",
|
|
144
|
+
base: "keyword",
|
|
145
|
+
begin: "keyword",
|
|
146
|
+
class: "keyword",
|
|
147
|
+
default: "keyword",
|
|
148
|
+
delegate: "keyword",
|
|
149
|
+
"do!": "keyword",
|
|
150
|
+
done: "keyword",
|
|
151
|
+
downcast: "keyword",
|
|
152
|
+
downto: "keyword",
|
|
153
|
+
elif: "keyword",
|
|
154
|
+
extern: "keyword",
|
|
155
|
+
finally: "keyword",
|
|
156
|
+
for: "keyword",
|
|
157
|
+
function: "keyword",
|
|
158
|
+
global: "keyword",
|
|
159
|
+
inherit: "keyword",
|
|
160
|
+
inline: "keyword",
|
|
161
|
+
interface: "keyword",
|
|
162
|
+
internal: "keyword",
|
|
163
|
+
lazy: "keyword",
|
|
164
|
+
"let!": "keyword",
|
|
165
|
+
match: "keyword",
|
|
166
|
+
member: "keyword",
|
|
167
|
+
module: "keyword",
|
|
168
|
+
mutable: "keyword",
|
|
169
|
+
namespace: "keyword",
|
|
170
|
+
new: "keyword",
|
|
171
|
+
null: "keyword",
|
|
172
|
+
override: "keyword",
|
|
173
|
+
private: "keyword",
|
|
174
|
+
public: "keyword",
|
|
175
|
+
"return!": "keyword",
|
|
176
|
+
return: "keyword",
|
|
177
|
+
select: "keyword",
|
|
178
|
+
static: "keyword",
|
|
179
|
+
to: "keyword",
|
|
180
|
+
try: "keyword",
|
|
181
|
+
upcast: "keyword",
|
|
182
|
+
"use!": "keyword",
|
|
183
|
+
use: "keyword",
|
|
184
|
+
void: "keyword",
|
|
185
|
+
when: "keyword",
|
|
186
|
+
"yield!": "keyword",
|
|
187
|
+
yield: "keyword",
|
|
188
|
+
atomic: "keyword",
|
|
189
|
+
break: "keyword",
|
|
190
|
+
checked: "keyword",
|
|
191
|
+
component: "keyword",
|
|
192
|
+
const: "keyword",
|
|
193
|
+
constraint: "keyword",
|
|
194
|
+
constructor: "keyword",
|
|
195
|
+
continue: "keyword",
|
|
196
|
+
eager: "keyword",
|
|
197
|
+
event: "keyword",
|
|
198
|
+
external: "keyword",
|
|
199
|
+
fixed: "keyword",
|
|
200
|
+
method: "keyword",
|
|
201
|
+
mixin: "keyword",
|
|
202
|
+
object: "keyword",
|
|
203
|
+
parallel: "keyword",
|
|
204
|
+
process: "keyword",
|
|
205
|
+
protected: "keyword",
|
|
206
|
+
pure: "keyword",
|
|
207
|
+
sealed: "keyword",
|
|
208
|
+
tailcall: "keyword",
|
|
209
|
+
trait: "keyword",
|
|
210
|
+
virtual: "keyword",
|
|
211
|
+
volatile: "keyword",
|
|
212
|
+
List: "builtin",
|
|
213
|
+
Seq: "builtin",
|
|
214
|
+
Map: "builtin",
|
|
215
|
+
Set: "builtin",
|
|
216
|
+
Option: "builtin",
|
|
217
|
+
int: "builtin",
|
|
218
|
+
string: "builtin",
|
|
219
|
+
not: "builtin",
|
|
220
|
+
true: "builtin",
|
|
221
|
+
false: "builtin",
|
|
222
|
+
raise: "builtin",
|
|
223
|
+
failwith: "builtin"
|
|
224
|
+
},
|
|
225
|
+
slashComments: !0
|
|
226
|
+
}), r = e({
|
|
227
|
+
name: "sml",
|
|
228
|
+
extraWords: {
|
|
229
|
+
abstype: "keyword",
|
|
230
|
+
and: "keyword",
|
|
231
|
+
andalso: "keyword",
|
|
232
|
+
case: "keyword",
|
|
233
|
+
datatype: "keyword",
|
|
234
|
+
fn: "keyword",
|
|
235
|
+
handle: "keyword",
|
|
236
|
+
infix: "keyword",
|
|
237
|
+
infixr: "keyword",
|
|
238
|
+
local: "keyword",
|
|
239
|
+
nonfix: "keyword",
|
|
240
|
+
op: "keyword",
|
|
241
|
+
orelse: "keyword",
|
|
242
|
+
raise: "keyword",
|
|
243
|
+
withtype: "keyword",
|
|
244
|
+
eqtype: "keyword",
|
|
245
|
+
sharing: "keyword",
|
|
246
|
+
sig: "keyword",
|
|
247
|
+
signature: "keyword",
|
|
248
|
+
structure: "keyword",
|
|
249
|
+
where: "keyword",
|
|
250
|
+
true: "keyword",
|
|
251
|
+
false: "keyword",
|
|
252
|
+
int: "builtin",
|
|
253
|
+
real: "builtin",
|
|
254
|
+
string: "builtin",
|
|
255
|
+
char: "builtin",
|
|
256
|
+
bool: "builtin"
|
|
257
|
+
},
|
|
258
|
+
slashComments: !0
|
|
259
|
+
});
|
|
260
|
+
export { n as fSharp, t as oCaml, r as sml };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/modelica.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
|
|
4
|
+
return t;
|
|
5
|
+
}
|
|
6
|
+
var t = e("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"), n = e("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"), r = e("Real Boolean Integer String"), i = [].concat(Object.keys(t), Object.keys(n), Object.keys(r)), a = /[;=\(:\),{}.*<>+\-\/^\[\]]/, o = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/, s = /[0-9]/, c = /[_a-zA-Z]/;
|
|
7
|
+
function l(e, t) {
|
|
8
|
+
return e.skipToEnd(), t.tokenize = null, "comment";
|
|
9
|
+
}
|
|
10
|
+
function u(e, t) {
|
|
11
|
+
for (var n = !1, r; r = e.next();) {
|
|
12
|
+
if (n && r == "/") {
|
|
13
|
+
t.tokenize = null;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
n = r == "*";
|
|
17
|
+
}
|
|
18
|
+
return "comment";
|
|
19
|
+
}
|
|
20
|
+
function d(e, t) {
|
|
21
|
+
for (var n = !1, r; (r = e.next()) != null;) {
|
|
22
|
+
if (r == "\"" && !n) {
|
|
23
|
+
t.tokenize = null, t.sol = !1;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
n = !n && r == "\\";
|
|
27
|
+
}
|
|
28
|
+
return "string";
|
|
29
|
+
}
|
|
30
|
+
function f(e, i) {
|
|
31
|
+
for (e.eatWhile(s); e.eat(s) || e.eat(c););
|
|
32
|
+
var a = e.current();
|
|
33
|
+
return i.sol && (a == "package" || a == "model" || a == "when" || a == "connector") ? i.level++ : i.sol && a == "end" && i.level > 0 && i.level--, i.tokenize = null, i.sol = !1, t.propertyIsEnumerable(a) ? "keyword" : n.propertyIsEnumerable(a) ? "builtin" : r.propertyIsEnumerable(a) ? "atom" : "variable";
|
|
34
|
+
}
|
|
35
|
+
function p(e, t) {
|
|
36
|
+
for (; e.eat(/[^']/););
|
|
37
|
+
return t.tokenize = null, t.sol = !1, e.eat("'") ? "variable" : "error";
|
|
38
|
+
}
|
|
39
|
+
function m(e, t) {
|
|
40
|
+
return e.eatWhile(s), e.eat(".") && e.eatWhile(s), (e.eat("e") || e.eat("E")) && (e.eat("-") || e.eat("+"), e.eatWhile(s)), t.tokenize = null, t.sol = !1, "number";
|
|
41
|
+
}
|
|
42
|
+
var h = {
|
|
43
|
+
name: "modelica",
|
|
44
|
+
startState: function() {
|
|
45
|
+
return {
|
|
46
|
+
tokenize: null,
|
|
47
|
+
level: 0,
|
|
48
|
+
sol: !0
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
token: function(e, t) {
|
|
52
|
+
if (t.tokenize != null) return t.tokenize(e, t);
|
|
53
|
+
if (e.sol() && (t.sol = !0), e.eatSpace()) return t.tokenize = null, null;
|
|
54
|
+
var n = e.next();
|
|
55
|
+
if (n == "/" && e.eat("/")) t.tokenize = l;
|
|
56
|
+
else if (n == "/" && e.eat("*")) t.tokenize = u;
|
|
57
|
+
else if (o.test(n + e.peek())) return e.next(), t.tokenize = null, "operator";
|
|
58
|
+
else if (a.test(n)) return t.tokenize = null, "operator";
|
|
59
|
+
else if (c.test(n)) t.tokenize = f;
|
|
60
|
+
else if (n == "'" && e.peek() && e.peek() != "'") t.tokenize = p;
|
|
61
|
+
else if (n == "\"") t.tokenize = d;
|
|
62
|
+
else if (s.test(n)) t.tokenize = m;
|
|
63
|
+
else return t.tokenize = null, "error";
|
|
64
|
+
return t.tokenize(e, t);
|
|
65
|
+
},
|
|
66
|
+
indent: function(e, t, n) {
|
|
67
|
+
if (e.tokenize != null) return null;
|
|
68
|
+
var r = e.level;
|
|
69
|
+
return /(algorithm)/.test(t) && r--, /(equation)/.test(t) && r--, /(initial algorithm)/.test(t) && r--, /(initial equation)/.test(t) && r--, /(end)/.test(t) && r--, r > 0 ? n.unit * r : 0;
|
|
70
|
+
},
|
|
71
|
+
languageData: {
|
|
72
|
+
commentTokens: {
|
|
73
|
+
line: "//",
|
|
74
|
+
block: {
|
|
75
|
+
open: "/*",
|
|
76
|
+
close: "*/"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
autocomplete: i
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export { h as modelica };
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/mscgen.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return {
|
|
4
|
+
name: "mscgen",
|
|
5
|
+
startState: o,
|
|
6
|
+
copyState: s,
|
|
7
|
+
token: c(e),
|
|
8
|
+
languageData: { commentTokens: {
|
|
9
|
+
line: "#",
|
|
10
|
+
block: {
|
|
11
|
+
open: "/*",
|
|
12
|
+
close: "*/"
|
|
13
|
+
}
|
|
14
|
+
} }
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var t = e({
|
|
18
|
+
keywords: ["msc"],
|
|
19
|
+
options: [
|
|
20
|
+
"hscale",
|
|
21
|
+
"width",
|
|
22
|
+
"arcgradient",
|
|
23
|
+
"wordwraparcs"
|
|
24
|
+
],
|
|
25
|
+
constants: [
|
|
26
|
+
"true",
|
|
27
|
+
"false",
|
|
28
|
+
"on",
|
|
29
|
+
"off"
|
|
30
|
+
],
|
|
31
|
+
attributes: [
|
|
32
|
+
"label",
|
|
33
|
+
"idurl",
|
|
34
|
+
"id",
|
|
35
|
+
"url",
|
|
36
|
+
"linecolor",
|
|
37
|
+
"linecolour",
|
|
38
|
+
"textcolor",
|
|
39
|
+
"textcolour",
|
|
40
|
+
"textbgcolor",
|
|
41
|
+
"textbgcolour",
|
|
42
|
+
"arclinecolor",
|
|
43
|
+
"arclinecolour",
|
|
44
|
+
"arctextcolor",
|
|
45
|
+
"arctextcolour",
|
|
46
|
+
"arctextbgcolor",
|
|
47
|
+
"arctextbgcolour",
|
|
48
|
+
"arcskip"
|
|
49
|
+
],
|
|
50
|
+
brackets: ["\\{", "\\}"],
|
|
51
|
+
arcsWords: [
|
|
52
|
+
"note",
|
|
53
|
+
"abox",
|
|
54
|
+
"rbox",
|
|
55
|
+
"box"
|
|
56
|
+
],
|
|
57
|
+
arcsOthers: [
|
|
58
|
+
"\\|\\|\\|",
|
|
59
|
+
"\\.\\.\\.",
|
|
60
|
+
"---",
|
|
61
|
+
"--",
|
|
62
|
+
"<->",
|
|
63
|
+
"==",
|
|
64
|
+
"<<=>>",
|
|
65
|
+
"<=>",
|
|
66
|
+
"\\.\\.",
|
|
67
|
+
"<<>>",
|
|
68
|
+
"::",
|
|
69
|
+
"<:>",
|
|
70
|
+
"->",
|
|
71
|
+
"=>>",
|
|
72
|
+
"=>",
|
|
73
|
+
">>",
|
|
74
|
+
":>",
|
|
75
|
+
"<-",
|
|
76
|
+
"<<=",
|
|
77
|
+
"<=",
|
|
78
|
+
"<<",
|
|
79
|
+
"<:",
|
|
80
|
+
"x-",
|
|
81
|
+
"-x"
|
|
82
|
+
],
|
|
83
|
+
singlecomment: ["//", "#"],
|
|
84
|
+
operators: ["="]
|
|
85
|
+
}), n = e({
|
|
86
|
+
keywords: null,
|
|
87
|
+
options: [
|
|
88
|
+
"hscale",
|
|
89
|
+
"width",
|
|
90
|
+
"arcgradient",
|
|
91
|
+
"wordwraparcs",
|
|
92
|
+
"wordwrapentities",
|
|
93
|
+
"watermark"
|
|
94
|
+
],
|
|
95
|
+
constants: [
|
|
96
|
+
"true",
|
|
97
|
+
"false",
|
|
98
|
+
"on",
|
|
99
|
+
"off",
|
|
100
|
+
"auto"
|
|
101
|
+
],
|
|
102
|
+
attributes: null,
|
|
103
|
+
brackets: ["\\{", "\\}"],
|
|
104
|
+
arcsWords: [
|
|
105
|
+
"note",
|
|
106
|
+
"abox",
|
|
107
|
+
"rbox",
|
|
108
|
+
"box",
|
|
109
|
+
"alt",
|
|
110
|
+
"else",
|
|
111
|
+
"opt",
|
|
112
|
+
"break",
|
|
113
|
+
"par",
|
|
114
|
+
"seq",
|
|
115
|
+
"strict",
|
|
116
|
+
"neg",
|
|
117
|
+
"critical",
|
|
118
|
+
"ignore",
|
|
119
|
+
"consider",
|
|
120
|
+
"assert",
|
|
121
|
+
"loop",
|
|
122
|
+
"ref",
|
|
123
|
+
"exc"
|
|
124
|
+
],
|
|
125
|
+
arcsOthers: [
|
|
126
|
+
"\\|\\|\\|",
|
|
127
|
+
"\\.\\.\\.",
|
|
128
|
+
"---",
|
|
129
|
+
"--",
|
|
130
|
+
"<->",
|
|
131
|
+
"==",
|
|
132
|
+
"<<=>>",
|
|
133
|
+
"<=>",
|
|
134
|
+
"\\.\\.",
|
|
135
|
+
"<<>>",
|
|
136
|
+
"::",
|
|
137
|
+
"<:>",
|
|
138
|
+
"->",
|
|
139
|
+
"=>>",
|
|
140
|
+
"=>",
|
|
141
|
+
">>",
|
|
142
|
+
":>",
|
|
143
|
+
"<-",
|
|
144
|
+
"<<=",
|
|
145
|
+
"<=",
|
|
146
|
+
"<<",
|
|
147
|
+
"<:",
|
|
148
|
+
"x-",
|
|
149
|
+
"-x"
|
|
150
|
+
],
|
|
151
|
+
singlecomment: ["//", "#"],
|
|
152
|
+
operators: ["="]
|
|
153
|
+
}), r = e({
|
|
154
|
+
keywords: ["msc", "xu"],
|
|
155
|
+
options: [
|
|
156
|
+
"hscale",
|
|
157
|
+
"width",
|
|
158
|
+
"arcgradient",
|
|
159
|
+
"wordwraparcs",
|
|
160
|
+
"wordwrapentities",
|
|
161
|
+
"watermark"
|
|
162
|
+
],
|
|
163
|
+
constants: [
|
|
164
|
+
"true",
|
|
165
|
+
"false",
|
|
166
|
+
"on",
|
|
167
|
+
"off",
|
|
168
|
+
"auto"
|
|
169
|
+
],
|
|
170
|
+
attributes: [
|
|
171
|
+
"label",
|
|
172
|
+
"idurl",
|
|
173
|
+
"id",
|
|
174
|
+
"url",
|
|
175
|
+
"linecolor",
|
|
176
|
+
"linecolour",
|
|
177
|
+
"textcolor",
|
|
178
|
+
"textcolour",
|
|
179
|
+
"textbgcolor",
|
|
180
|
+
"textbgcolour",
|
|
181
|
+
"arclinecolor",
|
|
182
|
+
"arclinecolour",
|
|
183
|
+
"arctextcolor",
|
|
184
|
+
"arctextcolour",
|
|
185
|
+
"arctextbgcolor",
|
|
186
|
+
"arctextbgcolour",
|
|
187
|
+
"arcskip",
|
|
188
|
+
"title",
|
|
189
|
+
"deactivate",
|
|
190
|
+
"activate",
|
|
191
|
+
"activation"
|
|
192
|
+
],
|
|
193
|
+
brackets: ["\\{", "\\}"],
|
|
194
|
+
arcsWords: [
|
|
195
|
+
"note",
|
|
196
|
+
"abox",
|
|
197
|
+
"rbox",
|
|
198
|
+
"box",
|
|
199
|
+
"alt",
|
|
200
|
+
"else",
|
|
201
|
+
"opt",
|
|
202
|
+
"break",
|
|
203
|
+
"par",
|
|
204
|
+
"seq",
|
|
205
|
+
"strict",
|
|
206
|
+
"neg",
|
|
207
|
+
"critical",
|
|
208
|
+
"ignore",
|
|
209
|
+
"consider",
|
|
210
|
+
"assert",
|
|
211
|
+
"loop",
|
|
212
|
+
"ref",
|
|
213
|
+
"exc"
|
|
214
|
+
],
|
|
215
|
+
arcsOthers: [
|
|
216
|
+
"\\|\\|\\|",
|
|
217
|
+
"\\.\\.\\.",
|
|
218
|
+
"---",
|
|
219
|
+
"--",
|
|
220
|
+
"<->",
|
|
221
|
+
"==",
|
|
222
|
+
"<<=>>",
|
|
223
|
+
"<=>",
|
|
224
|
+
"\\.\\.",
|
|
225
|
+
"<<>>",
|
|
226
|
+
"::",
|
|
227
|
+
"<:>",
|
|
228
|
+
"->",
|
|
229
|
+
"=>>",
|
|
230
|
+
"=>",
|
|
231
|
+
">>",
|
|
232
|
+
":>",
|
|
233
|
+
"<-",
|
|
234
|
+
"<<=",
|
|
235
|
+
"<=",
|
|
236
|
+
"<<",
|
|
237
|
+
"<:",
|
|
238
|
+
"x-",
|
|
239
|
+
"-x"
|
|
240
|
+
],
|
|
241
|
+
singlecomment: ["//", "#"],
|
|
242
|
+
operators: ["="]
|
|
243
|
+
});
|
|
244
|
+
function i(e) {
|
|
245
|
+
return RegExp("^\\b(" + e.join("|") + ")\\b", "i");
|
|
246
|
+
}
|
|
247
|
+
function a(e) {
|
|
248
|
+
return RegExp("^(?:" + e.join("|") + ")", "i");
|
|
249
|
+
}
|
|
250
|
+
function o() {
|
|
251
|
+
return {
|
|
252
|
+
inComment: !1,
|
|
253
|
+
inString: !1,
|
|
254
|
+
inAttributeList: !1,
|
|
255
|
+
inScript: !1
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
function s(e) {
|
|
259
|
+
return {
|
|
260
|
+
inComment: e.inComment,
|
|
261
|
+
inString: e.inString,
|
|
262
|
+
inAttributeList: e.inAttributeList,
|
|
263
|
+
inScript: e.inScript
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
function c(e) {
|
|
267
|
+
return function(t, n) {
|
|
268
|
+
if (t.match(a(e.brackets), !0, !0)) return "bracket";
|
|
269
|
+
if (!n.inComment) {
|
|
270
|
+
if (t.match(/\/\*[^\*\/]*/, !0, !0)) return n.inComment = !0, "comment";
|
|
271
|
+
if (t.match(a(e.singlecomment), !0, !0)) return t.skipToEnd(), "comment";
|
|
272
|
+
}
|
|
273
|
+
if (n.inComment) return t.match(/[^\*\/]*\*\//, !0, !0) ? n.inComment = !1 : t.skipToEnd(), "comment";
|
|
274
|
+
if (!n.inString && t.match(/\"(\\\"|[^\"])*/, !0, !0)) return n.inString = !0, "string";
|
|
275
|
+
if (n.inString) return t.match(/[^\"]*\"/, !0, !0) ? n.inString = !1 : t.skipToEnd(), "string";
|
|
276
|
+
if (e.keywords && t.match(i(e.keywords), !0, !0) || t.match(i(e.options), !0, !0) || t.match(i(e.arcsWords), !0, !0) || t.match(a(e.arcsOthers), !0, !0)) return "keyword";
|
|
277
|
+
if (e.operators && t.match(a(e.operators), !0, !0)) return "operator";
|
|
278
|
+
if (e.constants && t.match(a(e.constants), !0, !0)) return "variable";
|
|
279
|
+
if (!e.inAttributeList && e.attributes && t.match("[", !0, !0)) return e.inAttributeList = !0, "bracket";
|
|
280
|
+
if (e.inAttributeList) {
|
|
281
|
+
if (e.attributes !== null && t.match(i(e.attributes), !0, !0)) return "attribute";
|
|
282
|
+
if (t.match("]", !0, !0)) return e.inAttributeList = !1, "bracket";
|
|
283
|
+
}
|
|
284
|
+
return t.next(), null;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
export { t as mscgen, n as msgenny, r as xu };
|