react-schema-form 1.0.5 → 1.0.7
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/react-schema-form.css +1 -0
- package/dist/react-schema-form.js +24552 -5
- package/dist/react-schema-form.js.map +1 -0
- package/dist/react-schema-form.umd.cjs +76 -168
- package/dist/react-schema-form.umd.cjs.map +1 -0
- package/package.json +32 -10
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asn1-DF4fnRHj.js +0 -93
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-l4mx49Q1.js +0 -621
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-CJVkMW0i.js +0 -73
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/css-bIlmDBTK.js +0 -1560
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-CFG_IPGn.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-Xa2PN7SI.js +0 -77
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-DJHfQ4a1.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-pdDS1aE8.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index-BE87KcZQ.js +0 -98
- package/dist/index-BLB2mjTh.js +0 -312
- package/dist/index-Bar6lBni.js +0 -75
- package/dist/index-BzGQIlo_.js +0 -134
- package/dist/index-BzqHMC7H.js +0 -58
- package/dist/index-C1_9PR5w.js +0 -156
- package/dist/index-C8EGvqpJ.js +0 -135
- package/dist/index-CFDpG1dM.js +0 -243
- package/dist/index-Cjv9KcfW.js +0 -93
- package/dist/index-CvvBPxcf.js +0 -341
- package/dist/index-DDn1Bvsm.js +0 -538
- package/dist/index-DeMNkpAe.js +0 -299
- package/dist/index-DjyHTjks.js +0 -265
- package/dist/index-JL0W82NW.js +0 -598
- package/dist/index-RrAWWB2k.js +0 -71
- package/dist/index-kp5oFDKj.js +0 -288
- package/dist/javascript-CWGekh08.js +0 -690
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CE_BxZmN.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/main-gT5TlPcm.js +0 -85834
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-1yy7Y7jE.js +0 -275
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-BtA0qkjU.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-ixanSKUz.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pug-CW1q1xhQ.js +0 -248
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-B5QdSKoL.js +0 -313
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-Bz1d3XP0.js +0 -104
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-HGTvdazT.js +0 -88
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-uoWIYwDX.js +0 -284
- package/dist/stex-92raWT1r.js +0 -129
- package/dist/style.css +0 -1
- package/dist/stylus-DRcbY16X.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-D9z-T0ea.js +0 -178
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-DmjTzZb6.js +0 -125
- package/dist/ttcn-cfg-B2U3U7dn.js +0 -90
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/vite.svg +0 -1
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-xQxle02u.js +0 -426
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var u = "[a-zA-Z\\$][a-zA-Z0-9\\$]*", f = "(?:\\d+)", c = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)", o = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)", l = "(?:`(?:`?" + c + ")?)", z = new RegExp("(?:" + f + "(?:\\^\\^" + o + l + "?(?:\\*\\^[+-]?\\d+)?))"), m = new RegExp("(?:" + c + l + "?(?:\\*\\^[+-]?\\d+)?)"), A = new RegExp("(?:`?)(?:" + u + ")(?:`(?:" + u + "))*(?:`?)");
|
|
2
|
-
function i(e, a) {
|
|
3
|
-
var n;
|
|
4
|
-
return n = e.next(), n === '"' ? (a.tokenize = Z, a.tokenize(e, a)) : n === "(" && e.eat("*") ? (a.commentLevel++, a.tokenize = $, a.tokenize(e, a)) : (e.backUp(1), e.match(z, !0, !1) || e.match(m, !0, !1) ? "number" : e.match(/(?:In|Out)\[[0-9]*\]/, !0, !1) ? "atom" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/, !0, !1) ? "meta" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, !0, !1) ? "string.special" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, !0, !1) || e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) || e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, !0, !1) || e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) ? "variableName.special" : e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, !0, !1) ? "character" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, !0, !1) ? "variableName.constant" : e.match(A, !0, !1) ? "keyword" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, !0, !1) ? "operator" : (e.next(), "error"));
|
|
5
|
-
}
|
|
6
|
-
function Z(e, a) {
|
|
7
|
-
for (var n, r = !1, t = !1; (n = e.next()) != null; ) {
|
|
8
|
-
if (n === '"' && !t) {
|
|
9
|
-
r = !0;
|
|
10
|
-
break;
|
|
11
|
-
}
|
|
12
|
-
t = !t && n === "\\";
|
|
13
|
-
}
|
|
14
|
-
return r && !t && (a.tokenize = i), "string";
|
|
15
|
-
}
|
|
16
|
-
function $(e, a) {
|
|
17
|
-
for (var n, r; a.commentLevel > 0 && (r = e.next()) != null; )
|
|
18
|
-
n === "(" && r === "*" && a.commentLevel++, n === "*" && r === ")" && a.commentLevel--, n = r;
|
|
19
|
-
return a.commentLevel <= 0 && (a.tokenize = i), "comment";
|
|
20
|
-
}
|
|
21
|
-
const v = {
|
|
22
|
-
name: "mathematica",
|
|
23
|
-
startState: function() {
|
|
24
|
-
return { tokenize: i, commentLevel: 0 };
|
|
25
|
-
},
|
|
26
|
-
token: function(e, a) {
|
|
27
|
-
return e.eatSpace() ? null : a.tokenize(e, a);
|
|
28
|
-
},
|
|
29
|
-
languageData: {
|
|
30
|
-
commentTokens: { block: { open: "(*", close: "*)" } }
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
v as mathematica
|
|
35
|
-
};
|
package/dist/mbox-BctzC1hL.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var o = [
|
|
2
|
-
"From",
|
|
3
|
-
"Sender",
|
|
4
|
-
"Reply-To",
|
|
5
|
-
"To",
|
|
6
|
-
"Cc",
|
|
7
|
-
"Bcc",
|
|
8
|
-
"Message-ID",
|
|
9
|
-
"In-Reply-To",
|
|
10
|
-
"References",
|
|
11
|
-
"Resent-From",
|
|
12
|
-
"Resent-Sender",
|
|
13
|
-
"Resent-To",
|
|
14
|
-
"Resent-Cc",
|
|
15
|
-
"Resent-Bcc",
|
|
16
|
-
"Resent-Message-ID",
|
|
17
|
-
"Return-Path",
|
|
18
|
-
"Received"
|
|
19
|
-
], l = [
|
|
20
|
-
"Date",
|
|
21
|
-
"Subject",
|
|
22
|
-
"Comments",
|
|
23
|
-
"Keywords",
|
|
24
|
-
"Resent-Date"
|
|
25
|
-
], u = /^[ \t]/, d = /^From /, f = new RegExp("^(" + o.join("|") + "): "), c = new RegExp("^(" + l.join("|") + "): "), t = /^[^:]+:/, m = /^[^ ]+@[^ ]+/, p = /^.*?(?=[^ ]+?@[^ ]+)/, H = /^<.*?>/, v = /^.*?(?=<.*>)/;
|
|
26
|
-
function h(e) {
|
|
27
|
-
return e === "Subject" ? "header" : "string";
|
|
28
|
-
}
|
|
29
|
-
function R(e, r) {
|
|
30
|
-
if (e.sol()) {
|
|
31
|
-
if (r.inSeparator = !1, r.inHeader && e.match(u))
|
|
32
|
-
return null;
|
|
33
|
-
if (r.inHeader = !1, r.header = null, e.match(d))
|
|
34
|
-
return r.inHeaders = !0, r.inSeparator = !0, "atom";
|
|
35
|
-
var n, i = !1;
|
|
36
|
-
return (n = e.match(c)) || (i = !0) && (n = e.match(f)) ? (r.inHeaders = !0, r.inHeader = !0, r.emailPermitted = i, r.header = n[1], "atom") : r.inHeaders && (n = e.match(t)) ? (r.inHeader = !0, r.emailPermitted = !0, r.header = n[1], "atom") : (r.inHeaders = !1, e.skipToEnd(), null);
|
|
37
|
-
}
|
|
38
|
-
if (r.inSeparator)
|
|
39
|
-
return e.match(m) ? "link" : (e.match(p) || e.skipToEnd(), "atom");
|
|
40
|
-
if (r.inHeader) {
|
|
41
|
-
var a = h(r.header);
|
|
42
|
-
if (r.emailPermitted) {
|
|
43
|
-
if (e.match(H)) return a + " link";
|
|
44
|
-
if (e.match(v)) return a;
|
|
45
|
-
}
|
|
46
|
-
return e.skipToEnd(), a;
|
|
47
|
-
}
|
|
48
|
-
return e.skipToEnd(), null;
|
|
49
|
-
}
|
|
50
|
-
const k = {
|
|
51
|
-
name: "mbox",
|
|
52
|
-
startState: function() {
|
|
53
|
-
return {
|
|
54
|
-
// Is in a mbox separator
|
|
55
|
-
inSeparator: !1,
|
|
56
|
-
// Is in a mail header
|
|
57
|
-
inHeader: !1,
|
|
58
|
-
// If bracketed email is permitted. Only applicable when inHeader
|
|
59
|
-
emailPermitted: !1,
|
|
60
|
-
// Name of current header
|
|
61
|
-
header: null,
|
|
62
|
-
// Is in a region of mail headers
|
|
63
|
-
inHeaders: !1
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
token: R,
|
|
67
|
-
blankLine: function(e) {
|
|
68
|
-
e.inHeaders = e.inSeparator = e.inHeader = !1;
|
|
69
|
-
},
|
|
70
|
-
languageData: {
|
|
71
|
-
autocomplete: o.concat(l)
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
k as mbox
|
|
76
|
-
};
|
package/dist/mirc-CFBPAOaF.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
function n(e) {
|
|
2
|
-
for (var $ = {}, r = e.split(" "), i = 0; i < r.length; ++i) $[r[i]] = !0;
|
|
3
|
-
return $;
|
|
4
|
-
}
|
|
5
|
-
var a = n("$! $$ $& $? $+ $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"), s = n("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"), l = n("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
|
|
6
|
-
function d(e, $, r) {
|
|
7
|
-
return $.tokenize = r, r(e, $);
|
|
8
|
-
}
|
|
9
|
-
function o(e, $) {
|
|
10
|
-
var r = $.beforeParams;
|
|
11
|
-
$.beforeParams = !1;
|
|
12
|
-
var i = e.next();
|
|
13
|
-
if (/[\[\]{}\(\),\.]/.test(i))
|
|
14
|
-
return i == "(" && r ? $.inParams = !0 : i == ")" && ($.inParams = !1), null;
|
|
15
|
-
if (/\d/.test(i))
|
|
16
|
-
return e.eatWhile(/[\w\.]/), "number";
|
|
17
|
-
if (i == "\\")
|
|
18
|
-
return e.eat("\\"), e.eat(/./), "number";
|
|
19
|
-
if (i == "/" && e.eat("*"))
|
|
20
|
-
return d(e, $, m);
|
|
21
|
-
if (i == ";" && e.match(/ *\( *\(/))
|
|
22
|
-
return d(e, $, p);
|
|
23
|
-
if (i == ";" && !$.inParams)
|
|
24
|
-
return e.skipToEnd(), "comment";
|
|
25
|
-
if (i == '"')
|
|
26
|
-
return e.eat(/"/), "keyword";
|
|
27
|
-
if (i == "$")
|
|
28
|
-
return e.eatWhile(/[$_a-z0-9A-Z\.:]/), a && a.propertyIsEnumerable(e.current().toLowerCase()) ? "keyword" : ($.beforeParams = !0, "builtin");
|
|
29
|
-
if (i == "%")
|
|
30
|
-
return e.eatWhile(/[^,\s()]/), $.beforeParams = !0, "string";
|
|
31
|
-
if (c.test(i))
|
|
32
|
-
return e.eatWhile(c), "operator";
|
|
33
|
-
e.eatWhile(/[\w\$_{}]/);
|
|
34
|
-
var t = e.current().toLowerCase();
|
|
35
|
-
return s && s.propertyIsEnumerable(t) ? "keyword" : l && l.propertyIsEnumerable(t) ? ($.beforeParams = !0, "keyword") : null;
|
|
36
|
-
}
|
|
37
|
-
function m(e, $) {
|
|
38
|
-
for (var r = !1, i; i = e.next(); ) {
|
|
39
|
-
if (i == "/" && r) {
|
|
40
|
-
$.tokenize = o;
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
r = i == "*";
|
|
44
|
-
}
|
|
45
|
-
return "comment";
|
|
46
|
-
}
|
|
47
|
-
function p(e, $) {
|
|
48
|
-
for (var r = 0, i; i = e.next(); ) {
|
|
49
|
-
if (i == ";" && r == 2) {
|
|
50
|
-
$.tokenize = o;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
i == ")" ? r++ : i != " " && (r = 0);
|
|
54
|
-
}
|
|
55
|
-
return "meta";
|
|
56
|
-
}
|
|
57
|
-
const u = {
|
|
58
|
-
name: "mirc",
|
|
59
|
-
startState: function() {
|
|
60
|
-
return {
|
|
61
|
-
tokenize: o,
|
|
62
|
-
beforeParams: !1,
|
|
63
|
-
inParams: !1
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
token: function(e, $) {
|
|
67
|
-
return e.eatSpace() ? null : $.tokenize(e, $);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
u as mirc
|
|
72
|
-
};
|
package/dist/mllike-1yy7Y7jE.js
DELETED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
function y(i) {
|
|
2
|
-
var t = {
|
|
3
|
-
as: "keyword",
|
|
4
|
-
do: "keyword",
|
|
5
|
-
else: "keyword",
|
|
6
|
-
end: "keyword",
|
|
7
|
-
exception: "keyword",
|
|
8
|
-
fun: "keyword",
|
|
9
|
-
functor: "keyword",
|
|
10
|
-
if: "keyword",
|
|
11
|
-
in: "keyword",
|
|
12
|
-
include: "keyword",
|
|
13
|
-
let: "keyword",
|
|
14
|
-
of: "keyword",
|
|
15
|
-
open: "keyword",
|
|
16
|
-
rec: "keyword",
|
|
17
|
-
struct: "keyword",
|
|
18
|
-
then: "keyword",
|
|
19
|
-
type: "keyword",
|
|
20
|
-
val: "keyword",
|
|
21
|
-
while: "keyword",
|
|
22
|
-
with: "keyword"
|
|
23
|
-
}, l = i.extraWords || {};
|
|
24
|
-
for (var w in l)
|
|
25
|
-
l.hasOwnProperty(w) && (t[w] = i.extraWords[w]);
|
|
26
|
-
var u = [];
|
|
27
|
-
for (var a in t)
|
|
28
|
-
u.push(a);
|
|
29
|
-
function d(e, r) {
|
|
30
|
-
var o = e.next();
|
|
31
|
-
if (o === '"')
|
|
32
|
-
return r.tokenize = c, r.tokenize(e, r);
|
|
33
|
-
if (o === "{" && e.eat("|"))
|
|
34
|
-
return r.longString = !0, r.tokenize = b, r.tokenize(e, r);
|
|
35
|
-
if (o === "(" && e.match(/^\*(?!\))/))
|
|
36
|
-
return r.commentLevel++, r.tokenize = f, r.tokenize(e, r);
|
|
37
|
-
if (o === "~" || o === "?")
|
|
38
|
-
return e.eatWhile(/\w/), "variableName.special";
|
|
39
|
-
if (o === "`")
|
|
40
|
-
return e.eatWhile(/\w/), "quote";
|
|
41
|
-
if (o === "/" && i.slashComments && e.eat("/"))
|
|
42
|
-
return e.skipToEnd(), "comment";
|
|
43
|
-
if (/\d/.test(o))
|
|
44
|
-
return o === "0" && e.eat(/[bB]/) && e.eatWhile(/[01]/), o === "0" && e.eat(/[xX]/) && e.eatWhile(/[0-9a-fA-F]/), o === "0" && e.eat(/[oO]/) ? e.eatWhile(/[0-7]/) : (e.eatWhile(/[\d_]/), e.eat(".") && e.eatWhile(/[\d]/), e.eat(/[eE]/) && e.eatWhile(/[\d\-+]/)), "number";
|
|
45
|
-
if (/[+\-*&%=<>!?|@\.~:]/.test(o))
|
|
46
|
-
return "operator";
|
|
47
|
-
if (/[\w\xa1-\uffff]/.test(o)) {
|
|
48
|
-
e.eatWhile(/[\w\xa1-\uffff]/);
|
|
49
|
-
var n = e.current();
|
|
50
|
-
return t.hasOwnProperty(n) ? t[n] : "variable";
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
function c(e, r) {
|
|
55
|
-
for (var o, n = !1, k = !1; (o = e.next()) != null; ) {
|
|
56
|
-
if (o === '"' && !k) {
|
|
57
|
-
n = !0;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
k = !k && o === "\\";
|
|
61
|
-
}
|
|
62
|
-
return n && !k && (r.tokenize = d), "string";
|
|
63
|
-
}
|
|
64
|
-
function f(e, r) {
|
|
65
|
-
for (var o, n; r.commentLevel > 0 && (n = e.next()) != null; )
|
|
66
|
-
o === "(" && n === "*" && r.commentLevel++, o === "*" && n === ")" && r.commentLevel--, o = n;
|
|
67
|
-
return r.commentLevel <= 0 && (r.tokenize = d), "comment";
|
|
68
|
-
}
|
|
69
|
-
function b(e, r) {
|
|
70
|
-
for (var o, n; r.longString && (n = e.next()) != null; )
|
|
71
|
-
o === "|" && n === "}" && (r.longString = !1), o = n;
|
|
72
|
-
return r.longString || (r.tokenize = d), "string";
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
startState: function() {
|
|
76
|
-
return { tokenize: d, commentLevel: 0, longString: !1 };
|
|
77
|
-
},
|
|
78
|
-
token: function(e, r) {
|
|
79
|
-
return e.eatSpace() ? null : r.tokenize(e, r);
|
|
80
|
-
},
|
|
81
|
-
languageData: {
|
|
82
|
-
autocomplete: u,
|
|
83
|
-
commentTokens: {
|
|
84
|
-
line: i.slashComments ? "//" : void 0,
|
|
85
|
-
block: { open: "(*", close: "*)" }
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
const s = y({
|
|
91
|
-
name: "ocaml",
|
|
92
|
-
extraWords: {
|
|
93
|
-
and: "keyword",
|
|
94
|
-
assert: "keyword",
|
|
95
|
-
begin: "keyword",
|
|
96
|
-
class: "keyword",
|
|
97
|
-
constraint: "keyword",
|
|
98
|
-
done: "keyword",
|
|
99
|
-
downto: "keyword",
|
|
100
|
-
external: "keyword",
|
|
101
|
-
function: "keyword",
|
|
102
|
-
initializer: "keyword",
|
|
103
|
-
lazy: "keyword",
|
|
104
|
-
match: "keyword",
|
|
105
|
-
method: "keyword",
|
|
106
|
-
module: "keyword",
|
|
107
|
-
mutable: "keyword",
|
|
108
|
-
new: "keyword",
|
|
109
|
-
nonrec: "keyword",
|
|
110
|
-
object: "keyword",
|
|
111
|
-
private: "keyword",
|
|
112
|
-
sig: "keyword",
|
|
113
|
-
to: "keyword",
|
|
114
|
-
try: "keyword",
|
|
115
|
-
value: "keyword",
|
|
116
|
-
virtual: "keyword",
|
|
117
|
-
when: "keyword",
|
|
118
|
-
// builtins
|
|
119
|
-
raise: "builtin",
|
|
120
|
-
failwith: "builtin",
|
|
121
|
-
true: "builtin",
|
|
122
|
-
false: "builtin",
|
|
123
|
-
// Pervasives builtins
|
|
124
|
-
asr: "builtin",
|
|
125
|
-
land: "builtin",
|
|
126
|
-
lor: "builtin",
|
|
127
|
-
lsl: "builtin",
|
|
128
|
-
lsr: "builtin",
|
|
129
|
-
lxor: "builtin",
|
|
130
|
-
mod: "builtin",
|
|
131
|
-
or: "builtin",
|
|
132
|
-
// More Pervasives
|
|
133
|
-
raise_notrace: "builtin",
|
|
134
|
-
trace: "builtin",
|
|
135
|
-
exit: "builtin",
|
|
136
|
-
print_string: "builtin",
|
|
137
|
-
print_endline: "builtin",
|
|
138
|
-
int: "type",
|
|
139
|
-
float: "type",
|
|
140
|
-
bool: "type",
|
|
141
|
-
char: "type",
|
|
142
|
-
string: "type",
|
|
143
|
-
unit: "type",
|
|
144
|
-
// Modules
|
|
145
|
-
List: "builtin"
|
|
146
|
-
}
|
|
147
|
-
}), h = y({
|
|
148
|
-
name: "fsharp",
|
|
149
|
-
extraWords: {
|
|
150
|
-
abstract: "keyword",
|
|
151
|
-
assert: "keyword",
|
|
152
|
-
base: "keyword",
|
|
153
|
-
begin: "keyword",
|
|
154
|
-
class: "keyword",
|
|
155
|
-
default: "keyword",
|
|
156
|
-
delegate: "keyword",
|
|
157
|
-
"do!": "keyword",
|
|
158
|
-
done: "keyword",
|
|
159
|
-
downcast: "keyword",
|
|
160
|
-
downto: "keyword",
|
|
161
|
-
elif: "keyword",
|
|
162
|
-
extern: "keyword",
|
|
163
|
-
finally: "keyword",
|
|
164
|
-
for: "keyword",
|
|
165
|
-
function: "keyword",
|
|
166
|
-
global: "keyword",
|
|
167
|
-
inherit: "keyword",
|
|
168
|
-
inline: "keyword",
|
|
169
|
-
interface: "keyword",
|
|
170
|
-
internal: "keyword",
|
|
171
|
-
lazy: "keyword",
|
|
172
|
-
"let!": "keyword",
|
|
173
|
-
match: "keyword",
|
|
174
|
-
member: "keyword",
|
|
175
|
-
module: "keyword",
|
|
176
|
-
mutable: "keyword",
|
|
177
|
-
namespace: "keyword",
|
|
178
|
-
new: "keyword",
|
|
179
|
-
null: "keyword",
|
|
180
|
-
override: "keyword",
|
|
181
|
-
private: "keyword",
|
|
182
|
-
public: "keyword",
|
|
183
|
-
"return!": "keyword",
|
|
184
|
-
return: "keyword",
|
|
185
|
-
select: "keyword",
|
|
186
|
-
static: "keyword",
|
|
187
|
-
to: "keyword",
|
|
188
|
-
try: "keyword",
|
|
189
|
-
upcast: "keyword",
|
|
190
|
-
"use!": "keyword",
|
|
191
|
-
use: "keyword",
|
|
192
|
-
void: "keyword",
|
|
193
|
-
when: "keyword",
|
|
194
|
-
"yield!": "keyword",
|
|
195
|
-
yield: "keyword",
|
|
196
|
-
// Reserved words
|
|
197
|
-
atomic: "keyword",
|
|
198
|
-
break: "keyword",
|
|
199
|
-
checked: "keyword",
|
|
200
|
-
component: "keyword",
|
|
201
|
-
const: "keyword",
|
|
202
|
-
constraint: "keyword",
|
|
203
|
-
constructor: "keyword",
|
|
204
|
-
continue: "keyword",
|
|
205
|
-
eager: "keyword",
|
|
206
|
-
event: "keyword",
|
|
207
|
-
external: "keyword",
|
|
208
|
-
fixed: "keyword",
|
|
209
|
-
method: "keyword",
|
|
210
|
-
mixin: "keyword",
|
|
211
|
-
object: "keyword",
|
|
212
|
-
parallel: "keyword",
|
|
213
|
-
process: "keyword",
|
|
214
|
-
protected: "keyword",
|
|
215
|
-
pure: "keyword",
|
|
216
|
-
sealed: "keyword",
|
|
217
|
-
tailcall: "keyword",
|
|
218
|
-
trait: "keyword",
|
|
219
|
-
virtual: "keyword",
|
|
220
|
-
volatile: "keyword",
|
|
221
|
-
// builtins
|
|
222
|
-
List: "builtin",
|
|
223
|
-
Seq: "builtin",
|
|
224
|
-
Map: "builtin",
|
|
225
|
-
Set: "builtin",
|
|
226
|
-
Option: "builtin",
|
|
227
|
-
int: "builtin",
|
|
228
|
-
string: "builtin",
|
|
229
|
-
not: "builtin",
|
|
230
|
-
true: "builtin",
|
|
231
|
-
false: "builtin",
|
|
232
|
-
raise: "builtin",
|
|
233
|
-
failwith: "builtin"
|
|
234
|
-
},
|
|
235
|
-
slashComments: !0
|
|
236
|
-
}), p = y({
|
|
237
|
-
name: "sml",
|
|
238
|
-
extraWords: {
|
|
239
|
-
abstype: "keyword",
|
|
240
|
-
and: "keyword",
|
|
241
|
-
andalso: "keyword",
|
|
242
|
-
case: "keyword",
|
|
243
|
-
datatype: "keyword",
|
|
244
|
-
fn: "keyword",
|
|
245
|
-
handle: "keyword",
|
|
246
|
-
infix: "keyword",
|
|
247
|
-
infixr: "keyword",
|
|
248
|
-
local: "keyword",
|
|
249
|
-
nonfix: "keyword",
|
|
250
|
-
op: "keyword",
|
|
251
|
-
orelse: "keyword",
|
|
252
|
-
raise: "keyword",
|
|
253
|
-
withtype: "keyword",
|
|
254
|
-
eqtype: "keyword",
|
|
255
|
-
sharing: "keyword",
|
|
256
|
-
sig: "keyword",
|
|
257
|
-
signature: "keyword",
|
|
258
|
-
structure: "keyword",
|
|
259
|
-
where: "keyword",
|
|
260
|
-
true: "keyword",
|
|
261
|
-
false: "keyword",
|
|
262
|
-
// types
|
|
263
|
-
int: "builtin",
|
|
264
|
-
real: "builtin",
|
|
265
|
-
string: "builtin",
|
|
266
|
-
char: "builtin",
|
|
267
|
-
bool: "builtin"
|
|
268
|
-
},
|
|
269
|
-
slashComments: !0
|
|
270
|
-
});
|
|
271
|
-
export {
|
|
272
|
-
h as fSharp,
|
|
273
|
-
s as oCaml,
|
|
274
|
-
p as sml
|
|
275
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
function r(n) {
|
|
2
|
-
for (var e = {}, i = n.split(" "), l = 0; l < i.length; ++l)
|
|
3
|
-
e[i[l]] = !0;
|
|
4
|
-
return e;
|
|
5
|
-
}
|
|
6
|
-
var t = r("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"), a = r("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"), u = r("Real Boolean Integer String"), f = [].concat(Object.keys(t), Object.keys(a), Object.keys(u)), k = /[;=\(:\),{}.*<>+\-\/^\[\]]/, s = /(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/, o = /[0-9]/, c = /[_a-zA-Z]/;
|
|
7
|
-
function p(n, e) {
|
|
8
|
-
return n.skipToEnd(), e.tokenize = null, "comment";
|
|
9
|
-
}
|
|
10
|
-
function d(n, e) {
|
|
11
|
-
for (var i = !1, l; l = n.next(); ) {
|
|
12
|
-
if (i && l == "/") {
|
|
13
|
-
e.tokenize = null;
|
|
14
|
-
break;
|
|
15
|
-
}
|
|
16
|
-
i = l == "*";
|
|
17
|
-
}
|
|
18
|
-
return "comment";
|
|
19
|
-
}
|
|
20
|
-
function h(n, e) {
|
|
21
|
-
for (var i = !1, l; (l = n.next()) != null; ) {
|
|
22
|
-
if (l == '"' && !i) {
|
|
23
|
-
e.tokenize = null, e.sol = !1;
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
i = !i && l == "\\";
|
|
27
|
-
}
|
|
28
|
-
return "string";
|
|
29
|
-
}
|
|
30
|
-
function b(n, e) {
|
|
31
|
-
for (n.eatWhile(o); n.eat(o) || n.eat(c); )
|
|
32
|
-
;
|
|
33
|
-
var i = n.current();
|
|
34
|
-
return e.sol && (i == "package" || i == "model" || i == "when" || i == "connector") ? e.level++ : e.sol && i == "end" && e.level > 0 && e.level--, e.tokenize = null, e.sol = !1, t.propertyIsEnumerable(i) ? "keyword" : a.propertyIsEnumerable(i) ? "builtin" : u.propertyIsEnumerable(i) ? "atom" : "variable";
|
|
35
|
-
}
|
|
36
|
-
function v(n, e) {
|
|
37
|
-
for (; n.eat(/[^']/); )
|
|
38
|
-
;
|
|
39
|
-
return e.tokenize = null, e.sol = !1, n.eat("'") ? "variable" : "error";
|
|
40
|
-
}
|
|
41
|
-
function g(n, e) {
|
|
42
|
-
return n.eatWhile(o), n.eat(".") && n.eatWhile(o), (n.eat("e") || n.eat("E")) && (n.eat("-") || n.eat("+"), n.eatWhile(o)), e.tokenize = null, e.sol = !1, "number";
|
|
43
|
-
}
|
|
44
|
-
const z = {
|
|
45
|
-
name: "modelica",
|
|
46
|
-
startState: function() {
|
|
47
|
-
return {
|
|
48
|
-
tokenize: null,
|
|
49
|
-
level: 0,
|
|
50
|
-
sol: !0
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
token: function(n, e) {
|
|
54
|
-
if (e.tokenize != null)
|
|
55
|
-
return e.tokenize(n, e);
|
|
56
|
-
if (n.sol() && (e.sol = !0), n.eatSpace())
|
|
57
|
-
return e.tokenize = null, null;
|
|
58
|
-
var i = n.next();
|
|
59
|
-
if (i == "/" && n.eat("/"))
|
|
60
|
-
e.tokenize = p;
|
|
61
|
-
else if (i == "/" && n.eat("*"))
|
|
62
|
-
e.tokenize = d;
|
|
63
|
-
else {
|
|
64
|
-
if (s.test(i + n.peek()))
|
|
65
|
-
return n.next(), e.tokenize = null, "operator";
|
|
66
|
-
if (k.test(i))
|
|
67
|
-
return e.tokenize = null, "operator";
|
|
68
|
-
if (c.test(i))
|
|
69
|
-
e.tokenize = b;
|
|
70
|
-
else if (i == "'" && n.peek() && n.peek() != "'")
|
|
71
|
-
e.tokenize = v;
|
|
72
|
-
else if (i == '"')
|
|
73
|
-
e.tokenize = h;
|
|
74
|
-
else if (o.test(i))
|
|
75
|
-
e.tokenize = g;
|
|
76
|
-
else
|
|
77
|
-
return e.tokenize = null, "error";
|
|
78
|
-
}
|
|
79
|
-
return e.tokenize(n, e);
|
|
80
|
-
},
|
|
81
|
-
indent: function(n, e, i) {
|
|
82
|
-
if (n.tokenize != null) return null;
|
|
83
|
-
var l = n.level;
|
|
84
|
-
return /(algorithm)/.test(e) && l--, /(equation)/.test(e) && l--, /(initial algorithm)/.test(e) && l--, /(initial equation)/.test(e) && l--, /(end)/.test(e) && l--, l > 0 ? i.unit * l : 0;
|
|
85
|
-
},
|
|
86
|
-
languageData: {
|
|
87
|
-
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
|
88
|
-
autocomplete: f
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
z as modelica
|
|
93
|
-
};
|
package/dist/mscgen-Cpl0NYLN.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function c(t) {
|
|
2
|
-
return {
|
|
3
|
-
name: "mscgen",
|
|
4
|
-
startState: i,
|
|
5
|
-
copyState: s,
|
|
6
|
-
token: u(t),
|
|
7
|
-
languageData: {
|
|
8
|
-
commentTokens: { line: "#", block: { open: "/*", close: "*/" } }
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const a = c({
|
|
13
|
-
keywords: ["msc"],
|
|
14
|
-
options: ["hscale", "width", "arcgradient", "wordwraparcs"],
|
|
15
|
-
constants: ["true", "false", "on", "off"],
|
|
16
|
-
attributes: ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip"],
|
|
17
|
-
brackets: ["\\{", "\\}"],
|
|
18
|
-
// [ and ] are brackets too, but these get handled in with lists
|
|
19
|
-
arcsWords: ["note", "abox", "rbox", "box"],
|
|
20
|
-
arcsOthers: ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
|
|
21
|
-
singlecomment: ["//", "#"],
|
|
22
|
-
operators: ["="]
|
|
23
|
-
}), l = c({
|
|
24
|
-
keywords: null,
|
|
25
|
-
options: ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"],
|
|
26
|
-
constants: ["true", "false", "on", "off", "auto"],
|
|
27
|
-
attributes: null,
|
|
28
|
-
brackets: ["\\{", "\\}"],
|
|
29
|
-
arcsWords: ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"],
|
|
30
|
-
arcsOthers: ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
|
|
31
|
-
singlecomment: ["//", "#"],
|
|
32
|
-
operators: ["="]
|
|
33
|
-
}), b = c({
|
|
34
|
-
keywords: ["msc", "xu"],
|
|
35
|
-
options: ["hscale", "width", "arcgradient", "wordwraparcs", "wordwrapentities", "watermark"],
|
|
36
|
-
constants: ["true", "false", "on", "off", "auto"],
|
|
37
|
-
attributes: ["label", "idurl", "id", "url", "linecolor", "linecolour", "textcolor", "textcolour", "textbgcolor", "textbgcolour", "arclinecolor", "arclinecolour", "arctextcolor", "arctextcolour", "arctextbgcolor", "arctextbgcolour", "arcskip", "title", "deactivate", "activate", "activation"],
|
|
38
|
-
brackets: ["\\{", "\\}"],
|
|
39
|
-
// [ and ] are brackets too, but these get handled in with lists
|
|
40
|
-
arcsWords: ["note", "abox", "rbox", "box", "alt", "else", "opt", "break", "par", "seq", "strict", "neg", "critical", "ignore", "consider", "assert", "loop", "ref", "exc"],
|
|
41
|
-
arcsOthers: ["\\|\\|\\|", "\\.\\.\\.", "---", "--", "<->", "==", "<<=>>", "<=>", "\\.\\.", "<<>>", "::", "<:>", "->", "=>>", "=>", ">>", ":>", "<-", "<<=", "<=", "<<", "<:", "x-", "-x"],
|
|
42
|
-
singlecomment: ["//", "#"],
|
|
43
|
-
operators: ["="]
|
|
44
|
-
});
|
|
45
|
-
function n(t) {
|
|
46
|
-
return new RegExp("^\\b(" + t.join("|") + ")\\b", "i");
|
|
47
|
-
}
|
|
48
|
-
function o(t) {
|
|
49
|
-
return new RegExp("^(?:" + t.join("|") + ")", "i");
|
|
50
|
-
}
|
|
51
|
-
function i() {
|
|
52
|
-
return {
|
|
53
|
-
inComment: !1,
|
|
54
|
-
inString: !1,
|
|
55
|
-
inAttributeList: !1,
|
|
56
|
-
inScript: !1
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function s(t) {
|
|
60
|
-
return {
|
|
61
|
-
inComment: t.inComment,
|
|
62
|
-
inString: t.inString,
|
|
63
|
-
inAttributeList: t.inAttributeList,
|
|
64
|
-
inScript: t.inScript
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function u(t) {
|
|
68
|
-
return function(r, e) {
|
|
69
|
-
if (r.match(o(t.brackets), !0, !0))
|
|
70
|
-
return "bracket";
|
|
71
|
-
if (!e.inComment) {
|
|
72
|
-
if (r.match(/\/\*[^\*\/]*/, !0, !0))
|
|
73
|
-
return e.inComment = !0, "comment";
|
|
74
|
-
if (r.match(o(t.singlecomment), !0, !0))
|
|
75
|
-
return r.skipToEnd(), "comment";
|
|
76
|
-
}
|
|
77
|
-
if (e.inComment)
|
|
78
|
-
return r.match(/[^\*\/]*\*\//, !0, !0) ? e.inComment = !1 : r.skipToEnd(), "comment";
|
|
79
|
-
if (!e.inString && r.match(/\"(\\\"|[^\"])*/, !0, !0))
|
|
80
|
-
return e.inString = !0, "string";
|
|
81
|
-
if (e.inString)
|
|
82
|
-
return r.match(/[^\"]*\"/, !0, !0) ? e.inString = !1 : r.skipToEnd(), "string";
|
|
83
|
-
if (t.keywords && r.match(n(t.keywords), !0, !0) || r.match(n(t.options), !0, !0) || r.match(n(t.arcsWords), !0, !0) || r.match(o(t.arcsOthers), !0, !0))
|
|
84
|
-
return "keyword";
|
|
85
|
-
if (t.operators && r.match(o(t.operators), !0, !0))
|
|
86
|
-
return "operator";
|
|
87
|
-
if (t.constants && r.match(o(t.constants), !0, !0))
|
|
88
|
-
return "variable";
|
|
89
|
-
if (!t.inAttributeList && t.attributes && r.match("[", !0, !0))
|
|
90
|
-
return t.inAttributeList = !0, "bracket";
|
|
91
|
-
if (t.inAttributeList) {
|
|
92
|
-
if (t.attributes !== null && r.match(n(t.attributes), !0, !0))
|
|
93
|
-
return "attribute";
|
|
94
|
-
if (r.match("]", !0, !0))
|
|
95
|
-
return t.inAttributeList = !1, "bracket";
|
|
96
|
-
}
|
|
97
|
-
return r.next(), null;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
export {
|
|
101
|
-
a as mscgen,
|
|
102
|
-
l as msgenny,
|
|
103
|
-
b as xu
|
|
104
|
-
};
|