This commit is contained in:
杜恒 2021-06-03 10:58:42 +08:00
parent 5109ccbeed
commit 2ad1d01493
200 changed files with 464 additions and 404 deletions

View File

@ -172,7 +172,7 @@ class Editor
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-tomorrow.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="<?php Helper::options()->themeUrl('typecho/write/css/joe.write.min.css?v=20210602') ?>">
<link rel="stylesheet" href="<?php Helper::options()->themeUrl('typecho/write/css/joe.write.min.css') ?>">
<script>
window.JoeConfig = {
uploadAPI: '<?php Helper::security()->index('/action/upload'); ?>',
@ -188,8 +188,8 @@ 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/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/dist/index.js?v=20210602') ?>" type="module"></script>
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js?v=20210602') ?>"></script>
<script src="<?php Helper::options()->themeUrl('typecho/write/dist/index.js') ?>" type="module"></script>
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js') ?>"></script>
<?php
}
}

View File

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

View File

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

View File

@ -1 +1,3 @@
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(n){var t;return function(e){return(t=e)!==n||"\\"===t}};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};
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 +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)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;if(t.sol()&&t.match(/^\w+:/))return e.state="header","atom";t=errorIfNotEmpty(t);return t&&(e.state="body"),t},blankLine:function(t){"headers"==t.state&&(t.state="body")},startState:function(){return{state:"top",type:null}}};export{asciiArmor};

View File

@ -0,0 +1,3 @@
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 };

3
typecho/write/dist/asn1-15256b5b.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +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 i,r=e.keywords||defaults.keywords,s=e.cmipVerbs||defaults.cmipVerbs,E=e.compareTypes||defaults.compareTypes,o=e.status||defaults.status,I=e.tags||defaults.tags,T=e.storage||defaults.storage,u=e.modifier||defaults.modifier,S=e.accessTypes||defaults.accessTypes,l=e.multiLineStrings||defaults.multiLineStrings,a=!1!==e.indentStatements,d=/[\|\^]/;function A(e,t){var a,n=e.next();if('"'==n||"'"==n)return t.tokenize=(a=n,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==a&&!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||l)||(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(n))return i=n,"punctuation";if("-"==n&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if(d.test(n))return e.eatWhile(d),"operator";e.eatWhile(/[\w\-]/);e=e.current();return r.propertyIsEnumerable(e)?"keyword":s.propertyIsEnumerable(e)?"variableName":E.propertyIsEnumerable(e)?"atom":o.propertyIsEnumerable(e)?"comment":I.propertyIsEnumerable(e)?"typeName":T.propertyIsEnumerable(e)||u.propertyIsEnumerable(e)||S.propertyIsEnumerable(e)?"modifier":"variableName"}function N(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function p(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new N(r,t,n,null,e.context)}function O(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 N(-2,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;i=null;var r=(t.tokenize||A)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i&&","!=i||"statement"!=n.type)if("{"==i)p(t,e.column(),"}");else if("["==i)p(t,e.column(),"]");else if("("==i)p(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=O(t);for("}"==n.type&&(n=O(t));"statement"==n.type;)n=O(t)}else i==n.type?O(t):a&&(("}"==n.type||"top"==n.type)&&";"!=i||"statement"==n.type&&"newstatement"==i)&&p(t,e.column(),"statement");else O(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}}}export{asn1};

View File

@ -1 +1,3 @@
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: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};
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

@ -0,0 +1,3 @@
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 };

View File

@ -1 +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};

3
typecho/write/dist/clike-bd262de8.js vendored Normal file

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 +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};

3
typecho/write/dist/cmake-973c3d53.js vendored Normal file
View File

@ -0,0 +1,3 @@
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

@ -0,0 +1,3 @@
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 +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"]),commonKeywords=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],keywords=wordRegexp((indentKeywords=["for","while","loop","if","unless","else","switch","try","catch","finally","class"]).concat(commonKeywords)),indentKeywords=wordRegexp(indentKeywords),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 t<o&&"coffee"==n.scope.type?"indent":o<t?"dedent":null}0<t&&dedent(e,n)}if(e.eatSpace())return null;t=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=longComment,n.tokenize(e,n);if("#"===t)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){t=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(t=!0),e.match(/^-?\d+\.\d*/)&&(t=!0),t=e.match(/^-?\.\d+/)?!0:t)return"."==e.peek()&&e.backUp(1),"number";t=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(t=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(t=!0),t=e.match(/^-?0(?![\dx])/i)?!0:t)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(t,o,r){return function(e,n){for(;!e.eol();)if(e.eatWhile(/[^'"\/\\]/),e.eat("\\")){if(e.next(),o&&e.eol())return r}else{if(e.match(t))return n.tokenize=tokenBase,r;e.eat(/['"\/]/)}return o&&(n.tokenize=tokenBase),r}}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)return n.scope=n.scope.prev,!1;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}}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,e=n&&-1<"])}".indexOf(n.charAt(0));if(e)for(;"coffee"==t.type&&t.prev;)t=t.prev;n=e&&t.type===n.charAt(0);return t.align?t.alignOffset-(n?1:0):(n?t.prev:t).offset},languageData:{commentTokens:{line:"#"}}};export{coffeeScript};

View File

@ -0,0 +1,3 @@
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 };

View File

@ -1 +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=e.next();if('"'==(n="\\"==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";e=readSym(e);return"."==e?null:(type="symbol","nil"==e||"t"==e||":"==e.charAt(0)?"atom":"open"==t.lastType&&(specialForm.test(e)||assumeBody.test(e))?"keyword":"&"==e.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

File diff suppressed because one or more lines are too long

3
typecho/write/dist/css-a1b672ef.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +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";e=e.current();return funcs.test(e)?"builtin":preds.test(e)?"def":keywords.test(e)||systemKeywords.test(e)?"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 t=t&&t.charAt(0),r=e.context;if(/[\]\}]/.test(t))for(;r&&"pattern"===r.type;)r=r.prev;t=r&&t===r.type;return r?"keywords"===r.type?null:r.align?r.col+(t?0:1):r.indent+(t?0:n.unit):0}};export{cypher};

3
typecho/write/dist/cypher-f69de78a.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 };

3
typecho/write/dist/d-09c05d18.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +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)(e,t);if(e.eat("*"))return(t.tokenize=tokenComment)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);e=e.current();return keywords.propertyIsEnumerable(e)?(blockKeywords.propertyIsEnumerable(e)&&(curPunc="newstatement"),"keyword"):builtin.propertyIsEnumerable(e)?(blockKeywords.propertyIsEnumerable(e)&&(curPunc="newstatement"),"builtin"):atoms.propertyIsEnumerable(e)?"atom":"variable"}function tokenString(i){return function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==i&&!r){o=!0;break}r=!r&&"\\"==n}return!o&&(r||multiLineStrings)||(t.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,e=t&&t.charAt(0),t=e==(r="statement"==r.type&&"}"==e?r.prev:r).type;return"statement"==r.type?r.indented+("{"==e?0:n.unit):r.align?r.column+(t?0:1):r.indented+(t?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{d};

View File

@ -1 +1,3 @@
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};
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

@ -0,0 +1,5 @@
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 +0,0 @@
import{s as simpleMode}from"./simple-mode-3ccd66eb.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};

3
typecho/write/dist/dtd-7155fd63.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +0,0 @@
var type;function ret(t,e){return type=e,t}function tokenBase(t,e){var n=t.next();if("<"==n&&t.eat("!"))return t.eatWhile(/[\-]/)?(e.tokenize=tokenSGMLComment)(t,e):t.eatWhile(/[\w]/)?ret("keyword","doindent"):void 0;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]/)){e=t.current();return null!==e.substr(e.length-1,e.length).match(/\?|\+/)&&t.backUp(1),ret("tag","tag")}return"%"==n||"*"==n?ret("number","number"):(t.eatWhile(/[\w\\\-_%.{,]/),ret(null,null))}function tokenSGMLComment(t,e){for(var n,r=0;null!=(n=t.next());){if(2<=r&&">"==n){e.tokenize=tokenBase;break}r="-"==n?r+1:0}return ret("comment","comment")}function tokenString(a){return function(t,e){for(var n,r=!1;null!=(n=t.next());){if(n==a&&!r){e.tokenize=tokenBase;break}r=!r&&"\\"==n}return ret("string","tag")}}function inBlock(n,r){return function(t,e){for(;!t.eol();){if(t.match(r)){e.tokenize=tokenBase;break}t.next()}return n}}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&&1<e.length||("doindent"==type?r--:">"==type&&1<e.length||"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))&&">"===e||(r-=1))),null!=type&&"]"!=type||r--),t.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}};export{dtd};

3
typecho/write/dist/dylan-dbccfe07.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +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 patternName,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(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)(e,t)}function tokenBase(t,e){var n,r=t.peek();if("'"==r||'"'==r)return t.next(),chain(t,e,tokenString(r,"string"));if("/"==r){if(t.next(),t.eat("*"))return chain(t,e,tokenComment);if(t.eat("/"))return t.skipToEnd(),"comment";t.backUp(1)}else if(/[+\-\d\.]/.test(r)){if(t.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||t.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||t.match(/^[+-]?\d+/))return"number"}else{if("#"==r)return t.next(),'"'==(r=t.peek())?(t.next(),chain(t,e,tokenString('"',"string"))):"b"==r?(t.next(),t.eatWhile(/[01]/),"number"):"x"==r?(t.next(),t.eatWhile(/[\da-f]/i),"number"):"o"==r?(t.next(),t.eatWhile(/[0-7]/),"number"):"#"==r?(t.next(),"punctuation"):"["==r||"("==r?(t.next(),"bracket"):t.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(t.eatWhile(/[-a-zA-Z]/),"error");if("~"==r)return t.next(),"="==(r=t.peek())?(t.next(),"="==(r=t.peek())&&t.next(),"operator"):"operator";if(":"==r){if(t.next(),"="==(r=t.peek()))return t.next(),"operator";if(":"==r)return t.next(),"punctuation"}else{if(-1!="[](){}".indexOf(r))return t.next(),"bracket";if(-1!=".,".indexOf(r))return t.next(),"punctuation";if(t.match("end"))return"keyword"}}for(n in patterns)if(patterns.hasOwnProperty(n)){var o=patterns[n];if(o instanceof Array&&some(o,function(e){return t.match(e)})||t.match(o))return patternStyles[n]}return/[+\-*\/^=<>&|]/.test(r)?(t.next(),"operator"):t.match("define")?"def":(t.eatWhile(/[\w\-]/),wordLookup.hasOwnProperty(t.current())?styleLookup[t.current()]:t.current().match(symbol)?"variable":(t.next(),"variableName.standard"))}function tokenComment(e,t){for(var n,r=!1,o=!1,i=0;n=e.next();){if("/"==n&&r){if(!(0<i)){t.tokenize=tokenBase;break}i--}else"*"==n&&o&&i++;r="*"==n,o="/"==n}return"comment"}function tokenString(i,a){return function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==i&&!r){o=!0;break}r=!r&&"\\"==n}return!o&&r||(t.tokenize=tokenBase),a}}forEach(["keyword","definition","simpleDefinition","signalingCalls"],function(t){forEach(words[t],function(e){wordLookup[e]=t,styleLookup[e]=styles[t]})});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 +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};

3
typecho/write/dist/ebnf-dc33e371.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 };

3
typecho/write/dist/ecl-cbba72dc.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
typecho/write/dist/eiffel-0c4ec03c.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +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(a,o,i){return function(e,t){for(var r,n=!1;null!=(r=e.next());){if(r==a&&(i||!n)){t.tokenize.pop();break}n=!n&&"%"==r}return o}}const eiffel={startState:function(){return{tokenize:[tokenBase]}},token:function(e,t){var r=t.tokenize[t.tokenize.length-1](e,t);return"variable"==r&&(t=e.current(),r=keywords.propertyIsEnumerable(e.current())?"keyword":operators.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(t)?"tag":/^0[bB][0-1]+$/g.test(t)||/^0[cC][0-7]+$/g.test(t)||/^0[xX][a-fA-F0-9]+$/g.test(t)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(t)||/^[0-9]+$/g.test(t)?"number":"variable"),r},languageData:{commentTokens:{line:"--"}}};export{eiffel};

View File

@ -1 +0,0 @@
function switchState(t,e,n){return e(n),n(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 n=t.next();if(specialRE.test(n))return"{"===n&&t.eat("-")?switchState(t,e,chompMultiComment(1)):"["===n&&t.match("glsl|")?switchState(t,e,chompGlsl):"builtin";if("'"===n)return switchState(t,e,chompChar);if('"'===n)return t.eat('"')?t.eat('"')?switchState(t,e,chompMultiString):"string":switchState(t,e,chompSingleString);if(upperRE.test(n))return t.eatWhile(innerRE),"type";if(lowerRE.test(n)){e=1===t.pos;return t.eatWhile(innerRE),e?"def":"variable"}if(digitRE.test(n)){if("0"===n){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(n)?"-"===n&&t.eat("-")?(t.skipToEnd(),"comment"):(t.eatWhile(symbolRE),"keyword"):"_"===n?"keyword":"error"}}function chompMultiComment(r){return 0==r?normal():function(t,e){for(;!t.eol();){var n=t.next();if("{"==n&&t.eat("-"))++r;else if("-"==n&&t.eat("}")&&0===--r)return e(normal()),"comment"}return e(chompMultiComment(r)),"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 n=e.f(t,function(t){e.f=t}),t=t.current();return wellKnownWords.hasOwnProperty(t)?"keyword":n}};export{elm};

3
typecho/write/dist/elm-f70a1df2.js vendored Normal file
View File

@ -0,0 +1,3 @@
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

3
typecho/write/dist/erlang-b5fc50bf.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{s as simpleMode}from"./simple-mode-3ccd66eb.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};

5
typecho/write/dist/factor-fe67696a.js vendored Normal file
View File

@ -0,0 +1,5 @@
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 };

3
typecho/write/dist/fcl-cb4cdccb.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +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)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);e=e.current().toLowerCase();return keywords.propertyIsEnumerable(e)||start_blocks.propertyIsEnumerable(e)||end_blocks.propertyIsEnumerable(e)?"keyword":atoms.propertyIsEnumerable(e)?"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);n=e.current().toLowerCase();return start_blocks.propertyIsEnumerable(n)?pushContext(t,e.column(),"end_block"):end_blocks.propertyIsEnumerable(n)&&popContext(t),t.startOfLine=!1,o},indent:function(e,t,n){if(e.tokenize!=tokenBase&&null!=e.tokenize)return 0;e=e.context,t=end_blocks.propertyIsEnumerable(t);return e.align?e.column+(t?0:1):e.indented+(t?0:n.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}};export{fcl};

View File

@ -1 +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){for(var i=t.length-1;0<=i;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};

3
typecho/write/dist/forth-7406fa21.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +1,3 @@
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\$_]/);e=e.current().toLowerCase();return keywords.hasOwnProperty(e)?"keyword":builtins.hasOwnProperty(e)||dataTypes.hasOwnProperty(e)?"builtin":"variable"}function tokenString(r){return function(e,t){for(var n,a=!1,i=!1;null!=(n=e.next());){if(n==r&&!a){i=!0;break}a=!a&&"\\"==n}return!i&&a||(t.tokenize=null),"string"}}const fortran={startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;t=(t.tokenize||tokenBase)(e,t);return t}};export{fortran};
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 };

3
typecho/write/dist/gas-ba2a7800.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 };

View File

@ -1 +0,0 @@
function mkGas(i){var b=[],r="",u={".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"},s={};function c(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?(r="#",s.ax="variable",s.eax="variableName.special",s.rax="variableName.special",s.bx="variable",s.ebx="variableName.special",s.rbx="variableName.special",s.cx="variable",s.ecx="variableName.special",s.rcx="variableName.special",s.dx="variable",s.edx="variableName.special",s.rdx="variableName.special",s.si="variable",s.esi="variableName.special",s.rsi="variableName.special",s.di="variable",s.edi="variableName.special",s.rdi="variableName.special",s.sp="variable",s.esp="variableName.special",s.rsp="variableName.special",s.bp="variable",s.ebp="variableName.special",s.rbp="variableName.special",s.ip="variable",s.eip="variableName.special",s.rip="variableName.special",s.cs="keyword",s.ds="keyword",s.ss="keyword",s.es="keyword",s.fs="keyword",s.gs="keyword"):"arm"!==i&&"armv6"!==i||(r="@",u.syntax="builtin",s.r0="variable",s.r1="variable",s.r2="variable",s.r3="variable",s.r4="variable",s.r5="variable",s.r6="variable",s.r7="variable",s.r8="variable",s.r9="variable",s.r10="variable",s.r11="variable",s.r12="variable",s.sp="variableName.special",s.lr="variableName.special",s.pc="variableName.special",s.r13=s.sp,s.r14=s.lr,s.r15=s.pc,b.push(function(i,l){if("#"===i)return l.eatWhile(/\w/),"number"})),{startState:function(){return{tokenize:null}},token:function(i,l){if(l.tokenize)return l.tokenize(i,l);if(i.eatSpace())return null;var e,t,n=i.next();if("/"===n&&i.eat("*"))return(l.tokenize=c)(i,l);if(n===r)return i.skipToEnd(),"comment";if('"'===n)return function(i,l){for(var e,t=!1;null!=(e=i.next());){if(e===l&&!t)return;t=!t&&"\\"===e}}(i,'"'),"string";if("."===n)return i.eatWhile(/\w/),t=i.current().toLowerCase(),(e=u[t])||null;if("="===n)return i.eatWhile(/\w/),"tag";if("{"===n)return"bracket";if("}"===n)return"bracket";if(/\d/.test(n))return"0"===n&&i.eat("x")?i.eatWhile(/[0-9a-fA-F]/):i.eatWhile(/\d/),"number";if(/\w/.test(n))return i.eatWhile(/\w/),i.eat(":")?"tag":(t=i.current().toLowerCase(),(e=s[t])||null);for(var a=0;a<b.length;a++)if(e=b[a](n,i,l))return e},languageData:{commentTokens:{line:r,block:{open:"/*",close:"*/"}}}}}const gas=mkGas("x86"),gasArm=mkGas("arm");export{gas,gasArm};

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 +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)(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(isOperatorChar.test(n))return t.eatWhile(isOperatorChar),"operator";t.eatWhile(/[\w\$_\xa1-\uffff]/);t=t.current();return keywords.propertyIsEnumerable(t)?("case"!=t&&"default"!=t||(curPunc="case"),"keyword"):atoms.propertyIsEnumerable(t)?"atom":"variable"}function tokenString(i){return function(t,e){for(var n,r=!1,o=!1;null!=(n=t.next());){if(n==i&&!r){o=!0;break}r=!r&&"`"!=i&&"\\"==n}return(o||!r&&"`"!=i)&&(e.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;o=o==r.type;return r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{go};

3
typecho/write/dist/go-f5a11905.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 +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";e=e.current();return atoms.propertyIsEnumerable(e)?"atom":keywords.propertyIsEnumerable(e)?(blockKeywords.propertyIsEnumerable(e)?curPunc="newstatement":standaloneKeywords.propertyIsEnumerable(e)&&(curPunc="standalone"),"keyword"):"variable"}function startString(i,e,t){var a=!1;if("/"!=i&&e.eat(i)){if(!e.eat(i))return"string";a=!0}function n(e,t){for(var n,r=!1,o=!a;null!=(n=e.next());){if(n==i&&!r){if(!a)break;if(e.match(i+i)){o=!0;break}}if('"'==i&&"$"==n&&!r&&e.eat("{"))return t.tokenize.push(tokenBaseUntilBrace()),"string";r=!r&&"\\"==n}return o&&t.tokenize.pop(),"string"}return t.tokenize.push(n),n(e,t)}function tokenBaseUntilBrace(){var n=1;function e(e,t){if("}"==e.peek()){if(0==--n)return t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t)}else"{"==e.peek()&&n++;return tokenBase(e,t)}return e.isBase=!0,e}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),t=e.context,e=r==(t="statement"==t.type&&!expectExpression(e.lastToken,!0)?t.prev:t).type;return"statement"==t.type?t.indented+("{"==r?0:n.unit):t.align?t.column+(e?0:1):t.indented+(e?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}};export{groovy};

3
typecho/write/dist/groovy-6b290c39.js vendored Normal file
View File

@ -0,0 +1,3 @@
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

@ -0,0 +1,3 @@
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 };

View File

@ -1 +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(a,i){return 0==i?normal:function(e,t){for(var r=i;!e.eol();){var n=e.next();if("{"==n&&e.eat("-"))++r;else if("-"==n&&e.eat("}")&&0==--r)return t(normal),a}return t(ncomment(a,r)),a}}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 r={};function e(t){return function(){for(var e=0;e<arguments.length;e++)r[arguments[e]]=t}}return e("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),e("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),e("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),e("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"),e("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"),r}();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}),e=e.current();return wellKnownWords.hasOwnProperty(e)?wellKnownWords[e]:r},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}};export{haskell};

File diff suppressed because one or more lines are too long

3
typecho/write/dist/haxe-9d21dca1.js vendored Normal file

File diff suppressed because one or more lines are too long

3
typecho/write/dist/http-34f33cd7.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 };

View File

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

7
typecho/write/dist/index-10f8f96c.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

7
typecho/write/dist/index-26786b8e.js vendored Normal file

File diff suppressed because one or more lines are too long

7
typecho/write/dist/index-2d09597f.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

7
typecho/write/dist/index-7266ebfb.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

96
typecho/write/dist/index-8d03edaf.js vendored Normal file

File diff suppressed because one or more lines are too long

7
typecho/write/dist/index-94ff6308.js vendored Normal file
View File

@ -0,0 +1,7 @@
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 };

View File

@ -1 +0,0 @@
import{P as Parser,j as LezerLanguage,e as indentNodeProp,f as continuedIndent,h as foldNodeProp,q as foldInside,a as styleTags,n as LanguageSupport,t as tags}from"./index.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}),jsonParseLinter=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;O=getErrorPosition(e,O.state.doc);return[{from:O,message:e.message,severity:"error",to:O}]}return[]};function getErrorPosition(e,O){let a;return(a=e.message.match(/at position (\d+)/))?Math.min(+a[1],O.length):(a=e.message.match(/at line (\d+) column (\d+)/))?Math.min(O.line(+a[1]).from+ +a[2]-1,O.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};

5
typecho/write/dist/index-af3da59b.js vendored Normal file

File diff suppressed because one or more lines are too long

5
typecho/write/dist/index-cbec2630.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

7
typecho/write/dist/index-e7011afa.js vendored Normal file

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 +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)&&(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};

3
typecho/write/dist/jinja2-bde53da2.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 };

3
typecho/write/dist/julia-47eb9500.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
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 +0,0 @@
var idx,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(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 +1,3 @@
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(r,o){return function(e,t){for(var n,a=null;null!=(n=e.next());)if(null==a)"]"==n&&(a=0);else if("="==n)++a;else{if("]"==n&&a==r){t.cur=normal;break}a=null}return o}}function string(r){return function(e,t){for(var n,a=!1;null!=(n=e.next())&&(n!=r||a);)a=!a&&"\\"==n;return a||(t.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),e=e.current();return"variable"==n&&(keywords.test(e)?n="keyword":builtins.test(e)&&(n="builtin")),"comment"!=n&&"string"!=n&&(indentTokens.test(e)?++t.indentDepth:dedentTokens.test(e)&&--t.indentDepth),n},indent:function(e,t,n){t=dedentPartial.test(t);return e.basecol+n.unit*(e.indentDepth-(t?1:0))},languageData:{commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}};export{lua};
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 +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,a){var t=e.next();return'"'===t?(a.tokenize=tokenString,a.tokenize(e,a)):"("===t&&e.eat("*")?(a.commentLevel++,a.tokenize=tokenComment,a.tokenize(e,a)):(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,a){for(var t,n=!1,o=!1;null!=(t=e.next());){if('"'===t&&!o){n=!0;break}o=!o&&"\\"===t}return n&&!o&&(a.tokenize=tokenBase),"string"}function tokenComment(e,a){for(var t,n;0<a.commentLevel&&null!=(n=e.next());)"("===t&&"*"===n&&a.commentLevel++,"*"===t&&")"===n&&a.commentLevel--,t=n;return a.commentLevel<=0&&(a.tokenize=tokenBase),"comment"}const mathematica={startState:function(){return{tokenize:tokenBase,commentLevel:0}},token:function(e,a){return e.eatSpace()?null:a.tokenize(e,a)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}};export{mathematica};

View File

@ -0,0 +1,3 @@
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 };

3
typecho/write/dist/mbox-14cd0a83.js vendored Normal file
View File

@ -0,0 +1,3 @@
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 };

View File

@ -1 +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=!1;return(t=e.match(rfc2822HeaderNoEmail))||(a=!0,t=e.match(rfc2822Header))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=a,r.header=t[1],"atom"):r.inHeaders&&(t=e.match(header))?(r.inHeader=!0,r.emailPermitted=!0,r.header=t[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 t=styleForHeader(r.header);if(r.emailPermitted){if(e.match(bracketedEmail))return t+" link";if(e.match(untilBracketedEmail))return t}return e.skipToEnd(),t}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

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