This commit is contained in:
杜恒 2021-06-04 09:49:30 +08:00
parent c4c5c4dc6f
commit 21d948d187
117 changed files with 929 additions and 466 deletions

View File

@ -188,7 +188,7 @@ class Editor
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.2.4/plugin/prism/prism.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.2.4/plugin/prism/prism.min.js"></script>
<script src="<?php Helper::options()->themeUrl('typecho/write/parse/parse.min.js') ?>"></script> <script src="<?php Helper::options()->themeUrl('typecho/write/parse/parse.min.js') ?>"></script>
<script src="<?php Helper::options()->themeUrl('typecho/write/dist/index.js?v=20210603') ?>" type="module"></script> <script src="<?php Helper::options()->themeUrl('typecho/write/dist/index.bundle.js') ?>"></script>
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js') ?>"></script> <script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js') ?>"></script>
<?php <?php
} }

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */ /* 获取主题当前版本号 */
function _getVersion() function _getVersion()
{ {
return "7.2.3"; return "7.2.4";
}; };
/* 判断是否是手机 */ /* 判断是否是手机 */

View File

@ -1,6 +1,6 @@
{ {
"name": "typecho-joe-next", "name": "typecho-joe-next",
"version": "7.2.3", "version": "7.2.4",
"description": "A Theme Of Typecho", "description": "A Theme Of Typecho",
"main": "index.php", "main": "index.php",
"keywords": [ "keywords": [

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,6 @@ body.fullscreen {
width: 100%; width: 100%;
height: 650px; height: 650px;
box-sizing: border-box; box-sizing: border-box;
z-index: 6666;
content-visibility: auto; content-visibility: auto;
background: #222; background: #222;
&.fullscreen { &.fullscreen {
@ -35,6 +34,7 @@ body.fullscreen {
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 6666;
} }
* { * {
outline: none !important; outline: none !important;
@ -128,7 +128,7 @@ body.fullscreen {
font-size: 14px; font-size: 14px;
.cm-scroller { .cm-scroller {
line-height: 1.8; line-height: 1.8;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
overscroll-behavior: none; overscroll-behavior: none;
height: 100%; height: 100%;
padding: 10px; padding: 10px;
@ -144,12 +144,12 @@ body.fullscreen {
background: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.25);
} }
::selection { ::selection {
background-color: rgba(221, 240, 255, 0.2); background-color: rgba(221, 240, 255, 0.25);
} }
.cm-content { .cm-content {
width: 100%; width: 100%;
color: #ccc; color: #abb2bf;
caret-color: #ccc; caret-color: #abb2bf;
padding: 0; padding: 0;
-webkit-user-modify: read-write-plaintext-only; -webkit-user-modify: read-write-plaintext-only;
word-wrap: break-word; word-wrap: break-word;

View File

@ -1,3 +0,0 @@
var builtInFuncs={"+":["conjugate","add"],"":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"":["absolute","residue"],"":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"":["unique","union"],"∩":[null,"intersection"],"":["not","without"],"":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},isOperator=/[\.\/⌿⍀¨⍣]/,isNiladic=/⍬/,isFunction=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,isArrow=/←/,isComment=/[⍝#].*$/,stringEater=function(e){var n;return n=!1,function(t){return n=t,t!==e||"\\"===n}};const apl={startState:function(){return {prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,n){var t;return e.eatSpace()?null:'"'===(t=e.next())||"'"===t?(e.eatWhile(stringEater(t)),e.next(),n.prev=!0,"string"):/[\[{\(]/.test(t)?(n.prev=!1,null):/[\]}\)]/.test(t)?(n.prev=!0,null):isNiladic.test(t)?(n.prev=!1,"atom"):/[¯\d]/.test(t)?(n.func?(n.func=!1,n.prev=!1):n.prev=!0,e.eatWhile(/[\w\.]/),"number"):isOperator.test(t)||isArrow.test(t)?"operator":isFunction.test(t)?(n.func=!0,n.prev=!1,builtInFuncs[t]?"variableName.function.standard":"variableName.function"):isComment.test(t)?(e.skipToEnd(),"comment"):"∘"===t&&"."===e.peek()?(e.next(),"variableName.function"):(e.eatWhile(/[\w\$_]/),n.prev=!0,"keyword")}};
export { apl };

View File

@ -1,3 +0,0 @@
function errorIfNotEmpty(t){var e=t.match(/^\s*\S/);return t.skipToEnd(),e?"error":null}const asciiArmor={token:function(t,e){var r;if("top"==e.state)return t.sol()&&(r=t.match(/^-----BEGIN (.*)?-----\s*$/))?(e.state="headers",e.type=r[1],"tag"):errorIfNotEmpty(t);if("headers"==e.state){if(t.sol()&&t.match(/^\w+:/))return e.state="header","atom";var a=errorIfNotEmpty(t);return a&&(e.state="body"),a}return "header"==e.state?(t.skipToEnd(),e.state="headers","string"):"body"==e.state?t.sol()&&(r=t.match(/^-----END (.*)?-----\s*$/))?r[1]!=e.type?"error":(e.state="end","tag"):t.eatWhile(/[A-Za-z0-9+\/=]/)?null:(t.next(),"error"):"end"==e.state?errorIfNotEmpty(t):void 0},blankLine:function(t){"headers"==t.state&&(t.state="body");},startState:function(){return {state:"top",type:null}}};
export { asciiArmor };

View File

@ -1,3 +0,0 @@
function words(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}const defaults={keywords:words("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:words("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:words("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:words("current deprecated mandatory obsolete"),tags:words("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:words("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:words("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:words("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0};function asn1(e){var t,n=e.keywords||defaults.keywords,r=e.cmipVerbs||defaults.cmipVerbs,i=e.compareTypes||defaults.compareTypes,s=e.status||defaults.status,a=e.tags||defaults.tags,E=e.storage||defaults.storage,o=e.modifier||defaults.modifier,I=e.accessTypes||defaults.accessTypes,T=e.multiLineStrings||defaults.multiLineStrings,u=!1!==e.indentStatements,S=/[\|\^]/;function l(e,u){var l,d=e.next();if('"'==d||"'"==d)return u.tokenize=(l=d,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==l&&!r){var s=e.peek();s&&("b"!=(s=s.toLowerCase())&&"h"!=s&&"o"!=s||e.next()),i=!0;break}r=!r&&"\\"==n;}return (i||!r&&!T)&&(t.tokenize=null),"string"}),u.tokenize(e,u);if(/[\[\]\(\){}:=,;]/.test(d))return t=d,"punctuation";if("-"==d&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if(S.test(d))return e.eatWhile(S),"operator";e.eatWhile(/[\w\-]/);var A=e.current();return n.propertyIsEnumerable(A)?"keyword":r.propertyIsEnumerable(A)?"variableName":i.propertyIsEnumerable(A)?"atom":s.propertyIsEnumerable(A)?"comment":a.propertyIsEnumerable(A)?"typeName":E.propertyIsEnumerable(A)||o.propertyIsEnumerable(A)||I.propertyIsEnumerable(A)?"modifier":"variableName"}function d(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i;}function A(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function N(e){var t=e.context.type;return ")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return {startState:function(){return {tokenize:null,context:new d(-2,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var r=n.context;if(e.sol()&&(null==r.align&&(r.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;t=null;var i=(n.tokenize||l)(e,n);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=t&&":"!=t&&","!=t||"statement"!=r.type)if("{"==t)A(n,e.column(),"}");else if("["==t)A(n,e.column(),"]");else if("("==t)A(n,e.column(),")");else if("}"==t){for(;"statement"==r.type;)r=N(n);for("}"==r.type&&(r=N(n));"statement"==r.type;)r=N(n);}else t==r.type?N(n):u&&(("}"==r.type||"top"==r.type)&&";"!=t||"statement"==r.type&&"newstatement"==t)&&A(n,e.column(),"statement");else N(n);return n.startOfLine=!1,i},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}}}
export { asn1 };

View File

@ -1,3 +0,0 @@
var atoms=["exten","same","include","ignorepat","switch"],dpcmd=["#include","#exec"],apps=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function basicToken(e,t){var a="",n=e.next();if(t.blockComment)return "-"==n&&e.match("-;",!0)?t.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),t.blockComment=!1):e.skipToEnd(),"comment";if(";"==n)return e.match("--",!0)&&!e.match("-",!1)?(t.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if("["==n)return e.skipTo("]"),e.eat("]"),"header";if('"'==n)return e.skipTo('"'),"string";if("'"==n)return e.skipTo("'"),"string.special";if("#"==n&&(e.eatWhile(/\w/),a=e.current(),-1!==dpcmd.indexOf(a)))return e.skipToEnd(),"strong";if("$"==n&&"{"==e.peek())return e.skipTo("}"),e.eat("}"),"variableName.special";if(e.eatWhile(/\w/),a=e.current(),-1!==atoms.indexOf(a)){switch(t.extenStart=!0,a){case"same":t.extenSame=!0;break;case"include":case"switch":case"ignorepat":t.extenInclude=!0;}return "atom"}}const asterisk={startState:function(){return {blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,t){var a="";return e.eatSpace()?null:t.extenStart?(e.eatWhile(/[^\s]/),a=e.current(),/^=>?$/.test(a)?(t.extenExten=!0,t.extenStart=!1,"strong"):(t.extenStart=!1,e.skipToEnd(),"error")):t.extenExten?(t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&(e.skipToEnd(),t.extenPriority=!1,t.extenInclude=!1),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),"tag"):t.extenPriority?(t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),"number")):t.extenApplication?(e.eatWhile(/,/),","===(a=e.current())?null:(e.eatWhile(/\w/),a=e.current().toLowerCase(),t.extenApplication=!1,-1!==apps.indexOf(a)?"def":null)):basicToken(e,t)},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}};
export { asterisk };

View File

@ -1,3 +0,0 @@
var reserve="><+-.,[]".split("");const brainfuck={startState:function(){return {commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,t){if(e.eatSpace())return null;e.sol()&&(t.commentLine=!1);var n=e.next().toString();return -1===reserve.indexOf(n)?(t.commentLine=!0,e.eol()&&(t.commentLine=!1),"comment"):!0===t.commentLine?(e.eol()&&(t.commentLine=!1),"comment"):"]"===n||"["===n?("["===n?t.left++:t.right++,"bracket"):"+"===n||"-"===n?"keyword":"<"===n||">"===n?"atom":"."===n||","===n?"def":void(e.eol()&&(t.commentLine=!1))}};
export { brainfuck };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var variable_regex=/({)?[a-zA-Z0-9_]+(})?/;function tokenString(n,e){for(var t,i,r=!1;!n.eol()&&(t=n.next())!=e.pending;){if("$"===t&&"\\"!=i&&'"'==e.pending){r=!0;break}i=t;}return r&&n.backUp(1),t==e.pending?e.continueString=!1:e.continueString=!0,"string"}function tokenize(n,e){var t=n.next();return "$"===t?n.match(variable_regex)?"variableName.special":"variable":e.continueString?(n.backUp(1),tokenString(n,e)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):"#"==t?(n.skipToEnd(),"comment"):"'"==t||'"'==t?(e.pending=t,tokenString(n,e)):"("==t||")"==t?"bracket":t.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}const cmake={startState:function(){var n={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return n},token:function(n,e){return n.eatSpace()?null:tokenize(n,e)}};
export { cmake };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var ERRORCLASS="error";function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var operators=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,delimiters=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,identifiers=/^[_A-Za-z$][_A-Za-z$0-9]*/,atProp=/^@[_A-Za-z$][_A-Za-z$0-9]*/,wordOperators=wordRegexp(["and","or","not","is","isnt","in","instanceof","typeof"]),indentKeywords=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],commonKeywords=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],keywords=wordRegexp(indentKeywords.concat(commonKeywords));indentKeywords=wordRegexp(indentKeywords);var stringPrefixes=/^('{3}|\"{3}|['\"])/,regexPrefixes=/^(\/{3}|\/)/,commonConstants=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],constants=wordRegexp(commonConstants);function tokenBase(e,n){if(e.sol()){null===n.scope.align&&(n.scope.align=!1);var t=n.scope.offset;if(e.eatSpace()){var o=e.indentation();return o>t&&"coffee"==n.scope.type?"indent":o<t?"dedent":null}t>0&&dedent(e,n);}if(e.eatSpace())return null;var r=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=longComment,n.tokenize(e,n);if("#"===r)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var i=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^-?\d+\.\d*/)&&(i=!0),e.match(/^-?\.\d+/)&&(i=!0),i)return "."==e.peek()&&e.backUp(1),"number";var c=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(c=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(c=!0),e.match(/^-?0(?![\dx])/i)&&(c=!0),c)return "number"}if(e.match(stringPrefixes))return n.tokenize=tokenFactory(e.current(),!1,"string"),n.tokenize(e,n);if(e.match(regexPrefixes)){if("/"!=e.current()||e.match(/^.*\//,!1))return n.tokenize=tokenFactory(e.current(),!0,"string.special"),n.tokenize(e,n);e.backUp(1);}return e.match(operators)||e.match(wordOperators)?"operator":e.match(delimiters)?"punctuation":e.match(constants)?"atom":e.match(atProp)||n.prop&&e.match(identifiers)?"property":e.match(keywords)?"keyword":e.match(identifiers)?"variable":(e.next(),ERRORCLASS)}function tokenFactory(e,n,t){return function(o,r){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return t}else {if(o.match(e))return r.tokenize=tokenBase,t;o.eat(/['"\/]/);}return n&&(r.tokenize=tokenBase),t}}function longComment(e,n){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){n.tokenize=tokenBase;break}e.eatWhile("#");}return "comment"}function indent(e,n,t="coffee"){for(var o=0,r=!1,i=null,c=n.scope;c;c=c.prev)if("coffee"===c.type||"}"==c.type){o=c.offset+e.indentUnit;break}"coffee"!==t?(r=null,i=e.column()+e.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:o,type:t,prev:n.scope,align:r,alignOffset:i};}function dedent(e,n){if(n.scope.prev){if("coffee"===n.scope.type){for(var t=e.indentation(),o=!1,r=n.scope;r;r=r.prev)if(t===r.offset){o=!0;break}if(!o)return !0;for(;n.scope.prev&&n.scope.offset!==t;)n.scope=n.scope.prev;return !1}return n.scope=n.scope.prev,!1}}function tokenLexer(e,n){var t=n.tokenize(e,n),o=e.current();"return"===o&&(n.dedent=!0),(("->"===o||"=>"===o)&&e.eol()||"indent"===t)&&indent(e,n);var r="[({".indexOf(o);if(-1!==r&&indent(e,n,"])}".slice(r,r+1)),indentKeywords.exec(o)&&indent(e,n),"then"==o&&dedent(e,n),"dedent"===t&&dedent(e,n))return ERRORCLASS;if(-1!==(r="])}".indexOf(o))){for(;"coffee"==n.scope.type&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==o&&(n.scope=n.scope.prev);}return n.dedent&&e.eol()&&("coffee"==n.scope.type&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),"indent"==t||"dedent"==t?null:t}const coffeeScript={startState:function(){return {tokenize:tokenBase,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,n){var t=null===n.scope.align&&n.scope;t&&e.sol()&&(t.align=!1);var o=tokenLexer(e,n);return o&&"comment"!=o&&(t&&(t.align=!0),n.prop="punctuation"==o&&"."==e.current()),o},indent:function(e,n){if(e.tokenize!=tokenBase)return 0;var t=e.scope,o=n&&"])}".indexOf(n.charAt(0))>-1;if(o)for(;"coffee"==t.type&&t.prev;)t=t.prev;var r=o&&t.type===n.charAt(0);return t.align?t.alignOffset-(r?1:0):(r?t.prev:t).offset},languageData:{commentTokens:{line:"#"}}};
export { coffeeScript };

View File

@ -1,3 +0,0 @@
var type,specialForm=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,assumeBody=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,numLiteral=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,symbol=/[^\s'`,@()\[\]";]/;function readSym(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!symbol.test(t)){e.backUp(1);break}return e.current()}function base(e,t){if(e.eatSpace())return type="ws",null;if(e.match(numLiteral))return "number";var n;if("\\"==(n=e.next())&&(n=e.next()),'"'==n)return (t.tokenize=inString)(e,t);if("("==n)return type="open","bracket";if(")"==n||"]"==n)return type="close","bracket";if(";"==n)return e.skipToEnd(),type="ws","comment";if(/['`,@]/.test(n))return null;if("|"==n)return e.skipTo("|")?(e.next(),"variableName"):(e.skipToEnd(),"error");if("#"==n)return "("==(n=e.next())?(type="open","bracket"):/[+\-=\.']/.test(n)||/\d/.test(n)&&e.match(/^\d*#/)?null:"|"==n?(t.tokenize=inComment)(e,t):":"==n?(readSym(e),"meta"):"\\"==n?(e.next(),readSym(e),"string.special"):"error";var r=readSym(e);return "."==r?null:(type="symbol","nil"==r||"t"==r||":"==r.charAt(0)?"atom":"open"==t.lastType&&(specialForm.test(r)||assumeBody.test(r))?"keyword":"&"==r.charAt(0)?"variableName.special":"variableName")}function inString(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=base;break}r=!r&&"\\"==n;}return "string"}function inComment(e,t){for(var n,r;n=e.next();){if("#"==n&&"|"==r){t.tokenize=base;break}r=n;}return type="ws","comment"}const commonLisp={startState:function(){return {ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:base}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),type=null;var n=t.tokenize(e,t);return "ws"!=type&&(null==t.ctx.indentTo?"symbol"==type&&assumeBody.test(e.current())?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=type),"open"==type?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==type&&(t.ctx=t.ctx.prev||t.ctx),n},indent:function(e){var t=e.ctx.indentTo;return "number"==typeof t?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}};
export { commonLisp };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var curPunc,wordRegexp=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")},tokenBase=function(e){var t=e.next();if('"'===t)return e.match(/^.*?"/),"string";if("'"===t)return e.match(/^.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return curPunc=t,"punctuation";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(operatorChars.test(t))return e.eatWhile(operatorChars),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return funcs.test(n)?"builtin":preds.test(n)?"def":keywords.test(n)||systemKeywords.test(n)?"keyword":"variable"},pushContext=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},popContext=function(e){return e.indent=e.context.indent,e.context=e.context.prev},funcs=wordRegexp(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),preds=wordRegexp(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),keywords=wordRegexp(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),systemKeywords=wordRegexp(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),operatorChars=/[*+\-<>=&|~%^]/;const cypher={startState:function(){return {tokenize:tokenBase,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===curPunc)pushContext(t,")",e.column());else if("["===curPunc)pushContext(t,"]",e.column());else if("{"===curPunc)pushContext(t,"}",e.column());else if(/[\]\}\)]/.test(curPunc)){for(;t.context&&"pattern"===t.context.type;)popContext(t);t.context&&curPunc===t.context.type&&popContext(t);}else "."===curPunc&&t.context&&"pattern"===t.context.type?popContext(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?pushContext(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),o=e.context;if(/[\]\}]/.test(r))for(;o&&"pattern"===o.type;)o=o.prev;var s=o&&r===o.type;return o?"keywords"===o.type?null:o.align?o.col+(s?0:1):o.indent+(s?0:n.unit):0}};
export { cypher };

View File

@ -1,3 +0,0 @@
function words(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}const parserConfig={keywords:words("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+(blockKeywords="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with")),blockKeywords:words(blockKeywords),builtin:words("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:words("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}};var curPunc,keywords=parserConfig.keywords,builtin=parserConfig.builtin,blockKeywords=parserConfig.blockKeywords,atoms=parserConfig.atoms,hooks=parserConfig.hooks,multiLineStrings=parserConfig.multiLineStrings,isOperatorChar=/[+\-*&%=<>!?|\/]/;function tokenBase(e,t){var n=e.next();if(hooks[n]){var r=hooks[n](e,t);if(!1!==r)return r}if('"'==n||"'"==n||"`"==n)return t.tokenize=tokenString(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return curPunc=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("/"==n){if(e.eat("+"))return t.tokenize=tokenNestedComment,tokenNestedComment(e,t);if(e.eat("*"))return t.tokenize=tokenComment,tokenComment(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return keywords.propertyIsEnumerable(o)?(blockKeywords.propertyIsEnumerable(o)&&(curPunc="newstatement"),"keyword"):builtin.propertyIsEnumerable(o)?(blockKeywords.propertyIsEnumerable(o)&&(curPunc="newstatement"),"builtin"):atoms.propertyIsEnumerable(o)?"atom":"variable"}function tokenString(e){return function(t,n){for(var r,o=!1,i=!1;null!=(r=t.next());){if(r==e&&!o){i=!0;break}o=!o&&"\\"==r;}return (i||!o&&!multiLineStrings)&&(n.tokenize=null),"string"}}function tokenComment(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n;}return "comment"}function tokenNestedComment(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n;}return "comment"}function Context(e,t,n,r,o){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=o;}function pushContext(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new Context(r,t,n,null,e.context)}function popContext(e){var t=e.context.type;return ")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const d={startState:function(e){return {tokenize:null,context:new Context(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;curPunc=null;var r=(t.tokenize||tokenBase)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=curPunc&&":"!=curPunc&&","!=curPunc||"statement"!=n.type)if("{"==curPunc)pushContext(t,e.column(),"}");else if("["==curPunc)pushContext(t,e.column(),"]");else if("("==curPunc)pushContext(t,e.column(),")");else if("}"==curPunc){for(;"statement"==n.type;)n=popContext(t);for("}"==n.type&&(n=popContext(t));"statement"==n.type;)n=popContext(t);}else curPunc==n.type?popContext(t):(("}"==n.type||"top"==n.type)&&";"!=curPunc||"statement"==n.type&&"newstatement"==curPunc)&&pushContext(t,e.column(),"statement");else popContext(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=tokenBase&&null!=e.tokenize)return null;var r=e.context,o=t&&t.charAt(0);"statement"==r.type&&"}"==o&&(r=r.prev);var i=o==r.type;return "statement"==r.type?r.indented+("{"==o?0:n.unit):r.align?r.column+(i?0:1):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};
export { d };

View File

@ -1,3 +0,0 @@
var TOKEN_NAMES={"+":"inserted","-":"deleted","@":"meta"};const diff={token:function(r){var e=r.string.search(/[\t ]+?$/);if(!r.sol()||0===e)return r.skipToEnd(),("error "+(TOKEN_NAMES[r.string.charAt(0)]||"")).replace(/ $/,"");var t=TOKEN_NAMES[r.peek()]||r.skipToEnd();return -1===e?r.skipToEnd():r.pos=e,t}};
export { diff };

View File

@ -1,5 +0,0 @@
import { s as simpleMode } from './simple-mode-e317f067.js';
var from="from",fromRegex=new RegExp("^(\\s*)\\b("+from+")\\b","i"),shells=["run","cmd","entrypoint","shell"],shellsAsArrayRegex=new RegExp("^(\\s*)("+shells.join("|")+")(\\s+\\[)","i"),expose="expose",exposeRegex=new RegExp("^(\\s*)("+expose+")(\\s+)","i"),others=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],instructions=[from,expose].concat(shells).concat(others),instructionRegex="("+instructions.join("|")+")",instructionOnlyLine=new RegExp("^(\\s*)"+instructionRegex+"(\\s*)(#.*)?$","i"),instructionWithArguments=new RegExp("^(\\s*)"+instructionRegex+"(\\s+)","i");const dockerFile=simpleMode({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:fromRegex,token:[null,"keyword"],sol:!0,next:"from"},{regex:instructionOnlyLine,token:[null,"keyword",null,"error"],sol:!0},{regex:shellsAsArrayRegex,token:[null,"keyword",null],sol:!0,next:"array"},{regex:exposeRegex,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:instructionWithArguments,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});
export { dockerFile };

View File

@ -1,3 +0,0 @@
var type;function ret(t,e){return type=e,t}function tokenBase(t,e){var n=t.next();if("<"!=n||!t.eat("!")){if("<"==n&&t.eat("?"))return e.tokenize=inBlock("meta","?>"),ret("meta",n);if("#"==n&&t.eatWhile(/[\w]/))return ret("atom","tag");if("|"==n)return ret("keyword","separator");if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return ret(null,n);if(n.match(/[\[\]]/))return ret("rule",n);if('"'==n||"'"==n)return e.tokenize=tokenString(n),e.tokenize(t,e);if(t.eatWhile(/[a-zA-Z\?\+\d]/)){var r=t.current();return null!==r.substr(r.length-1,r.length).match(/\?|\+/)&&t.backUp(1),ret("tag","tag")}return "%"==n||"*"==n?ret("number","number"):(t.eatWhile(/[\w\\\-_%.{,]/),ret(null,null))}return t.eatWhile(/[\-]/)?(e.tokenize=tokenSGMLComment,tokenSGMLComment(t,e)):t.eatWhile(/[\w]/)?ret("keyword","doindent"):void 0}function tokenSGMLComment(t,e){for(var n,r=0;null!=(n=t.next());){if(r>=2&&">"==n){e.tokenize=tokenBase;break}r="-"==n?r+1:0;}return ret("comment","comment")}function tokenString(t){return function(e,n){for(var r,a=!1;null!=(r=e.next());){if(r==t&&!a){n.tokenize=tokenBase;break}a=!a&&"\\"==r;}return ret("string","tag")}}function inBlock(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=tokenBase;break}n.next();}return t}}const dtd={startState:function(){return {tokenize:tokenBase,baseIndent:0,stack:[]}},token:function(t,e){if(t.eatSpace())return null;var n=e.tokenize(t,e),r=e.stack[e.stack.length-1];return "["==t.current()||"doindent"===type||"["==type?e.stack.push("rule"):"endtag"===type?e.stack[e.stack.length-1]="endtag":"]"==t.current()||"]"==type||">"==type&&"rule"==r?e.stack.pop():"["==type&&e.stack.push("["),n},indent:function(t,e,n){var r=t.stack.length;return "]"===e.charAt(0)?r--:">"===e.substr(e.length-1,e.length)&&("<"===e.substr(0,1)||"doindent"==type&&e.length>1||("doindent"==type?r--:">"==type&&e.length>1||"tag"==type&&">"!==e||("tag"==type&&"rule"==t.stack[t.stack.length-1]?r--:"tag"==type?r++:">"===e&&"rule"==t.stack[t.stack.length-1]&&">"===type?r--:">"===e&&"rule"==t.stack[t.stack.length-1]||("<"!==e.substr(0,1)&&">"===e.substr(0,1)?r-=1:">"===e||(r-=1)))),null!=type&&"]"!=type||r--),t.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}};
export { dtd };

View File

@ -1,3 +0,0 @@
function forEach(e,t){for(var n=0;n<e.length;n++)t(e[n],n);}function some(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return !0;return !1}var words={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};words.otherDefinition=words.unnamedDefinition.concat(words.namedDefinition).concat(words.otherParameterizedDefinition),words.definition=words.typeParameterizedDefinition.concat(words.otherDefinition),words.parameterizedDefinition=words.typeParameterizedDefinition.concat(words.otherParameterizedDefinition),words.simpleDefinition=words.constantSimpleDefinition.concat(words.variableSimpleDefinition).concat(words.otherSimpleDefinition),words.keyword=words.statement.concat(words.separator).concat(words.other);var symbolPattern="[-_a-zA-Z?!*@<>$%]+",symbol=new RegExp("^"+symbolPattern),patterns={symbolKeyword:symbolPattern+":",symbolClass:"<"+symbolPattern+">",symbolGlobal:"\\*"+symbolPattern+"\\*",symbolConstant:"\\$"+symbolPattern},patternStyles={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var patternName in patterns)patterns.hasOwnProperty(patternName)&&(patterns[patternName]=new RegExp("^"+patterns[patternName]));patterns.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var styles={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},wordLookup={},styleLookup={};function chain(e,t,n){return t.tokenize=n,n(e,t)}function tokenBase(e,t){var n=e.peek();if("'"==n||'"'==n)return e.next(),chain(e,t,tokenString(n,"string"));if("/"==n){if(e.next(),e.eat("*"))return chain(e,t,tokenComment);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1);}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return "number"}else {if("#"==n)return e.next(),'"'==(n=e.peek())?(e.next(),chain(e,t,tokenString('"',"string"))):"b"==n?(e.next(),e.eatWhile(/[01]/),"number"):"x"==n?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==n?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==n?(e.next(),"punctuation"):"["==n||"("==n?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==n)return e.next(),"="==(n=e.peek())?(e.next(),"="==(n=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==n){if(e.next(),"="==(n=e.peek()))return e.next(),"operator";if(":"==n)return e.next(),"punctuation"}else {if(-1!="[](){}".indexOf(n))return e.next(),"bracket";if(-1!=".,".indexOf(n))return e.next(),"punctuation";if(e.match("end"))return "keyword"}}for(var r in patterns)if(patterns.hasOwnProperty(r)){var o=patterns[r];if(o instanceof Array&&some(o,(function(t){return e.match(t)}))||e.match(o))return patternStyles[r]}return /[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),wordLookup.hasOwnProperty(e.current())?styleLookup[e.current()]:e.current().match(symbol)?"variable":(e.next(),"variableName.standard"))}function tokenComment(e,t){for(var n,r=!1,o=!1,i=0;n=e.next();){if("/"==n&&r){if(!(i>0)){t.tokenize=tokenBase;break}i--;}else "*"==n&&o&&i++;r="*"==n,o="/"==n;}return "comment"}function tokenString(e,t){return function(n,r){for(var o,i=!1,a=!1;null!=(o=n.next());){if(o==e&&!i){a=!0;break}i=!i&&"\\"==o;}return !a&&i||(r.tokenize=tokenBase),t}}forEach(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){forEach(words[e],(function(t){wordLookup[t]=e,styleLookup[t]=styles[e];}));}));const dylan={startState:function(){return {tokenize:tokenBase,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}};
export { dylan };

View File

@ -1,3 +0,0 @@
var commentType={slash:0,parenthesis:1},stateType={comment:0,_string:1,characterClass:2};const ebnf={startState:function(){return {stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'==e.peek()||"'"==e.peek()?(t.stringType=e.peek(),e.next(),t.stack.unshift(stateType._string)):e.match("/*")?(t.stack.unshift(stateType.comment),t.commentType=commentType.slash):e.match("(*")&&(t.stack.unshift(stateType.comment),t.commentType=commentType.parenthesis)),t.stack[0]){case stateType._string:for(;t.stack[0]===stateType._string&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case stateType.comment:for(;t.stack[0]===stateType.comment&&!e.eol();)t.commentType===commentType.slash&&e.match("*/")||t.commentType===commentType.parenthesis&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return "comment";case stateType.characterClass:for(;t.stack[0]===stateType.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return "operator"}var a=e.peek();switch(a){case"[":return e.next(),t.stack.unshift(stateType.characterClass),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return "header";if(e.match(/[%][A-Za-z]+/))return "keyword";if(e.match(/[%][}]/))return "bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return "keyword";case"\\":if(e.match(/[\][a-z]+/))return "string.special";case".":if(e.match("."))return "atom";case"*":case"-":case"+":case"^":if(e.match(a))return "atom";case"$":if(e.match("$$"))return "builtin";if(e.match(/[$][0-9]+/))return "variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return "builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}};
export { ebnf };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
function wordObj(e){for(var t={},r=0,n=e.length;r<n;++r)t[e[r]]=!0;return t}var keywords=wordObj(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),operators=wordObj([":=","and then","and","or","<<",">>"]);function chain(e,t,r){return r.tokenize.push(e),e(t,r)}function tokenBase(e,t){if(e.eatSpace())return null;var r=e.next();return '"'==r||"'"==r?chain(readQuoted(r,"string"),e,t):"-"==r&&e.eat("-")?(e.skipToEnd(),"comment"):":"==r&&e.eat("=")?"operator":/[0-9]/.test(r)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(r)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(r)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}function readQuoted(e,t,r){return function(n,a){for(var o,i=!1;null!=(o=n.next());){if(o==e&&(r||!i)){a.tokenize.pop();break}i=!i&&"%"==o;}return t}}const eiffel={startState:function(){return {tokenize:[tokenBase]}},token:function(e,t){var r=t.tokenize[t.tokenize.length-1](e,t);if("variable"==r){var n=e.current();r=keywords.propertyIsEnumerable(e.current())?"keyword":operators.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)||/^0[cC][0-7]+$/g.test(n)||/^0[xX][a-fA-F0-9]+$/g.test(n)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)||/^[0-9]+$/g.test(n)?"number":"variable";}return r},languageData:{commentTokens:{line:"--"}}};
export { eiffel };

View File

@ -1,3 +0,0 @@
function switchState(t,e,r){return e(r),r(t,e)}var lowerRE=/[a-z]/,upperRE=/[A-Z]/,innerRE=/[a-zA-Z0-9_]/,digitRE=/[0-9]/,hexRE=/[0-9A-Fa-f]/,symbolRE=/[-&*+.\\/<>=?^|:]/,specialRE=/[(),[\]{}]/,spacesRE=/[ \v\f]/;function normal(){return function(t,e){if(t.eatWhile(spacesRE))return null;var r=t.next();if(specialRE.test(r))return "{"===r&&t.eat("-")?switchState(t,e,chompMultiComment(1)):"["===r&&t.match("glsl|")?switchState(t,e,chompGlsl):"builtin";if("'"===r)return switchState(t,e,chompChar);if('"'===r)return t.eat('"')?t.eat('"')?switchState(t,e,chompMultiString):"string":switchState(t,e,chompSingleString);if(upperRE.test(r))return t.eatWhile(innerRE),"type";if(lowerRE.test(r)){var n=1===t.pos;return t.eatWhile(innerRE),n?"def":"variable"}if(digitRE.test(r)){if("0"===r){if(t.eat(/[xX]/))return t.eatWhile(hexRE),"number"}else t.eatWhile(digitRE);return t.eat(".")&&t.eatWhile(digitRE),t.eat(/[eE]/)&&(t.eat(/[-+]/),t.eatWhile(digitRE)),"number"}return symbolRE.test(r)?"-"===r&&t.eat("-")?(t.skipToEnd(),"comment"):(t.eatWhile(symbolRE),"keyword"):"_"===r?"keyword":"error"}}function chompMultiComment(t){return 0==t?normal():function(e,r){for(;!e.eol();){var n=e.next();if("{"==n&&e.eat("-"))++t;else if("-"==n&&e.eat("}")&&0===--t)return r(normal()),"comment"}return r(chompMultiComment(t)),"comment"}}function chompMultiString(t,e){for(;!t.eol();){if('"'===t.next()&&t.eat('"')&&t.eat('"'))return e(normal()),"string"}return "string"}function chompSingleString(t,e){for(;t.skipTo('\\"');)t.next(),t.next();return t.skipTo('"')?(t.next(),e(normal()),"string"):(t.skipToEnd(),e(normal()),"error")}function chompChar(t,e){for(;t.skipTo("\\'");)t.next(),t.next();return t.skipTo("'")?(t.next(),e(normal()),"string"):(t.skipToEnd(),e(normal()),"error")}function chompGlsl(t,e){for(;!t.eol();){if("|"===t.next()&&t.eat("]"))return e(normal()),"string"}return "string"}var wellKnownWords={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const elm={startState:function(){return {f:normal()}},copyState:function(t){return {f:t.f}},token:function(t,e){var r=e.f(t,(function(t){e.f=t;})),n=t.current();return wellKnownWords.hasOwnProperty(n)?"keyword":r}};
export { elm };

File diff suppressed because one or more lines are too long

View File

@ -1,5 +0,0 @@
import { s as simpleMode } from './simple-mode-e317f067.js';
const factor=simpleMode({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}});
export { factor };

View File

@ -1,3 +0,0 @@
var keywords={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},start_blocks={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},end_blocks={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},atoms={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},isOperatorChar=/[+\-*&^%:=<>!|\/]/;function tokenBase(e,t){var n=e.next();if(/[\d\.]/.test(n))return "."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==n||"("==n){if(e.eat("*"))return t.tokenize=tokenComment,tokenComment(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current().toLowerCase();return keywords.propertyIsEnumerable(o)||start_blocks.propertyIsEnumerable(o)||end_blocks.propertyIsEnumerable(o)?"keyword":atoms.propertyIsEnumerable(o)?"atom":"variable"}function tokenComment(e,t){for(var n,o=!1;n=e.next();){if(("/"==n||")"==n)&&o){t.tokenize=tokenBase;break}o="*"==n;}return "comment"}function Context(e,t,n,o,r){this.indented=e,this.column=t,this.type=n,this.align=o,this.prev=r;}function pushContext(e,t,n){return e.context=new Context(e.indented,t,n,null,e.context)}function popContext(e){if(e.context.prev)return "end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}const fcl={startState:function(e){return {tokenize:null,context:new Context(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var o=(t.tokenize||tokenBase)(e,t);if("comment"==o)return o;null==n.align&&(n.align=!0);var r=e.current().toLowerCase();return start_blocks.propertyIsEnumerable(r)?pushContext(t,e.column(),"end_block"):end_blocks.propertyIsEnumerable(r)&&popContext(t),t.startOfLine=!1,o},indent:function(e,t,n){if(e.tokenize!=tokenBase&&null!=e.tokenize)return 0;var o=e.context,r=end_blocks.propertyIsEnumerable(t);return o.align?o.column+(r?0:1):o.indented+(r?0:n.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}};
export { fcl };

View File

@ -1,3 +0,0 @@
function toWordList(t){var E=[];return t.split(" ").forEach((function(t){E.push({name:t});})),E}var coreWordList=toWordList("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),immediateWordList=toWordList("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function searchWordList(t,E){var i;for(i=t.length-1;i>=0;i--)if(t[i].name===E.toUpperCase())return t[i]}const forth={startState:function(){return {state:"",base:10,coreWordList:coreWordList,immediateWordList:immediateWordList,wordList:[]}},token:function(t,E){var i;if(t.eatSpace())return null;if(""===E.state){if(t.match(/^(\]|:NONAME)(\s|$)/i))return E.state=" compilation","builtin";if(i=t.match(/^(\:)\s+(\S+)(\s|$)+/))return E.wordList.push({name:i[2].toUpperCase()}),E.state=" compilation","def";if(i=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return E.wordList.push({name:i[2].toUpperCase()}),"def";if(i=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return "builtin"}else {if(t.match(/^(\;|\[)(\s)/))return E.state="",t.backUp(1),"builtin";if(t.match(/^(\;|\[)($)/))return E.state="","builtin";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return "builtin"}return (i=t.match(/^(\S+)(\s+|$)/))?void 0!==searchWordList(E.wordList,i[1])?"variable":"\\"===i[1]?(t.skipToEnd(),"comment"):void 0!==searchWordList(E.coreWordList,i[1])?"builtin":void 0!==searchWordList(E.immediateWordList,i[1])?"keyword":"("===i[1]?(t.eatWhile((function(t){return ")"!==t})),t.eat(")"),"comment"):".("===i[1]?(t.eatWhile((function(t){return ")"!==t})),t.eat(")"),"string"):'S"'===i[1]||'."'===i[1]||'C"'===i[1]?(t.eatWhile((function(t){return '"'!==t})),t.eat('"'),"string"):i[1]-68719476735?"number":"atom":void 0}};
export { forth };

View File

@ -1,3 +0,0 @@
function words(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var keywords=words(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),builtins=words(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),dataTypes=words(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),isOperatorChar=/[+\-*&=<>\/\:]/,litOperator=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function tokenBase(e,t){if(e.match(litOperator))return "operator";var n=e.next();if("!"==n)return e.skipToEnd(),"comment";if('"'==n||"'"==n)return t.tokenize=tokenString(n),t.tokenize(e,t);if(/[\[\]\(\),]/.test(n))return null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();return keywords.hasOwnProperty(a)?"keyword":builtins.hasOwnProperty(a)||dataTypes.hasOwnProperty(a)?"builtin":"variable"}function tokenString(e){return function(t,n){for(var a,i=!1,r=!1;null!=(a=t.next());){if(a==e&&!i){r=!0;break}i=!i&&"\\"==a;}return !r&&i||(n.tokenize=null),"string"}}const fortran={startState:function(){return {tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||tokenBase)(e,t);return n}};
export { fortran };

View File

@ -1,3 +0,0 @@
function mkGas(i){var l=[],e="",t={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},n={};function a(i,l){for(var e,t=!1;null!=(e=i.next());){if("/"===e&&t){l.tokenize=null;break}t="*"===e;}return "comment"}return "x86"===i?(e="#",n.ax="variable",n.eax="variableName.special",n.rax="variableName.special",n.bx="variable",n.ebx="variableName.special",n.rbx="variableName.special",n.cx="variable",n.ecx="variableName.special",n.rcx="variableName.special",n.dx="variable",n.edx="variableName.special",n.rdx="variableName.special",n.si="variable",n.esi="variableName.special",n.rsi="variableName.special",n.di="variable",n.edi="variableName.special",n.rdi="variableName.special",n.sp="variable",n.esp="variableName.special",n.rsp="variableName.special",n.bp="variable",n.ebp="variableName.special",n.rbp="variableName.special",n.ip="variable",n.eip="variableName.special",n.rip="variableName.special",n.cs="keyword",n.ds="keyword",n.ss="keyword",n.es="keyword",n.fs="keyword",n.gs="keyword"):"arm"!==i&&"armv6"!==i||(e="@",t.syntax="builtin",n.r0="variable",n.r1="variable",n.r2="variable",n.r3="variable",n.r4="variable",n.r5="variable",n.r6="variable",n.r7="variable",n.r8="variable",n.r9="variable",n.r10="variable",n.r11="variable",n.r12="variable",n.sp="variableName.special",n.lr="variableName.special",n.pc="variableName.special",n.r13=n.sp,n.r14=n.lr,n.r15=n.pc,l.push((function(i,l){if("#"===i)return l.eatWhile(/\w/),"number"}))),{startState:function(){return {tokenize:null}},token:function(i,b){if(b.tokenize)return b.tokenize(i,b);if(i.eatSpace())return null;var r,u,s=i.next();if("/"===s&&i.eat("*"))return b.tokenize=a,a(i,b);if(s===e)return i.skipToEnd(),"comment";if('"'===s)return function(i,l){for(var e,t=!1;null!=(e=i.next());){if(e===l&&!t)return !1;t=!t&&"\\"===e;}}(i,'"'),"string";if("."===s)return i.eatWhile(/\w/),u=i.current().toLowerCase(),(r=t[u])||null;if("="===s)return i.eatWhile(/\w/),"tag";if("{"===s)return "bracket";if("}"===s)return "bracket";if(/\d/.test(s))return "0"===s&&i.eat("x")?(i.eatWhile(/[0-9a-fA-F]/),"number"):(i.eatWhile(/\d/),"number");if(/\w/.test(s))return i.eatWhile(/\w/),i.eat(":")?"tag":(u=i.current().toLowerCase(),(r=n[u])||null);for(var c=0;c<l.length;c++)if(r=l[c](s,i,b))return r},languageData:{commentTokens:{line:e,block:{open:"/*",close:"*/"}}}}}const gas=mkGas("x86");const gasArm=mkGas("arm");
export { gas, gasArm };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var curPunc,keywords={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},atoms={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},isOperatorChar=/[+\-*&^%:=<>!|\/]/;function tokenBase(t,e){var n=t.next();if('"'==n||"'"==n||"`"==n)return e.tokenize=tokenString(n),e.tokenize(t,e);if(/[\d\.]/.test(n))return "."==n?t.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?t.match(/^[xX][0-9a-fA-F]+/)||t.match(/^0[0-7]+/):t.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(n))return curPunc=n,null;if("/"==n){if(t.eat("*"))return e.tokenize=tokenComment,tokenComment(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(isOperatorChar.test(n))return t.eatWhile(isOperatorChar),"operator";t.eatWhile(/[\w\$_\xa1-\uffff]/);var r=t.current();return keywords.propertyIsEnumerable(r)?("case"!=r&&"default"!=r||(curPunc="case"),"keyword"):atoms.propertyIsEnumerable(r)?"atom":"variable"}function tokenString(t){return function(e,n){for(var r,o=!1,i=!1;null!=(r=e.next());){if(r==t&&!o){i=!0;break}o=!o&&"`"!=t&&"\\"==r;}return (i||!o&&"`"!=t)&&(n.tokenize=tokenBase),"string"}}function tokenComment(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=tokenBase;break}r="*"==n;}return "comment"}function Context(t,e,n,r,o){this.indented=t,this.column=e,this.type=n,this.align=r,this.prev=o;}function pushContext(t,e,n){return t.context=new Context(t.indented,e,n,null,t.context)}function popContext(t){if(t.context.prev){var e=t.context.type;return ")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}}const go={startState:function(t){return {tokenize:null,context:new Context(-t,0,"top",!1),indented:0,startOfLine:!0}},token:function(t,e){var n=e.context;if(t.sol()&&(null==n.align&&(n.align=!1),e.indented=t.indentation(),e.startOfLine=!0,"case"==n.type&&(n.type="}")),t.eatSpace())return null;curPunc=null;var r=(e.tokenize||tokenBase)(t,e);return "comment"==r||(null==n.align&&(n.align=!0),"{"==curPunc?pushContext(e,t.column(),"}"):"["==curPunc?pushContext(e,t.column(),"]"):"("==curPunc?pushContext(e,t.column(),")"):"case"==curPunc?n.type="case":("}"==curPunc&&"}"==n.type||curPunc==n.type)&&popContext(e),e.startOfLine=!1),r},indent:function(t,e,n){if(t.tokenize!=tokenBase&&null!=t.tokenize)return null;var r=t.context,o=e&&e.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(e))return t.context.type="}",r.indented;var i=o==r.type;return r.align?r.column+(i?0:1):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};
export { go };

View File

@ -1,3 +0,0 @@
function words(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var curPunc,keywords=words("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 threadsafe throw throws trait transient try void volatile while"),blockKeywords=words("catch class def do else enum finally for if interface switch trait try while"),standaloneKeywords=words("return break continue"),atoms=words("null true false this");function tokenBase(e,t){var n=e.next();if('"'==n||"'"==n)return startString(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return curPunc=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(tokenComment),tokenComment(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(expectExpression(t.lastToken,!1))return startString(n,e,t)}if("-"==n&&e.eat(">"))return curPunc="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return "property";if(e.eat(":"))return curPunc="proplabel","property";var r=e.current();return atoms.propertyIsEnumerable(r)?"atom":keywords.propertyIsEnumerable(r)?(blockKeywords.propertyIsEnumerable(r)?curPunc="newstatement":standaloneKeywords.propertyIsEnumerable(r)&&(curPunc="standalone"),"keyword"):"variable"}function startString(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return "string";r=!0;}function o(t,n){for(var o,a=!1,i=!r;null!=(o=t.next());){if(o==e&&!a){if(!r)break;if(t.match(e+e)){i=!0;break}}if('"'==e&&"$"==o&&!a&&t.eat("{"))return n.tokenize.push(tokenBaseUntilBrace()),"string";a=!a&&"\\"==o;}return i&&n.tokenize.pop(),"string"}return n.tokenize.push(o),o(t,n)}function tokenBaseUntilBrace(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else "{"==t.peek()&&e++;return tokenBase(t,n)}return t.isBase=!0,t}function tokenComment(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n;}return "comment"}function expectExpression(e,t){return !e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function Context(e,t,n,r,o){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=o;}function pushContext(e,t,n){return e.context=new Context(e.indented,t,n,null,e.context)}function popContext(e){var t=e.context.type;return ")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}tokenBase.isBase=!0;const groovy={startState:function(e){return {tokenize:[tokenBase],context:new Context(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||expectExpression(t.lastToken,!0)||(popContext(t),n=t.context)),e.eatSpace())return null;curPunc=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=curPunc&&":"!=curPunc||"statement"!=n.type)if("->"==curPunc&&"statement"==n.type&&"}"==n.prev.type)popContext(t),t.context.align=!1;else if("{"==curPunc)pushContext(t,e.column(),"}");else if("["==curPunc)pushContext(t,e.column(),"]");else if("("==curPunc)pushContext(t,e.column(),")");else if("}"==curPunc){for(;"statement"==n.type;)n=popContext(t);for("}"==n.type&&(n=popContext(t));"statement"==n.type;)n=popContext(t);}else curPunc==n.type?popContext(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==curPunc)&&pushContext(t,e.column(),"statement");else popContext(t);return t.startOfLine=!1,t.lastToken=curPunc||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),o=e.context;"statement"!=o.type||expectExpression(e.lastToken,!0)||(o=o.prev);var a=r==o.type;return "statement"==o.type?o.indented+("{"==r?0:n.unit):o.align?o.column+(a?0:1):o.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}};
export { groovy };

View File

@ -1,3 +0,0 @@
function switchState(e,t,r){return t(r),r(e,t)}var smallRE=/[a-z_]/,largeRE=/[A-Z]/,digitRE=/\d/,hexitRE=/[0-9A-Fa-f]/,octitRE=/[0-7]/,idRE=/[a-z_A-Z0-9'\xa1-\uffff]/,symbolRE=/[-!#$%&*+.\/<=>?@\\^|~:]/,specialRE=/[(),;[\]`{}]/,whiteCharRE=/[ \t\v\f]/;function normal(e,t){if(e.eatWhile(whiteCharRE))return null;var r=e.next();if(specialRE.test(r)){if("{"==r&&e.eat("-")){var n="comment";return e.eat("#")&&(n="meta"),switchState(e,t,ncomment(n,1))}return null}if("'"==r)return e.eat("\\"),e.next(),e.eat("'")?"string":"error";if('"'==r)return switchState(e,t,stringLiteral);if(largeRE.test(r))return e.eatWhile(idRE),e.eat(".")?"qualifier":"type";if(smallRE.test(r))return e.eatWhile(idRE),"variable";if(digitRE.test(r)){if("0"==r){if(e.eat(/[xX]/))return e.eatWhile(hexitRE),"integer";if(e.eat(/[oO]/))return e.eatWhile(octitRE),"number"}e.eatWhile(digitRE);n="number";return e.match(/^\.\d+/)&&(n="number"),e.eat(/[eE]/)&&(n="number",e.eat(/[-+]/),e.eatWhile(digitRE)),n}return "."==r&&e.eat(".")?"keyword":symbolRE.test(r)?"-"==r&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(symbolRE))?(e.skipToEnd(),"comment"):(e.eatWhile(symbolRE),"variable"):"error"}function ncomment(e,t){return 0==t?normal:function(r,n){for(var a=t;!r.eol();){var i=r.next();if("{"==i&&r.eat("-"))++a;else if("-"==i&&r.eat("}")&&0==--a)return n(normal),e}return n(ncomment(e,a)),e}}function stringLiteral(e,t){for(;!e.eol();){var r=e.next();if('"'==r)return t(normal),"string";if("\\"==r){if(e.eol()||e.eat(whiteCharRE))return t(stringGap),"string";e.eat("&")||e.next();}}return t(normal),"error"}function stringGap(e,t){return e.eat("\\")?switchState(e,t,stringLiteral):(e.next(),t(normal),"error")}var wellKnownWords=function(){var e={};function t(t){return function(){for(var r=0;r<arguments.length;r++)e[arguments[r]]=t;}}return t("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),t("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),t("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),t("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),t("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","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","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),e}();const haskell={startState:function(){return {f:normal}},copyState:function(e){return {f:e.f}},token:function(e,t){var r=t.f(e,(function(e){t.f=e;})),n=e.current();return wellKnownWords.hasOwnProperty(n)?wellKnownWords[n]:r},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}};
export { haskell };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
function failFirstLine(r,t){return r.skipToEnd(),t.cur=header,"error"}function start(r,t){return r.match(/^HTTP\/\d\.\d/)?(t.cur=responseStatusCode,"keyword"):r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())?(t.cur=requestPath,"keyword"):failFirstLine(r,t)}function responseStatusCode(r,t){var e=r.match(/^\d+/);if(!e)return failFirstLine(r,t);t.cur=responseStatusText;var n=Number(e[0]);return n>=100&&n<400?"atom":"error"}function responseStatusText(r,t){return r.skipToEnd(),t.cur=header,null}function requestPath(r,t){return r.eatWhile(/\S/),t.cur=requestProtocol,"string.special"}function requestProtocol(r,t){return r.match(/^HTTP\/\d\.\d$/)?(t.cur=header,"keyword"):failFirstLine(r,t)}function header(r){return r.sol()&&!r.eat(/[ \t]/)?r.match(/^.*?:/)?"atom":(r.skipToEnd(),"error"):(r.skipToEnd(),"string")}function body(r){return r.skipToEnd(),null}const http={token:function(r,t){var e=t.cur;return e!=header&&e!=body&&r.eatSpace()?null:e(r,t)},blankLine:function(r){r.cur=body;},startState:function(){return {cur:start}}};
export { http };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
import { P as Parser, j as LezerLanguage, e as indentNodeProp, f as continuedIndent, h as foldNodeProp, q as foldInside, b as styleTags, t as tags, n as LanguageSupport } from './index-8d03edaf.js';
const parser=Parser.deserialize({version:13,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CcOvQPO'#CfOOQO'#Cl'#ClQOQPOOOOQO'#Ce'#CeO}QPO'#CdO!SQPO'#CpOOQO,58},58}O![QPO,58}O!aQPO'#CuOOQO,59Q,59QO!iQPO,59QOVQPO,59OO!nQPO'#CgO!sQPO,59[OOQO1G.i1G.iOVQPO'#ChO!{QPO,59aOOQO1G.l1G.lOOQO1G.j1G.jOOQO,59R,59ROOQO-E6e-E6eOOQO,59S,59SOOQO-E6f-E6f",stateData:"#T~O_OS~OQSORSOSSOTSOaPOcQOhRO~OaUObXO~Og[O~PVOe^O~Of_ObdX~ObaO~OfbOgiX~OgdO~OaUO~Of_Obda~OfbOgia~O",goto:"!kjPPPPPPkkqwk{!RPPP!XPPP!ePPPP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String Object Property PropertyName Array",maxTerm:25,skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]O_~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOa~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOf~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOe~~&rOh~~&wOg~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOc~~(pOb~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});
const jsonParseLinter=()=>e=>{try{JSON.parse(e.state.doc.toString());}catch(r){if(!(r instanceof SyntaxError))throw r;const t=getErrorPosition(r,e.state.doc);return [{from:t,message:r.message,severity:"error",to:t}]}return []};function getErrorPosition(e,r){let t;return (t=e.message.match(/at position (\d+)/))?Math.min(+t[1],r.length):(t=e.message.match(/at line (\d+) column (\d+)/))?Math.min(r.line(+t[1]).from+ +t[2]-1,r.length):0}const jsonLanguage=LezerLanguage.define({parser:parser.configure({props:[indentNodeProp.add({Object:continuedIndent({except:/^\s*\}/}),Array:continuedIndent({except:/^\s*\]/})}),foldNodeProp.add({"Object Array":foldInside}),styleTags({String:tags.string,Number:tags.number,"True False":tags.bool,PropertyName:tags.propertyName,null:tags.null,",":tags.separator,"[ ]":tags.squareBracket,"{ }":tags.brace})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function json(){return new LanguageSupport(jsonLanguage)}
export { json, jsonLanguage, jsonParseLinter };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

914
typecho/write/dist/index.bundle.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import './index-8d03edaf.js';

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var keywords=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],operator=/^[+\-*&%=<>!?|~^]/,sign=/^[:\[\(\{]/,atom=["true","false"],number=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function tokenBase(e,n){var t=e.peek();if(n.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(n.intag){if(n.operator){if(n.operator=!1,e.match(atom))return "atom";if(e.match(number))return "number"}if(n.sign){if(n.sign=!1,e.match(atom))return "atom";if(e.match(number))return "number"}if(n.instring)return t==n.instring&&(n.instring=!1),e.next(),"string";if("'"==t||'"'==t)return n.instring=t,e.next(),"string";if(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))return n.intag=!1,"tag";if(e.match(operator))return n.operator=!0,"operator";if(e.match(sign))n.sign=!0;else if(e.eat(" ")||e.sol()){if(e.match(keywords))return "keyword";if(e.match(atom))return "atom";if(e.match(number))return "number";e.sol()&&e.next();}else e.next();return "variable"}if(e.eat("{")){if(e.eat("#"))return n.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(t=e.eat(/\{|%/))return n.intag=t,"{"==t&&(n.intag="}"),e.eat("-"),"tag"}e.next();}keywords=new RegExp("(("+keywords.join(")|(")+"))\\b"),atom=new RegExp("(("+atom.join(")|(")+"))\\b");const jinja2={startState:function(){return {tokenize:tokenBase}},token:function(e,n){return n.tokenize(e,n)},languageData:{commentTokens:{block:{open:"{#",close:"#}"}}}};
export { jinja2 };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var tokenBase=function(e,t){var r=t.next||"start";if(r){t.next=t.next;var n=Rules[r];if(n.splice){for(var o=0;o<n.length;++o){var i=n[o];if(i.regex&&e.match(i.regex))return t.next=i.next||t.next,i.token}return e.next(),"error"}if(e.match(i=Rules[r]))return i.regex&&e.match(i.regex)?(t.next=i.next,i.token):(e.next(),"error")}return e.next(),"error"},identifier="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",indenter=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+identifier+")?))\\s*$"),keywordend="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",stringfill={token:"string",regex:".+"},Rules={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+keywordend},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+keywordend},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+keywordend},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+keywordend},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+keywordend},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+keywordend},{token:"variableName",regex:identifier+"\\s*:(?![:=])"},{token:"variableName",regex:identifier},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:identifier,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},stringfill],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},stringfill],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},stringfill],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},stringfill],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},stringfill],words:[{token:"string",regex:".*?\\]>",next:"key"},stringfill]};for(var idx in Rules){var r=Rules[idx];if(r.splice)for(var i=0,len=r.length;i<len;++i){var rr=r[i];"string"==typeof rr.regex&&(Rules[idx][i].regex=new RegExp("^"+rr.regex));}else "string"==typeof rr.regex&&(Rules[idx].regex=new RegExp("^"+r.regex));}const liveScript={startState:function(){return {next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(e,t){for(;e.pos==e.start;)var r=tokenBase(e,t);return t.lastToken={style:r,indent:e.indentation(),content:e.current()},r.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(indenter)&&(t+=2),t}};
export { liveScript };

View File

@ -1,3 +0,0 @@
function prefixRE(e){return new RegExp("^(?:"+e.join("|")+")","i")}function wordRE(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var builtins=wordRE(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),keywords=wordRE(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),indentTokens=wordRE(["function","if","repeat","do","\\(","{"]),dedentTokens=wordRE(["end","until","\\)","}"]),dedentPartial=prefixRE(["end","until","\\)","}","else","elseif"]);function readBracket(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function normal(e,t){var n=e.next();return "-"==n&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=bracketed(readBracket(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==n||"'"==n?(t.cur=string(n))(e,t):"["==n&&/[\[=]/.test(e.peek())?(t.cur=bracketed(readBracket(e),"string"))(e,t):/\d/.test(n)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(n)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function bracketed(e,t){return function(n,a){for(var r,o=null;null!=(r=n.next());)if(null==o)"]"==r&&(o=0);else if("="==r)++o;else {if("]"==r&&o==e){a.cur=normal;break}o=null;}return t}}function string(e){return function(t,n){for(var a,r=!1;null!=(a=t.next())&&(a!=e||r);)r=!r&&"\\"==a;return r||(n.cur=normal),"string"}}const lua={startState:function(e){return {basecol:e||0,indentDepth:0,cur:normal}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),a=e.current();return "variable"==n&&(keywords.test(a)?n="keyword":builtins.test(a)&&(n="builtin")),"comment"!=n&&"string"!=n&&(indentTokens.test(a)?++t.indentDepth:dedentTokens.test(a)&&--t.indentDepth),n},indent:function(e,t,n){var a=dedentPartial.test(t);return e.basecol+n.unit*(e.indentDepth-(a?1:0))},languageData:{commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}};
export { lua };

View File

@ -1,3 +0,0 @@
var Identifier="[a-zA-Z\\$][a-zA-Z0-9\\$]*",pBase="(?:\\d+)",pFloat="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",pFloatBase="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",pPrecision="(?:`(?:`?"+pFloat+")?)",reBaseForm=new RegExp("(?:"+pBase+"(?:\\^\\^"+pFloatBase+pPrecision+"?(?:\\*\\^[+-]?\\d+)?))"),reFloatForm=new RegExp("(?:"+pFloat+pPrecision+"?(?:\\*\\^[+-]?\\d+)?)"),reIdInContext=new RegExp("(?:`?)(?:"+Identifier+")(?:`(?:"+Identifier+"))*(?:`?)");function tokenBase(e,t){var a;return '"'===(a=e.next())?(t.tokenize=tokenString,t.tokenize(e,t)):"("===a&&e.eat("*")?(t.commentLevel++,t.tokenize=tokenComment,t.tokenize(e,t)):(e.backUp(1),e.match(reBaseForm,!0,!1)||e.match(reFloatForm,!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(reIdInContext,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function tokenString(e,t){for(var a,n=!1,o=!1;null!=(a=e.next());){if('"'===a&&!o){n=!0;break}o=!o&&"\\"===a;}return n&&!o&&(t.tokenize=tokenBase),"string"}function tokenComment(e,t){for(var a,n;t.commentLevel>0&&null!=(n=e.next());)"("===a&&"*"===n&&t.commentLevel++,"*"===a&&")"===n&&t.commentLevel--,a=n;return t.commentLevel<=0&&(t.tokenize=tokenBase),"comment"}const mathematica={startState:function(){return {tokenize:tokenBase,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}};
export { mathematica };

View File

@ -1,3 +0,0 @@
var rfc2822=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],rfc2822NoEmail=["Date","Subject","Comments","Keywords","Resent-Date"],whitespace=/^[ \t]/,separator=/^From /,rfc2822Header=new RegExp("^("+rfc2822.join("|")+"): "),rfc2822HeaderNoEmail=new RegExp("^("+rfc2822NoEmail.join("|")+"): "),header=/^[^:]+:/,email=/^[^ ]+@[^ ]+/,untilEmail=/^.*?(?=[^ ]+?@[^ ]+)/,bracketedEmail=/^<.*?>/,untilBracketedEmail=/^.*?(?=<.*>)/;function styleForHeader(e){return "Subject"===e?"header":"string"}function readToken(e,r){if(e.sol()){if(r.inSeparator=!1,r.inHeader&&e.match(whitespace))return null;if(r.inHeader=!1,r.header=null,e.match(separator))return r.inHeaders=!0,r.inSeparator=!0,"atom";var a,t=!1;return (a=e.match(rfc2822HeaderNoEmail))||(t=!0)&&(a=e.match(rfc2822Header))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=t,r.header=a[1],"atom"):r.inHeaders&&(a=e.match(header))?(r.inHeader=!0,r.emailPermitted=!0,r.header=a[1],"atom"):(r.inHeaders=!1,e.skipToEnd(),null)}if(r.inSeparator)return e.match(email)?"link":(e.match(untilEmail)||e.skipToEnd(),"atom");if(r.inHeader){var n=styleForHeader(r.header);if(r.emailPermitted){if(e.match(bracketedEmail))return n+" link";if(e.match(untilBracketedEmail))return n}return e.skipToEnd(),n}return e.skipToEnd(),null}const mbox={startState:function(){return {inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:readToken,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1;},languageData:{autocomplete:rfc2822.concat(rfc2822NoEmail)}};
export { mbox };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
function mlLike(e){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},o=e.extraWords||{};for(var t in o)o.hasOwnProperty(t)&&(r[t]=e.extraWords[t]);var n=[];for(var i in r)n.push(i);function d(o,t){var n=o.next();if('"'===n)return t.tokenize=k,t.tokenize(o,t);if("{"===n&&o.eat("|"))return t.longString=!0,t.tokenize=w,t.tokenize(o,t);if("("===n&&o.eat("*"))return t.commentLevel++,t.tokenize=y,t.tokenize(o,t);if("~"===n||"?"===n)return o.eatWhile(/\w/),"variableName.special";if("`"===n)return o.eatWhile(/\w/),"quote";if("/"===n&&e.slashComments&&o.eat("/"))return o.skipToEnd(),"comment";if(/\d/.test(n))return "0"===n&&o.eat(/[bB]/)&&o.eatWhile(/[01]/),"0"===n&&o.eat(/[xX]/)&&o.eatWhile(/[0-9a-fA-F]/),"0"===n&&o.eat(/[oO]/)?o.eatWhile(/[0-7]/):(o.eatWhile(/[\d_]/),o.eat(".")&&o.eatWhile(/[\d]/),o.eat(/[eE]/)&&o.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(n))return "operator";if(/[\w\xa1-\uffff]/.test(n)){o.eatWhile(/[\w\xa1-\uffff]/);var i=o.current();return r.hasOwnProperty(i)?r[i]:"variable"}return null}function k(e,r){for(var o,t=!1,n=!1;null!=(o=e.next());){if('"'===o&&!n){t=!0;break}n=!n&&"\\"===o;}return t&&!n&&(r.tokenize=d),"string"}function y(e,r){for(var o,t;r.commentLevel>0&&null!=(t=e.next());)"("===o&&"*"===t&&r.commentLevel++,"*"===o&&")"===t&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=d),"comment"}function w(e,r){for(var o,t;r.longString&&null!=(t=e.next());)"|"===o&&"}"===t&&(r.longString=!1),o=t;return r.longString||(r.tokenize=d),"string"}return {startState:function(){return {tokenize:d,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{autocomplete:n,commentTokens:{line:e.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}const oCaml=mlLike({extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}});const fSharp=mlLike({extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0});const sml=mlLike({extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0});
export { fSharp, oCaml, sml };

View File

@ -1,3 +0,0 @@
function words(e){for(var t={},n=e.split(" "),i=0;i<n.length;++i)t[n[i]]=!0;return t}var keywords=words("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"),builtin=words("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"),atoms=words("Real Boolean Integer String"),completions=[].concat(Object.keys(keywords),Object.keys(builtin),Object.keys(atoms)),isSingleOperatorChar=/[;=\(:\),{}.*<>+\-\/^\[\]]/,isDoubleOperatorChar=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,isDigit=/[0-9]/,isNonDigit=/[_a-zA-Z]/;function tokenLineComment(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function tokenBlockComment(e,t){for(var n,i=!1;n=e.next();){if(i&&"/"==n){t.tokenize=null;break}i="*"==n;}return "comment"}function tokenString(e,t){for(var n,i=!1;null!=(n=e.next());){if('"'==n&&!i){t.tokenize=null,t.sol=!1;break}i=!i&&"\\"==n;}return "string"}function tokenIdent(e,t){for(e.eatWhile(isDigit);e.eat(isDigit)||e.eat(isNonDigit););var n=e.current();return !t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,keywords.propertyIsEnumerable(n)?"keyword":builtin.propertyIsEnumerable(n)?"builtin":atoms.propertyIsEnumerable(n)?"atom":"variable"}function tokenQIdent(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function tokenUnsignedNumber(e,t){return e.eatWhile(isDigit),e.eat(".")&&e.eatWhile(isDigit),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(isDigit)),t.tokenize=null,t.sol=!1,"number"}const modelica={startState:function(){return {tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=tokenLineComment;else if("/"==n&&e.eat("*"))t.tokenize=tokenBlockComment;else {if(isDoubleOperatorChar.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(isSingleOperatorChar.test(n))return t.tokenize=null,"operator";if(isNonDigit.test(n))t.tokenize=tokenIdent;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=tokenQIdent;else if('"'==n)t.tokenize=tokenString;else {if(!isDigit.test(n))return t.tokenize=null,"error";t.tokenize=tokenUnsignedNumber;}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;var i=e.level;return /(algorithm)/.test(t)&&i--,/(equation)/.test(t)&&i--,/(initial algorithm)/.test(t)&&i--,/(initial equation)/.test(t)&&i--,/(end)/.test(t)&&i--,i>0?n.unit*i:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:completions}};
export { modelica };

View File

@ -1,3 +0,0 @@
function mkParser(t){return {startState:startStateFn,copyState:copyStateFn,token:produceTokenFunction(t),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}}const mscgen=mkParser({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});const msgenny=mkParser({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});const xu=mkParser({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function wordRegexpBoundary(t){return new RegExp("^\\b("+t.join("|")+")\\b","i")}function wordRegexp(t){return new RegExp("^(?:"+t.join("|")+")","i")}function startStateFn(){return {inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function copyStateFn(t){return {inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function produceTokenFunction(t){return function(r,e){if(r.match(wordRegexp(t.brackets),!0,!0))return "bracket";if(!e.inComment){if(r.match(/\/\*[^\*\/]*/,!0,!0))return e.inComment=!0,"comment";if(r.match(wordRegexp(t.singlecomment),!0,!0))return r.skipToEnd(),"comment"}if(e.inComment)return r.match(/[^\*\/]*\*\//,!0,!0)?e.inComment=!1:r.skipToEnd(),"comment";if(!e.inString&&r.match(/\"(\\\"|[^\"])*/,!0,!0))return e.inString=!0,"string";if(e.inString)return r.match(/[^\"]*\"/,!0,!0)?e.inString=!1:r.skipToEnd(),"string";if(t.keywords&&r.match(wordRegexpBoundary(t.keywords),!0,!0))return "keyword";if(r.match(wordRegexpBoundary(t.options),!0,!0))return "keyword";if(r.match(wordRegexpBoundary(t.arcsWords),!0,!0))return "keyword";if(r.match(wordRegexp(t.arcsOthers),!0,!0))return "keyword";if(t.operators&&r.match(wordRegexp(t.operators),!0,!0))return "operator";if(t.constants&&r.match(wordRegexp(t.constants),!0,!0))return "variable";if(!t.inAttributeList&&t.attributes&&r.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(null!==t.attributes&&r.match(wordRegexpBoundary(t.attributes),!0,!0))return "attribute";if(r.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return r.next(),null}}
export { mscgen, msgenny, xu };

View File

@ -1,3 +0,0 @@
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var singleOperators=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),doubleOperators=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),singleDelimiters=new RegExp("^[\\.,:]"),brackets=new RegExp("[()]"),identifiers=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),commandKeywords=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"],intrinsicFuncsWords=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"],intrinsicFuncs=wordRegexp(intrinsicFuncsWords),command=wordRegexp(commandKeywords);function tokenBase(e,t){e.sol()&&(t.label=!0,t.commandMode=0);var n=e.peek();return " "==n||"\t"==n?(t.label=!1,0==t.commandMode?t.commandMode=1:(t.commandMode<0||2==t.commandMode)&&(t.commandMode=0)):"."!=n&&t.commandMode>0&&(t.commandMode=":"==n?-1:2),"("!==n&&"\t"!==n||(t.label=!1),";"===n?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==n?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(doubleOperators)||e.match(singleOperators)?"operator":e.match(singleDelimiters)?null:brackets.test(n)?(e.next(),"bracket"):t.commandMode>0&&e.match(command)?"controlKeyword":e.match(intrinsicFuncs)?"builtin":e.match(identifiers)?"variable":"$"===n||"^"===n?(e.next(),"builtin"):"@"===n?(e.next(),"string.special"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}const mumps={startState:function(){return {label:!1,commandMode:0}},token:function(e,t){var n=tokenBase(e,t);return t.label?"tag":n}};
export { mumps };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var Location={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function transitState(t,n){var a,o=t.location;a=o==Location.PRE_SUBJECT&&"<"==n?Location.WRITING_SUB_URI:o==Location.PRE_SUBJECT&&"_"==n?Location.WRITING_BNODE_URI:o==Location.PRE_PRED&&"<"==n?Location.WRITING_PRED_URI:o==Location.PRE_OBJ&&"<"==n?Location.WRITING_OBJ_URI:o==Location.PRE_OBJ&&"_"==n?Location.WRITING_OBJ_BNODE:o==Location.PRE_OBJ&&'"'==n?Location.WRITING_OBJ_LITERAL:o==Location.WRITING_SUB_URI&&">"==n||o==Location.WRITING_BNODE_URI&&" "==n?Location.PRE_PRED:o==Location.WRITING_PRED_URI&&">"==n?Location.PRE_OBJ:o==Location.WRITING_OBJ_URI&&">"==n||o==Location.WRITING_OBJ_BNODE&&" "==n||o==Location.WRITING_OBJ_LITERAL&&'"'==n||o==Location.WRITING_LIT_LANG&&" "==n||o==Location.WRITING_LIT_TYPE&&">"==n?Location.POST_OBJ:o==Location.WRITING_OBJ_LITERAL&&"@"==n?Location.WRITING_LIT_LANG:o==Location.WRITING_OBJ_LITERAL&&"^"==n?Location.WRITING_LIT_TYPE:" "!=n||o!=Location.PRE_SUBJECT&&o!=Location.PRE_PRED&&o!=Location.PRE_OBJ&&o!=Location.POST_OBJ?o==Location.POST_OBJ&&"."==n?Location.PRE_SUBJECT:Location.ERROR:o,t.location=a;}const ntriples={startState:function(){return {location:Location.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(t,n){var a=t.next();if("<"==a){transitState(n,a);var o="";return t.eatWhile((function(t){return "#"!=t&&">"!=t&&(o+=t,!0)})),n.uris.push(o),t.match("#",!1)?"variable":(t.next(),transitState(n,">"),"variable")}if("#"==a){var i="";return t.eatWhile((function(t){return ">"!=t&&" "!=t&&(i+=t,!0)})),n.anchors.push(i),"url"}if(">"==a)return transitState(n,">"),"variable";if("_"==a){transitState(n,a);var I="";return t.eatWhile((function(t){return " "!=t&&(I+=t,!0)})),n.bnodes.push(I),t.next(),transitState(n," "),"builtin"}if('"'==a)return transitState(n,a),t.eatWhile((function(t){return '"'!=t})),t.next(),"@"!=t.peek()&&"^"!=t.peek()&&transitState(n,'"'),"string";if("@"==a){transitState(n,"@");var _="";return t.eatWhile((function(t){return " "!=t&&(_+=t,!0)})),n.langs.push(_),t.next(),transitState(n," "),"string.special"}if("^"==a){t.next(),transitState(n,"^");var R="";return t.eatWhile((function(t){return ">"!=t&&(R+=t,!0)})),n.types.push(R),t.next(),transitState(n,">"),"variable"}" "==a&&transitState(n,a),"."==a&&transitState(n,a);}};
export { ntriples };

View File

@ -1,3 +0,0 @@
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var singleOperators=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),singleDelimiters=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),doubleOperators=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),doubleDelimiters=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),tripleDelimiters=new RegExp("^((>>=)|(<<=))"),expressionEnd=new RegExp("^[\\]\\)]"),identifiers=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),builtins=wordRegexp(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),keywords=wordRegexp(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function tokenTranspose(e,n){return e.sol()||"'"!==e.peek()?(n.tokenize=tokenBase,tokenBase(e,n)):(e.next(),n.tokenize=tokenBase,"operator")}function tokenComment(e,n){return e.match(/^.*%}/)?(n.tokenize=tokenBase,"comment"):(e.skipToEnd(),"comment")}function tokenBase(e,n){if(e.eatSpace())return null;if(e.match("%{"))return n.tokenize=tokenComment,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=tokenBase,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return "number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return "number"}if(e.match(wordRegexp(["nan","NaN","inf","Inf"])))return "number";var t=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return t?t[1]?"string":"error":e.match(keywords)?"keyword":e.match(builtins)?"builtin":e.match(identifiers)?"variable":e.match(singleOperators)||e.match(doubleOperators)?"operator":e.match(singleDelimiters)||e.match(doubleDelimiters)||e.match(tripleDelimiters)?null:e.match(expressionEnd)?(n.tokenize=tokenTranspose,null):(e.next(),"error")}const octave={startState:function(){return {tokenize:tokenBase}},token:function(e,n){var t=n.tokenize(e,n);return "number"!==t&&"variable"!==t||(n.tokenize=tokenTranspose),t},languageData:{commentTokens:{line:"%"}}};
export { octave };

View File

@ -1,3 +0,0 @@
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var singleOperators=/[\^@!\|<>#~\.\*\-\+\\/,=]/,doubleOperators=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,tripleOperators=/(:::)|(\.\.\.)|(=<:)|(>=:)/,middle=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],end=["end"],atoms=wordRegexp(["true","false","nil","unit"]),commonKeywords=wordRegexp(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),openingKeywords=wordRegexp(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),middleKeywords=wordRegexp(middle),endKeywords=wordRegexp(end);function tokenBase(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return "bracket";if(e.match("[]"))return "keyword";if(e.match(tripleOperators)||e.match(doubleOperators))return "operator";if(e.match(atoms))return "atom";var n=e.match(openingKeywords);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=tokenFunProc:"class"==n[0]?t.tokenize=tokenClass:"meth"==n[0]&&(t.tokenize=tokenMeth),"keyword";if(e.match(middleKeywords)||e.match(commonKeywords))return "keyword";if(e.match(endKeywords))return t.currentIndent--,"keyword";var r=e.next();if('"'==r||"'"==r)return t.tokenize=tokenString(r),t.tokenize(e,t);if(/[~\d]/.test(r)){if("~"==r){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return "number"}return "0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return "%"==r?(e.skipToEnd(),"comment"):"/"==r&&e.eat("*")?(t.tokenize=tokenComment,tokenComment(e,t)):singleOperators.test(r)?"operator":(e.eatWhile(/\w/),"variable")}function tokenClass(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=tokenBase,"type")}function tokenMeth(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=tokenBase,"def")}function tokenFunProc(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=tokenBase,"def"):(t.tokenize=tokenBase,null)}function tokenComment(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=tokenBase;break}r="*"==n;}return "comment"}function tokenString(e){return function(t,n){for(var r,o=!1,a=!1;null!=(r=t.next());){if(r==e&&!o){a=!0;break}o=!o&&"\\"==r;}return !a&&o||(n.tokenize=tokenBase),"string"}}function buildElectricInputRegEx(){var e=middle.concat(end);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}const oz={startState:function(){return {tokenize:tokenBase,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(endKeywords)||r.match(middleKeywords)||r.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:buildElectricInputRegEx(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};
export { oz };

View File

@ -1,3 +0,0 @@
function words(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}var keywords=words("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),atoms={null:!0},isOperatorChar=/[+\-*&%=<>!?|\/]/;function tokenBase(e,t){var r=e.next();if("#"==r&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==r||"'"==r)return t.tokenize=tokenString(r),t.tokenize(e,t);if("("==r&&e.eat("*"))return t.tokenize=tokenComment,tokenComment(e,t);if("{"==r)return t.tokenize=tokenCommentBraces,tokenCommentBraces(e,t);if(/[\[\]\(\),;\:\.]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(isOperatorChar.test(r))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_]/);var n=e.current();return keywords.propertyIsEnumerable(n)?"keyword":atoms.propertyIsEnumerable(n)?"atom":"variable"}function tokenString(e){return function(t,r){for(var n,o=!1,a=!1;null!=(n=t.next());){if(n==e&&!o){a=!0;break}o=!o&&"\\"==n;}return !a&&o||(r.tokenize=null),"string"}}function tokenComment(e,t){for(var r,n=!1;r=e.next();){if(")"==r&&n){t.tokenize=null;break}n="*"==r;}return "comment"}function tokenCommentBraces(e,t){for(var r;r=e.next();)if("}"==r){t.tokenize=null;break}return "comment"}const pascal={startState:function(){return {tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||tokenBase)(e,t);return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}};
export { pascal };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
function words(O){for(var T={},e=O.split(" "),E=0;E<e.length;++E)T[e[E]]=!0;return T}var pBuiltins="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",pKeywords="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",pTypes="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",builtins=words(pBuiltins),keywords=words(pKeywords),types=words(pTypes),isOperatorChar=/[*+\-%<>=&?:\/!|]/;function chain(O,T,e){return T.tokenize=e,e(O,T)}function tokenComment(O,T){for(var e,E=!1;e=O.next();){if("/"==e&&E){T.tokenize=tokenBase;break}E="*"==e;}return "comment"}function tokenString(O){return function(T,e){for(var E,t=!1,r=!1;null!=(E=T.next());){if(E==O&&!t){r=!0;break}t=!t&&"\\"==E;}return !r&&t||(e.tokenize=tokenBase),"error"}}function tokenBase(O,T){var e=O.next();return '"'==e||"'"==e?chain(O,T,tokenString(e)):/[\[\]{}\(\),;\.]/.test(e)?null:/\d/.test(e)?(O.eatWhile(/[\w\.]/),"number"):"/"==e?O.eat("*")?chain(O,T,tokenComment):(O.eatWhile(isOperatorChar),"operator"):"-"==e?O.eat("-")?(O.skipToEnd(),"comment"):(O.eatWhile(isOperatorChar),"operator"):isOperatorChar.test(e)?(O.eatWhile(isOperatorChar),"operator"):(O.eatWhile(/[\w\$_]/),keywords&&keywords.propertyIsEnumerable(O.current().toUpperCase())&&!O.eat(")")&&!O.eat(".")?"keyword":builtins&&builtins.propertyIsEnumerable(O.current().toUpperCase())?"builtin":types&&types.propertyIsEnumerable(O.current().toUpperCase())?"type":"variable")}const pig={startState:function(){return {tokenize:tokenBase,startOfLine:!0}},token:function(O,T){return O.eatSpace()?null:T.tokenize(O,T)},languageData:{autocomplete:(pBuiltins+pTypes+pKeywords).split(" ")}};
export { pig };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
const properties={token:function(t,e){var i=t.sol()||e.afterSection,n=t.eol();if(e.afterSection=!1,i&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),n&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),i)for(;t.eatSpace(););var o=t.next();return !i||"#"!==o&&"!"!==o&&";"!==o?i&&"["===o?(e.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):"="===o||":"===o?(e.position="quote",null):("\\"===o&&"quote"===e.position&&t.eol()&&(e.nextMultiline=!0),e.position):(e.position="comment",t.skipToEnd(),"comment")},startState:function(){return {position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}};
export { properties };

View File

@ -1,3 +0,0 @@
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var keywordArray=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],keywords=wordRegexp(keywordArray),identifiers=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function tokenBase(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return "number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return "number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return "number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(keywords)?"keyword":e.match(identifiers)?"variable":(e.next(),null)}const protobuf={token:tokenBase,languageData:{autocomplete:keywordArray}};
export { protobuf };

View File

@ -1,3 +0,0 @@
var words={},variable_regex=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function define(e,n){for(var t=n.split(" "),i=0;i<t.length;i++)words[t[i]]=e;}function tokenString(e,n){for(var t,i,a=!1;!e.eol()&&(t=e.next())!=n.pending;){if("$"===t&&"\\"!=i&&'"'==n.pending){a=!0;break}i=t;}return a&&e.backUp(1),t==n.pending?n.continueString=!1:n.continueString=!0,"string"}function tokenize(e,n){var t=e.match(/[\w]+/,!1),i=e.match(/(\s+)?\w+\s+=>.*/,!1),a=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),o=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),s=e.next();if("$"===s)return e.match(variable_regex)?n.continueString?"variableName.special":"variable":"error";if(n.continueString)return e.backUp(1),tokenString(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return "def";e.match(/\s+{/),n.inDefinition=!1;}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):i?(e.match(/(\s+)?\w+/),"tag"):t&&words.hasOwnProperty(t)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),"include"==t&&(n.inInclude=!0),words[t]):/(^|\s+)[A-Z][\w:_]+/.test(t)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):a?(e.match(/(\s+)?[\w:_]+/),"def"):o?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==s?(e.skipToEnd(),"comment"):"'"==s||'"'==s?(n.pending=s,tokenString(e,n)):"{"==s||"}"==s?"bracket":"/"==s?(e.match(/^[^\/]*\//),"string.special"):s.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==s?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}define("keyword","class define site node include import inherits"),define("keyword","case if else in and elsif default or"),define("atom","false true running present absent file directory undef"),define("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");const puppet={startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(e,n){return e.eatSpace()?null:tokenize(e,n)}};
export { puppet };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var curPunc,keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function buildRE(t){return new RegExp("^("+t.join("|")+")$")}function tokenBase(t,e){var n=t.sol(),o=t.next();if(curPunc=null,n){if("/"==o)return (e.tokenize=tokenLineComment)(t,e);if("\\"==o)return t.eol()||/\s/.test(t.peek())?(t.skipToEnd(),/^\\\s*$/.test(t.current())?(e.tokenize=tokenCommentToEOF)(t):e.tokenize=tokenBase,"comment"):(e.tokenize=tokenBase,"builtin")}if(/\s/.test(o))return "/"==t.peek()?(t.skipToEnd(),"comment"):"null";if('"'==o)return (e.tokenize=tokenString)(t,e);if("`"==o)return t.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==o&&/\d/.test(t.peek())||/\d/.test(o)){var r=null;return t.backUp(1),t.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||t.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||t.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||t.match(/^\d+[ptuv]{1}/)?r="temporal":(t.match(/^0[NwW]{1}/)||t.match(/^0x[\da-fA-F]*/)||t.match(/^[01]+[b]{1}/)||t.match(/^\d+[chijn]{1}/)||t.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(r="number"),!r||(o=t.peek())&&!E.test(o)?(t.next(),"error"):r}return /[A-Za-z]|\./.test(o)?(t.eatWhile(/[A-Za-z._\d]/),keywords.test(t.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(o)||/[{}\(\[\]\)]/.test(o)?null:"error"}function tokenLineComment(t,e){return t.skipToEnd(),/\/\s*$/.test(t.current())?(e.tokenize=tokenBlockComment)(t,e):e.tokenize=tokenBase,"comment"}function tokenBlockComment(t,e){var n=t.sol()&&"\\"==t.peek();return t.skipToEnd(),n&&/^\\\s*$/.test(t.current())&&(e.tokenize=tokenBase),"comment"}function tokenCommentToEOF(t){return t.skipToEnd(),"comment"}function tokenString(t,e){for(var n,o=!1,r=!1;n=t.next();){if('"'==n&&!o){r=!0;break}o=!o&&"\\"==n;}return r&&(e.tokenize=tokenBase),"string"}function pushContext(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e};}function popContext(t){t.indent=t.context.indent,t.context=t.context.prev;}const q={startState:function(){return {tokenize:tokenBase,context:null,indent:0,col:0}},token:function(t,e){t.sol()&&(e.context&&null==e.context.align&&(e.context.align=!1),e.indent=t.indentation());var n=e.tokenize(t,e);if("comment"!=n&&e.context&&null==e.context.align&&"pattern"!=e.context.type&&(e.context.align=!0),"("==curPunc)pushContext(e,")",t.column());else if("["==curPunc)pushContext(e,"]",t.column());else if("{"==curPunc)pushContext(e,"}",t.column());else if(/[\]\}\)]/.test(curPunc)){for(;e.context&&"pattern"==e.context.type;)popContext(e);e.context&&curPunc==e.context.type&&popContext(e);}else "."==curPunc&&e.context&&"pattern"==e.context.type?popContext(e):/atom|string|variable/.test(n)&&e.context&&(/[\}\]]/.test(e.context.type)?pushContext(e,"pattern",t.column()):"pattern"!=e.context.type||e.context.align||(e.context.align=!0,e.context.col=t.column()));return n},indent:function(t,e,n){var o=e&&e.charAt(0),r=t.context;if(/[\]\}]/.test(o))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&o==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:n.unit):0}};
export { q };

View File

@ -1,3 +0,0 @@
function wordObj(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=!0;return e}var curPunc,commonAtoms=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],commonBuiltins=["list","quote","bquote","eval","return","call","parse","deparse"],commonKeywords=["if","else","repeat","while","function","for","in","next","break"],commonBlockKeywords=["if","else","repeat","while","function","for"],atoms=wordObj(commonAtoms),builtins=wordObj(commonBuiltins),keywords=wordObj(commonKeywords),blockkeywords=wordObj(commonBlockKeywords),opChars=/[+\-*\/^<>=!&|~$:]/;function tokenBase(t,e){curPunc=null;var n=t.next();if("#"==n)return t.skipToEnd(),"comment";if("0"==n&&t.eat("x"))return t.eatWhile(/[\da-f]/i),"number";if("."==n&&t.eat(/\d/))return t.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(n))return t.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==n||'"'==n)return e.tokenize=tokenString(n),"string";if("`"==n)return t.match(/[^`]+`/),"string.special";if("."==n&&t.match(/.[.\d]+/))return "keyword";if(/[\w\.]/.test(n)&&"_"!=n){t.eatWhile(/[\w\.]/);var r=t.current();return atoms.propertyIsEnumerable(r)?"atom":keywords.propertyIsEnumerable(r)?(blockkeywords.propertyIsEnumerable(r)&&!t.match(/\s*if(\s+|$)/,!1)&&(curPunc="block"),"keyword"):builtins.propertyIsEnumerable(r)?"builtin":"variable"}return "%"==n?(t.skipTo("%")&&t.next(),"variableName.special"):"<"==n&&t.eat("-")||"<"==n&&t.match("<-")||"-"==n&&t.match(/>>?/)||"="==n&&e.ctx.argList?"operator":opChars.test(n)?("$"==n||t.eatWhile(opChars),"operator"):/[\(\){}\[\];]/.test(n)?(curPunc=n,";"==n?"punctuation":null):null}function tokenString(t){return function(e,n){if(e.eat("\\")){var r=e.next();return "x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string.special"}for(var o;null!=(o=e.next());){if(o==t){n.tokenize=tokenBase;break}if("\\"==o){e.backUp(1);break}}return "string"}}var ALIGN_YES=1,ALIGN_NO=2,BRACELESS=4;function push(t,e,n){t.ctx={type:e,indent:t.indent,flags:0,column:n.column(),prev:t.ctx};}function setFlag(t,e){var n=t.ctx;t.ctx={type:n.type,indent:n.indent,flags:n.flags|e,column:n.column,prev:n.prev};}function pop(t){t.indent=t.ctx.indent,t.ctx=t.ctx.prev;}const r={startState:function(t){return {tokenize:tokenBase,ctx:{type:"top",indent:-t,flags:ALIGN_NO},indent:0,afterIdent:!1}},token:function(t,e){if(t.sol()&&(0==(3&e.ctx.flags)&&(e.ctx.flags|=ALIGN_NO),e.ctx.flags&BRACELESS&&pop(e),e.indent=t.indentation()),t.eatSpace())return null;var n=e.tokenize(t,e);return "comment"!=n&&0==(e.ctx.flags&ALIGN_NO)&&setFlag(e,ALIGN_YES),";"!=curPunc&&"{"!=curPunc&&"}"!=curPunc||"block"!=e.ctx.type||pop(e),"{"==curPunc?push(e,"}",t):"("==curPunc?(push(e,")",t),e.afterIdent&&(e.ctx.argList=!0)):"["==curPunc?push(e,"]",t):"block"==curPunc?push(e,"block",t):curPunc==e.ctx.type?pop(e):"block"==e.ctx.type&&"comment"!=n&&setFlag(e,BRACELESS),e.afterIdent="variable"==n||"keyword"==n,n},indent:function(t,e,n){if(t.tokenize!=tokenBase)return 0;var r=e&&e.charAt(0),o=t.ctx,c=r==o.type;return o.flags&BRACELESS&&(o=o.prev),"block"==o.type?o.indent+("{"==r?0:n.unit):o.flags&ALIGN_YES?o.column+(c?0:1):o.indent+(c?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:commonAtoms.concat(commonBuiltins,commonKeywords)}};
export { r };

View File

@ -1,3 +0,0 @@
var headerSeparator=/^-+$/,headerLine=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,simpleEmail=/^[\w+.-]+@[\w.-]+/;const rpmChanges={token:function(r){if(r.sol()){if(r.match(headerSeparator))return "tag";if(r.match(headerLine))return "tag"}return r.match(simpleEmail)?"string":(r.next(),null)}};var arch=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,preamble=/^[a-zA-Z0-9()]+:/,section=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,control_flow_complex=/^%(ifnarch|ifarch|if)/,control_flow_simple=/^%(else|endif)/,operators=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const rpmSpec={startState:function(){return {controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,e){if("#"==r.peek())return r.skipToEnd(),"comment";if(r.sol()){if(r.match(preamble))return "header";if(r.match(section))return "atom"}if(r.match(/^\$\w+/))return "def";if(r.match(/^\$\{\w+\}/))return "def";if(r.match(control_flow_simple))return "keyword";if(r.match(control_flow_complex))return e.controlFlow=!0,"keyword";if(e.controlFlow){if(r.match(operators))return "operator";if(r.match(/^(\d+)/))return "number";r.eol()&&(e.controlFlow=!1);}if(r.match(arch))return r.eol()&&(e.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(e.macroParameters=!0),"keyword";if(e.macroParameters){if(r.match(/^\d+/))return "number";if(r.match(")"))return e.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(e.controlFlow=!1),"def"):(r.next(),null)}};
export { rpmChanges, rpmSpec };

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var words={};function define(e,t){for(var n=0;n<t.length;n++)words[t[n]]=e;}var commonAtoms=["true","false"],commonKeywords=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],commonCommands=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function tokenBase(e,t){if(e.eatSpace())return null;var n=e.sol(),o=e.next();if("\\"===o)return e.next(),null;if("'"===o||'"'===o||"`"===o)return t.tokens.unshift(tokenString(o,"`"===o?"quote":"string")),tokenize(e,t);if("#"===o)return n&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===o)return t.tokens.unshift(tokenDollar),tokenize(e,t);if("+"===o||"="===o)return "operator";if("-"===o)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==o){if(e.match("<<"))return "operator";var r=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(r)return t.tokens.unshift(tokenHeredoc(r[1])),"string.special"}if(/\d/.test(o)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return "number";e.eatWhile(/[\w-]/);var i=e.current();return "="===e.peek()&&/\w+/.test(i)?"def":words.hasOwnProperty(i)?words[i]:null}function tokenString(e,t){var n="("==e?")":"{"==e?"}":e;return function(o,r){for(var i,s=!1;null!=(i=o.next());){if(i===n&&!s){r.tokens.shift();break}if("$"===i&&!s&&"'"!==e&&o.peek()!=n){s=!0,o.backUp(1),r.tokens.unshift(tokenDollar);break}if(!s&&e!==n&&i===e)return r.tokens.unshift(tokenString(e,t)),tokenize(o,r);if(!s&&/['"]/.test(i)&&!/['"]/.test(e)){r.tokens.unshift(tokenStringStart(i,"string")),o.backUp(1);break}s=!s&&"\\"===i;}return t}}function tokenStringStart(e,t){return function(n,o){return o.tokens[0]=tokenString(e,t),n.next(),tokenize(n,o)}}define("atom",commonAtoms),define("keyword",commonKeywords),define("builtin",commonCommands);var tokenDollar=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return /['"({]/.test(n)?(t.tokens[0]=tokenString(n,"("==n?"quote":"{"==n?"def":"string"),tokenize(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function tokenHeredoc(e){return function(t,n){return t.sol()&&t.string==e&&n.tokens.shift(),t.skipToEnd(),"string.special"}}function tokenize(e,t){return (t.tokens[0]||tokenBase)(e,t)}const shell={startState:function(){return {tokens:[]}},token:function(e,t){return tokenize(e,t)},languageData:{autocomplete:commonAtoms.concat(commonKeywords,commonCommands),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};
export { shell };

View File

@ -1,3 +0,0 @@
function words(e){for(var n={},t=e.split(" "),r=0;r<t.length;++r)n[t[r]]=!0;return n}var keywords=words("if elsif else stop require"),atoms=words("true false not");function tokenBase(e,n){var t=e.next();if("/"==t&&e.eat("*"))return n.tokenize=tokenCComment,tokenCComment(e,n);if("#"===t)return e.skipToEnd(),"comment";if('"'==t)return n.tokenize=tokenString(t),n.tokenize(e,n);if("("==t)return n._indent.push("("),n._indent.push("{"),null;if("{"===t)return n._indent.push("{"),null;if(")"==t&&(n._indent.pop(),n._indent.pop()),"}"===t)return n._indent.pop(),null;if(","==t)return null;if(";"==t)return null;if(/[{}\(\),;]/.test(t))return null;if(/\d/.test(t))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==t)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var r=e.current();return "text"==r&&e.eat(":")?(n.tokenize=tokenMultiLineString,"string"):keywords.propertyIsEnumerable(r)?"keyword":atoms.propertyIsEnumerable(r)?"atom":null}function tokenMultiLineString(e,n){return n._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(n._multiLineString=!1,n.tokenize=tokenBase),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function tokenCComment(e,n){for(var t,r=!1;null!=(t=e.next());){if(r&&"/"==t){n.tokenize=tokenBase;break}r="*"==t;}return "comment"}function tokenString(e){return function(n,t){for(var r,i=!1;null!=(r=n.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(t.tokenize=tokenBase),"string"}}const sieve={startState:function(e){return {tokenize:tokenBase,baseIndent:e||0,_indent:[]}},token:function(e,n){return e.eatSpace()?null:(n.tokenize||tokenBase)(e,n)},indent:function(e,n,t){var r=e._indent.length;return n&&"}"==n[0]&&r--,r<0&&(r=0),r*t.unit},languageData:{indentOnInput:/^\s*\}$/}};
export { sieve };

View File

@ -1,3 +0,0 @@
function simpleMode(t){ensureState(t,"start");var n={},e=t.languageData||{},a=!1;for(var r in t)if(r!=e&&t.hasOwnProperty(r))for(var i=n[r]=[],o=t[r],u=0;u<o.length;u++){var s=o[u];i.push(new Rule(s,t)),(s.indent||s.dedent)&&(a=!0);}return {startState:function(){return {state:"start",pending:null,indent:a?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,indent:t.indent&&t.indent.slice(0)};return t.stack&&(n.stack=t.stack.slice(0)),n},token:tokenFunction(n),indent:indentFunction(n,e),languageData:e}}function ensureState(t,n){if(!t.hasOwnProperty(n))throw new Error("Undefined state "+n+" in simple mode")}function toRegex(t,n){if(!t)return /(?:)/;var e="";return t instanceof RegExp?(t.ignoreCase&&(e="i"),t=t.source):t=String(t),new RegExp((!1===n?"":"^")+"(?:"+t+")",e)}function asToken(t){if(!t)return null;if(t.apply)return t;if("string"==typeof t)return t.replace(/\./g," ");for(var n=[],e=0;e<t.length;e++)n.push(t[e]&&t[e].replace(/\./g," "));return n}function Rule(t,n){(t.next||t.push)&&ensureState(n,t.next||t.push),this.regex=toRegex(t.regex),this.token=asToken(t.token),this.data=t;}function tokenFunction(t){return function(n,e){if(e.pending){var a=e.pending.shift();return 0==e.pending.length&&(e.pending=null),n.pos+=a.text.length,a.token}for(var r=t[e.state],i=0;i<r.length;i++){var o=r[i],u=(!o.data.sol||n.sol())&&n.match(o.regex);if(u){o.data.next?e.state=o.data.next:o.data.push?((e.stack||(e.stack=[])).push(e.state),e.state=o.data.push):o.data.pop&&e.stack&&e.stack.length&&(e.state=e.stack.pop()),o.data.indent&&e.indent.push(n.indentation()+n.indentUnit),o.data.dedent&&e.indent.pop();var s=o.token;if(s&&s.apply&&(s=s(u)),u.length>2&&o.token&&"string"!=typeof o.token){e.pending=[];for(var d=2;d<u.length;d++)u[d]&&e.pending.push({text:u[d],token:o.token[d-1]});return n.backUp(u[0].length-(u[1]?u[1].length:0)),s[0]}return s&&s.join?s[0]:s}}return n.next(),null}}function indentFunction(t,n){return function(e,a){if(null==e.indent||n.dontIndentStates&&n.doneIndentState.indexOf(e.state)>-1)return null;var r=e.indent.length-1,i=t[e.state];t:for(;;){for(var o=0;o<i.length;o++){var u=i[o];if(u.data.dedent&&!1!==u.data.dedentIfLineStart){var s=u.regex.exec(a);if(s&&s[0]){r--,(u.next||u.push)&&(i=t[u.next||u.push]),a=a.slice(s[0].length);continue t}}}break}return r<0?0:e.indent[r]}}
export { simpleMode as s };

View File

@ -1,3 +0,0 @@
var specialChars=/[+\-\/\\*~<>=@%|&?!.,:;^]/,keywords=/true|false|nil|self|super|thisContext/,Context=function(e,t){this.next=e,this.parent=t;},Token=function(e,t,n){this.name=e,this.context=t,this.eos=n;},State=function(){this.context=new Context(next,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0;};State.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0;};var next=function(e,t,n){var a=new Token(null,t,!1),i=e.next();return '"'===i?a=nextComment(e,new Context(nextComment,t)):"'"===i?a=nextString(e,new Context(nextString,t)):"#"===i?"'"===e.peek()?(e.next(),a=nextSymbol(e,new Context(nextSymbol,t))):e.eatWhile(/[^\s.{}\[\]()]/)?a.name="string.special":a.name="meta":"$"===i?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),a.name="string.special"):"|"===i&&n.expectVariable?a.context=new Context(nextTemporaries,t):/[\[\]{}()]/.test(i)?(a.name="bracket",a.eos=/[\[{(]/.test(i),"["===i?n.indentation++:"]"===i&&(n.indentation=Math.max(0,n.indentation-1))):specialChars.test(i)?(e.eatWhile(specialChars),a.name="operator",a.eos=";"!==i):/\d/.test(i)?(e.eatWhile(/[\w\d]/),a.name="number"):/[\w_]/.test(i)?(e.eatWhile(/[\w\d_]/),a.name=n.expectVariable?keywords.test(e.current())?"keyword":"variable":null):a.eos=n.expectVariable,a},nextComment=function(e,t){return e.eatWhile(/[^"]/),new Token("comment",e.eat('"')?t.parent:t,!0)},nextString=function(e,t){return e.eatWhile(/[^']/),new Token("string",e.eat("'")?t.parent:t,!1)},nextSymbol=function(e,t){return e.eatWhile(/[^']/),new Token("string.special",e.eat("'")?t.parent:t,!1)},nextTemporaries=function(e,t){var n=new Token(null,t,!1);return "|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const smalltalk={startState:function(){return new State},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t);},indent:function(e,t,n){var a=e.context.next===next&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return (e.indentation+a)*n.unit},languageData:{indentOnInput:/^\s*\]$/}};
export { smalltalk };

View File

@ -1,3 +0,0 @@
var isStringChar=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,isOperatorChar=/[\|\!\+\-\*\?\~\^\&]/,isOperatorString=/^(OR|AND|NOT|TO)$/i;function isNumber(t){return parseFloat(t).toString()===t}function tokenString(t){return function(e,n){for(var r,o=!1;null!=(r=e.next())&&(r!=t||o);)o=!o&&"\\"==r;return o||(n.tokenize=tokenBase),"string"}}function tokenOperator(t){return function(e,n){return "|"==t?e.eat(/\|/):"&"==t&&e.eat(/\&/),n.tokenize=tokenBase,"operator"}}function tokenWord(t){return function(e,n){for(var r=t;(t=e.peek())&&null!=t.match(isStringChar);)r+=e.next();return n.tokenize=tokenBase,isOperatorString.test(r)?"operator":isNumber(r)?"number":":"==e.peek()?"propertyName":"string"}}function tokenBase(t,e){var n=t.next();return '"'==n?e.tokenize=tokenString(n):isOperatorChar.test(n)?e.tokenize=tokenOperator(n):isStringChar.test(n)&&(e.tokenize=tokenWord(n)),e.tokenize!=tokenBase?e.tokenize(t,e):null}const solr={startState:function(){return {tokenize:tokenBase}},token:function(t,e){return t.eatSpace()?null:e.tokenize(t,e)}};
export { solr };

View File

@ -1,3 +0,0 @@
var curPunc;function wordRegexp(t){return new RegExp("^(?:"+t.join("|")+")$","i")}var ops=wordRegexp(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),keywords=wordRegexp(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load"]),operatorChars=/[*+\-<>=&|\^\/!\?]/;function tokenBase(t,e){var n=t.next();if(curPunc=null,"$"==n||"?"==n)return "?"==n&&t.match(/\s/,!1)?"operator":(t.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"!=n||t.match(/^[\s\u00a0=]/,!1)){if('"'==n||"'"==n)return e.tokenize=tokenLiteral(n),e.tokenize(t,e);if(/[{}\(\),\.;\[\]]/.test(n))return curPunc=n,"bracket";if("#"==n)return t.skipToEnd(),"comment";if("^"===n)return "^"===(n=t.peek())?t.eat("^"):t.eatWhile(operatorChars),"operator";if(operatorChars.test(n))return t.eatWhile(operatorChars),"operator";if(":"==n)return eatPnLocal(t),"atom";if("@"==n)return t.eatWhile(/[a-z\d\-]/i),"meta";if(t.eatWhile(/[_\w\d]/),t.eat(":"))return eatPnLocal(t),"atom";var r=t.current();return ops.test(r)?"builtin":keywords.test(r)?"keyword":"variable"}return t.match(/^[^\s\u00a0>]*>?/),"atom"}function eatPnLocal(t){for(;t.match(/([:\w\d._-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-fA-F0-9][a-fA-F0-9])/););}function tokenLiteral(t){return function(e,n){for(var r,o=!1;null!=(r=e.next());){if(r==t&&!o){n.tokenize=tokenBase;break}o=!o&&"\\"==r;}return "string"}}function pushContext(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e};}function popContext(t){t.indent=t.context.indent,t.context=t.context.prev;}const sparql={startState:function(){return {tokenize:tokenBase,context:null,indent:0,col:0}},token:function(t,e){if(t.sol()&&(e.context&&null==e.context.align&&(e.context.align=!1),e.indent=t.indentation()),t.eatSpace())return null;var n=e.tokenize(t,e);if("comment"!=n&&e.context&&null==e.context.align&&"pattern"!=e.context.type&&(e.context.align=!0),"("==curPunc)pushContext(e,")",t.column());else if("["==curPunc)pushContext(e,"]",t.column());else if("{"==curPunc)pushContext(e,"}",t.column());else if(/[\]\}\)]/.test(curPunc)){for(;e.context&&"pattern"==e.context.type;)popContext(e);e.context&&curPunc==e.context.type&&(popContext(e),"}"==curPunc&&e.context&&"pattern"==e.context.type&&popContext(e));}else "."==curPunc&&e.context&&"pattern"==e.context.type?popContext(e):/atom|string|variable/.test(n)&&e.context&&(/[\}\]]/.test(e.context.type)?pushContext(e,"pattern",t.column()):"pattern"!=e.context.type||e.context.align||(e.context.align=!0,e.context.col=t.column()));return n},indent:function(t,e,n){var r=e&&e.charAt(0),o=t.context;if(/[\]\}]/.test(r))for(;o&&"pattern"==o.type;)o=o.prev;var u=o&&r==o.type;return o?"pattern"==o.type?o.col:o.align?o.col+(u?0:1):o.indent+(u?0:n.unit):0},languageData:{commentTokens:{line:"#"}}};
export { sparql };

View File

@ -1,3 +0,0 @@
const spreadsheet={startState:function(){return {stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return "string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return "operator"}var a=e.peek();switch(a){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(a)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}};
export { spreadsheet };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
function mkStex(t){function e(t,e){t.cmdState.push(e);}function n(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function r(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){};}}var a={};function i(t,e){t.f=e;}function c(t,r){var c;if(t.match(/^\\[a-zA-Z@]+/)){var m=t.current().slice(1);return e(r,c=new(c=a.hasOwnProperty(m)?a[m]:a.DEFAULT)),i(r,o),c.style}if(t.match(/^\\[$&%#{}_]/))return "tag";if(t.match(/^\\[,;!\/\\]/))return "tag";if(t.match("\\["))return i(r,(function(t,e){return u(t,e,"\\]")})),"keyword";if(t.match("\\("))return i(r,(function(t,e){return u(t,e,"\\)")})),"keyword";if(t.match("$$"))return i(r,(function(t,e){return u(t,e,"$$")})),"keyword";if(t.match("$"))return i(r,(function(t,e){return u(t,e,"$")})),"keyword";var f=t.next();return "%"==f?(t.skipToEnd(),"comment"):"}"==f||"]"==f?(c=n(r))?(c.closeBracket(f),i(r,o),"bracket"):"error":"{"==f||"["==f?(e(r,c=new(c=a.DEFAULT)),"bracket"):/\d/.test(f)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),"begin"==(c=function(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var r=e[n];if("DEFAULT"!=r.name)return r}return {styleIdentifier:function(){return null}}}(r)).name&&(c.argument=t.current()),c.styleIdentifier())}function u(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return i(e,c),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return "tag";if(t.match(/^[a-zA-Z]+/))return "variableName.special";if(t.match(/^\\[$&%#{}_]/))return "tag";if(t.match(/^\\[,;!\/]/))return "tag";if(t.match(/^[\^_&]/))return "tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return "number";var r=t.next();return "{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(t.skipToEnd(),"comment"):"error"}function o(t,e){var r=t.peek();return "{"==r||"["==r?(n(e).openBracket(r),t.eat(r),i(e,c),"bracket"):/[ \t\r]/.test(r)?(t.eat(r),null):(i(e,c),function(t){var e=t.cmdState.pop();e&&e.closeBracket();}(e),c(t,e))}return a.importmodule=r("importmodule","tag",["string","builtin"]),a.documentclass=r("documentclass","tag",["","atom"]),a.usepackage=r("usepackage","tag",["atom"]),a.begin=r("begin","tag",["atom"]),a.end=r("end","tag",["atom"]),a.label=r("label","tag",["atom"]),a.ref=r("ref","tag",["atom"]),a.eqref=r("eqref","tag",["atom"]),a.cite=r("cite","tag",["atom"]),a.bibitem=r("bibitem","tag",["atom"]),a.Bibitem=r("Bibitem","tag",["atom"]),a.RBibitem=r("RBibitem","tag",["atom"]),a.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){};},{startState:function(){return {cmdState:[],f:t?function(t,e){return u(t,e)}:c}},copyState:function(t){return {cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=c,t.cmdState.length=0;},languageData:{commentTokens:{line:"%"}}}}const stex=mkStex(!1);const stexMath=mkStex(!0);
export { stex, stexMath };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
function wordSet(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var keywords=wordSet(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),definingKeywords=wordSet(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),atoms=wordSet(["true","false","nil","self","super","_"]),types=wordSet(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),operators="+-/*%=|&<>~^?!",punc=":;,.(){}[]",binary=/^\-?0b[01][01_]*/,octal=/^\-?0o[0-7][0-7_]*/,hexadecimal=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,decimal=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,identifier=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,property=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,instruction=/^\#[A-Za-z]+/,attribute=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function tokenBase(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r,i=e.peek();if("/"==i){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(tokenComment),tokenComment(e,t)}if(e.match(instruction))return "builtin";if(e.match(attribute))return "attribute";if(e.match(binary))return "number";if(e.match(octal))return "number";if(e.match(hexadecimal))return "number";if(e.match(decimal))return "number";if(e.match(property))return "property";if(operators.indexOf(i)>-1)return e.next(),"operator";if(punc.indexOf(i)>-1)return e.next(),e.match(".."),"punctuation";if(r=e.match(/("""|"|')/)){var o=tokenString.bind(null,r[0]);return t.tokenize.push(o),o(e,t)}if(e.match(identifier)){var a=e.current();return types.hasOwnProperty(a)?"type":atoms.hasOwnProperty(a)?"atom":keywords.hasOwnProperty(a)?(definingKeywords.hasOwnProperty(a)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function tokenUntilClosingParen(){var e=0;return function(t,n,r){var i=tokenBase(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e;}return i}}function tokenString(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(tokenUntilClosingParen()),"string";o=!1;}else {if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r;}return i&&n.tokenize.pop(),"string"}function tokenComment(e,t){for(var n;e.match(/^[^/*]+/,!0),n=e.next();)"/"===n&&e.eat("*")?t.tokenize.push(tokenComment):"*"===n&&e.eat("/")&&t.tokenize.pop();return "comment"}function Context(e,t,n){this.prev=e,this.align=t,this.indented=n;}function pushContext(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new Context(e.context,n,e.indented);}function popContext(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev);}const swift={startState:function(){return {prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||tokenBase)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?popContext:pushContext)(t,e);}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}};
export { swift };

View File

@ -1,3 +0,0 @@
function parseWords(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}var keywords=parseWords("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),functions=parseWords("if elseif else and not or eq ne in ni for foreach while switch"),isOperatorChar=/[+\-*&%=<>!?^\/\|]/;function chain(e,r,t){return r.tokenize=t,t(e,r)}function tokenBase(e,r){var t=r.beforeParams;r.beforeParams=!1;var n=e.next();if('"'!=n&&"'"!=n||!r.inParams){if(/[\[\]{}\(\),;\.]/.test(n))return "("==n&&t?r.inParams=!0:")"==n&&(r.inParams=!1),null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("#"==n)return e.eat("*")?chain(e,r,tokenComment):"#"==n&&e.match(/ *\[ *\[/)?chain(e,r,tokenUnparsed):(e.skipToEnd(),"comment");if('"'==n)return e.skipTo(/"/),"comment";if("$"==n)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),r.beforeParams=!0,"builtin";if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var a=e.current().toLowerCase();return keywords&&keywords.propertyIsEnumerable(a)?"keyword":functions&&functions.propertyIsEnumerable(a)?(r.beforeParams=!0,"keyword"):null}return chain(e,r,tokenString(n))}function tokenString(e){return function(r,t){for(var n,a=!1,o=!1;null!=(n=r.next());){if(n==e&&!a){o=!0;break}a=!a&&"\\"==n;}return o&&(t.tokenize=tokenBase),"string"}}function tokenComment(e,r){for(var t,n=!1;t=e.next();){if("#"==t&&n){r.tokenize=tokenBase;break}n="*"==t;}return "comment"}function tokenUnparsed(e,r){for(var t,n=0;t=e.next();){if("#"==t&&2==n){r.tokenize=tokenBase;break}"]"==t?n++:" "!=t&&(n=0);}return "meta"}const tcl={startState:function(){return {tokenize:tokenBase,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{commentTokens:{line:"#"}}};
export { tcl };

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
var textwords={},keywords={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},isSpaceName=/[\w_\-]/i,reHR=/^\-\-\-\-+$/,reWikiCommentStart=/^\/\*\*\*$/,reWikiCommentStop=/^\*\*\*\/$/,reBlockQuote=/^<<<$/,reJsCodeStart=/^\/\/\{\{\{$/,reJsCodeStop=/^\/\/\}\}\}$/,reXmlCodeStart=/^<!--\{\{\{-->$/,reXmlCodeStop=/^<!--\}\}\}-->$/,reCodeBlockStart=/^\{\{\{$/,reCodeBlockStop=/^\}\}\}$/,reUntilCodeStop=/.*?\}\}\}/;function chain(e,t,r){return t.tokenize=r,r(e,t)}function tokenBase(e,t){var r=e.sol(),n=e.peek();if(t.block=!1,r&&/[<\/\*{}\-]/.test(n)){if(e.match(reCodeBlockStart))return t.block=!0,chain(e,t,twTokenCode);if(e.match(reBlockQuote))return "quote";if(e.match(reWikiCommentStart)||e.match(reWikiCommentStop))return "comment";if(e.match(reJsCodeStart)||e.match(reJsCodeStop)||e.match(reXmlCodeStart)||e.match(reXmlCodeStop))return "comment";if(e.match(reHR))return "contentSeparator"}if(e.next(),r&&/[\/\*!#;:>|]/.test(n)){if("!"==n)return e.skipToEnd(),"header";if("*"==n)return e.eatWhile("*"),"comment";if("#"==n)return e.eatWhile("#"),"comment";if(";"==n)return e.eatWhile(";"),"comment";if(":"==n)return e.eatWhile(":"),"comment";if(">"==n)return e.eatWhile(">"),"quote";if("|"==n)return "header"}if("{"==n&&e.match("{{"))return chain(e,t,twTokenCode);if(/[hf]/i.test(n)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return "link";if('"'==n)return "string";if("~"==n)return "brace";if(/[\[\]]/.test(n)&&e.match(n))return "brace";if("@"==n)return e.eatWhile(isSpaceName),"link";if(/\d/.test(n))return e.eatWhile(/\d/),"number";if("/"==n){if(e.eat("%"))return chain(e,t,twTokenComment);if(e.eat("/"))return chain(e,t,twTokenEm)}if("_"==n&&e.eat("_"))return chain(e,t,twTokenUnderline);if("-"==n&&e.eat("-")){if(" "!=e.peek())return chain(e,t,twTokenStrike);if(" "==e.peek())return "brace"}return "'"==n&&e.eat("'")?chain(e,t,twTokenStrong):"<"==n&&e.eat("<")?chain(e,t,twTokenMacro):(e.eatWhile(/[\w\$_]/),textwords.propertyIsEnumerable(e.current())?"keyword":null)}function twTokenComment(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=tokenBase;break}n="%"==r;}return "comment"}function twTokenStrong(e,t){for(var r,n=!1;r=e.next();){if("'"==r&&n){t.tokenize=tokenBase;break}n="'"==r;}return "strong"}function twTokenCode(e,t){var r=t.block;return r&&e.current()?"comment":!r&&e.match(reUntilCodeStop)||r&&e.sol()&&e.match(reCodeBlockStop)?(t.tokenize=tokenBase,"comment"):(e.next(),"comment")}function twTokenEm(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=tokenBase;break}n="/"==r;}return "emphasis"}function twTokenUnderline(e,t){for(var r,n=!1;r=e.next();){if("_"==r&&n){t.tokenize=tokenBase;break}n="_"==r;}return "link"}function twTokenStrike(e,t){for(var r,n=!1;r=e.next();){if("-"==r&&n){t.tokenize=tokenBase;break}n="-"==r;}return "deleted"}function twTokenMacro(e,t){if("<<"==e.current())return "meta";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),t.tokenize=tokenBase,"meta"):(e.eatWhile(/[\w\$_]/),keywords.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=tokenBase,null)}const tiddlyWiki={startState:function(){return {tokenize:tokenBase}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}};
export { tiddlyWiki };

View File

@ -1,3 +0,0 @@
function inBlock(t,e,n){return function(r,i){for(;!r.eol();){if(r.match(e)){i.tokenize=inText;break}r.next();}return n&&(i.tokenize=n),t}}function inLine(t){return function(e,n){for(;!e.eol();)e.next();return n.tokenize=inText,t}}function inText(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.sol(),i=t.next();switch(i){case"{":return t.eat("/"),t.eatSpace(),t.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),e.tokenize=inPlugin,"tag";case"_":if(t.eat("_"))return n(inBlock("strong","__",inText));break;case"'":if(t.eat("'"))return n(inBlock("em","''",inText));break;case"(":if(t.eat("("))return n(inBlock("link","))",inText));break;case"[":return n(inBlock("url","]",inText));case"|":if(t.eat("|"))return n(inBlock("comment","||"));break;case"-":if(t.eat("="))return n(inBlock("header string","=-",inText));if(t.eat("-"))return n(inBlock("error tw-deleted","--",inText));break;case"=":if(t.match("=="))return n(inBlock("tw-underline","===",inText));break;case":":if(t.eat(":"))return n(inBlock("comment","::"));break;case"^":return n(inBlock("tw-box","^"));case"~":if(t.match("np~"))return n(inBlock("meta","~/np~"))}if(r)switch(i){case"!":return t.match("!!!!!")||t.match("!!!!")||t.match("!!!")||t.match("!!"),n(inLine("header string"));case"*":case"#":case"+":return n(inLine("tw-listitem bracket"))}return null}var pluginName,type,curState,setStyle;function inPlugin(t,e){var n=t.next(),r=t.peek();return "}"==n?(e.tokenize=inText,"tag"):"("==n||")"==n?"bracket":"="==n?(type="equals",">"==r&&(t.next(),r=t.peek()),/[\'\"]/.test(r)||(e.tokenize=inAttributeNoQuote()),"operator"):/[\'\"]/.test(n)?(e.tokenize=inAttribute(n),e.tokenize(t,e)):(t.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function inAttribute(t){return function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=inPlugin;break}return "string"}}function inAttributeNoQuote(){return function(t,e){for(;!t.eol();){var n=t.next(),r=t.peek();if(" "==n||","==n||/[ )}]/.test(r)){e.tokenize=inPlugin;break}}return "string"}}function pass(){for(var t=arguments.length-1;t>=0;t--)curState.cc.push(arguments[t]);}function cont(){return pass.apply(null,arguments),!0}function pushContext(t,e){var n=curState.context&&curState.context.noIndent;curState.context={prev:curState.context,pluginName:t,indent:curState.indented,startOfLine:e,noIndent:n};}function popContext(){curState.context&&(curState.context=curState.context.prev);}function element(t){if("openPlugin"==t)return curState.pluginName=pluginName,cont(attributes,endplugin(curState.startOfLine));if("closePlugin"==t){var e=!1;return curState.context?(e=curState.context.pluginName!=pluginName,popContext()):e=!0,e&&(setStyle="error"),cont(endcloseplugin(e))}return "string"==t?(curState.context&&"!cdata"==curState.context.name||pushContext("!cdata"),curState.tokenize==inText&&popContext(),cont()):cont()}function endplugin(t){return function(e){return "selfclosePlugin"==e||"endPlugin"==e?cont():"endPlugin"==e?(pushContext(curState.pluginName,t),cont()):cont()}}function endcloseplugin(t){return function(e){return t&&(setStyle="error"),"endPlugin"==e?cont():pass()}}function attributes(t){return "keyword"==t?(setStyle="attribute",cont(attributes)):"equals"==t?cont(attvalue,attributes):pass()}function attvalue(t){return "keyword"==t?(setStyle="string",cont()):"string"==t?cont(attvaluemaybe):pass()}function attvaluemaybe(t){return "string"==t?cont(attvaluemaybe):pass()}const tiki={startState:function(){return {tokenize:inText,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(t,e){if(t.sol()&&(e.startOfLine=!0,e.indented=t.indentation()),t.eatSpace())return null;setStyle=type=pluginName=null;var n=e.tokenize(t,e);if((n||type)&&"comment"!=n)for(curState=e;;){if((e.cc.pop()||element)(type||n))break}return e.startOfLine=!1,setStyle||n},indent:function(t,e,n){var r=t.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(e)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}};
export { tiki };

View File

@ -1,3 +0,0 @@
const toml={startState:function(){return {inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return "="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}};
export { toml };

View File

@ -1,3 +0,0 @@
var words={};function tokenBase(t){if(t.eatSpace())return null;var a=t.sol(),e=t.next();if("\\"===e)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):t.match("(")||t.match("*(")?(t.eatWhile(/[\w-]/),"string"):"string";if(a&&("."===e||"'"===e)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(a&&"."===e){if(t.match("B ")||t.match("I ")||t.match("R "))return "attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return "attribute"}t.eatWhile(/[\w-]/);var n=t.current();return words.hasOwnProperty(n)?words[n]:null}function tokenize(t,a){return (a.tokens[0]||tokenBase)(t,a)}const troff={startState:function(){return {tokens:[]}},token:function(t,a){return tokenize(t,a)}};
export { troff };

Some files were not shown because too many files have changed in this diff Show More