更新
This commit is contained in:
parent
4f621b2591
commit
f536efb30a
@ -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') ?>">
|
||||
<link rel="stylesheet" href="<?php Helper::options()->themeUrl('typecho/write/css/joe.write.min.css?v=20210601') ?>">
|
||||
<script>
|
||||
window.JoeConfig = {
|
||||
uploadAPI: '<?php Helper::security()->index('/action/upload'); ?>',
|
||||
@ -187,8 +187,8 @@ class Editor
|
||||
</script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.2.4/plugin/prism/prism.min.js"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('typecho/write/js/joe.parse.min.js') ?>"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('typecho/write/js/joe.write.chunk.js?v=20210531') ?>"></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') ?>" type="module"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js') ?>"></script>
|
||||
<?php
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* 获取主题当前版本号 */
|
||||
function _getVersion()
|
||||
{
|
||||
return "7.1.8";
|
||||
return "7.1.9";
|
||||
};
|
||||
|
||||
/* 判断是否是手机 */
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "typecho-joe-next",
|
||||
"version": "7.1.8",
|
||||
"version": "7.1.9",
|
||||
"description": "A Theme Of Typecho",
|
||||
"main": "index.php",
|
||||
"keywords": [
|
||||
|
2
typecho/write/css/joe.write.min.css
vendored
2
typecho/write/css/joe.write.min.css
vendored
File diff suppressed because one or more lines are too long
@ -128,7 +128,7 @@ body.fullscreen {
|
||||
font-size: 14px;
|
||||
.cm-scroller {
|
||||
line-height: 1.8;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
||||
overscroll-behavior: none;
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
@ -175,7 +175,7 @@ body.fullscreen {
|
||||
.cmt-emphasis {
|
||||
color: #b294bb;
|
||||
font-style: italic;
|
||||
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
|
||||
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, Arial, sans-serif;
|
||||
}
|
||||
.cmt-deleted {
|
||||
color: #ed6a43;
|
||||
@ -192,6 +192,28 @@ body.fullscreen {
|
||||
.cmt-url {
|
||||
color: #5fa76f;
|
||||
}
|
||||
/* 代码高亮 */
|
||||
.cmt-typeName {
|
||||
color: #e2777a;
|
||||
}
|
||||
.cmt-string {
|
||||
color: #7ec699;
|
||||
}
|
||||
.cmt-keyword {
|
||||
color: #cc99cd;
|
||||
}
|
||||
.cmt-comment {
|
||||
color: #5c6370;
|
||||
}
|
||||
.cmt-propertyName {
|
||||
color: #d19a66;
|
||||
}
|
||||
.cmt-punctuation {
|
||||
color: #808080;
|
||||
}
|
||||
.cmt-number {
|
||||
color: #f08d49;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cm-resize {
|
||||
|
1
typecho/write/dist/apl-2030b4c5.js
vendored
Normal file
1
typecho/write/dist/apl-2030b4c5.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/asciiarmor-093bcdbd.js
vendored
Normal file
1
typecho/write/dist/asciiarmor-093bcdbd.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/asn1-afa00132.js
vendored
Normal file
1
typecho/write/dist/asn1-afa00132.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/asterisk-09307b50.js
vendored
Normal file
1
typecho/write/dist/asterisk-09307b50.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/brainfuck-80b1f4f5.js
vendored
Normal file
1
typecho/write/dist/brainfuck-80b1f4f5.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/clike-e2a9d212.js
vendored
Normal file
1
typecho/write/dist/clike-e2a9d212.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/clojure-32cc1305.js
vendored
Normal file
1
typecho/write/dist/clojure-32cc1305.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/cmake-2227f645.js
vendored
Normal file
1
typecho/write/dist/cmake-2227f645.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/cobol-43d95731.js
vendored
Normal file
1
typecho/write/dist/cobol-43d95731.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/coffeescript-fc762049.js
vendored
Normal file
1
typecho/write/dist/coffeescript-fc762049.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/commonlisp-ba6e115c.js
vendored
Normal file
1
typecho/write/dist/commonlisp-ba6e115c.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/crystal-5772ab5b.js
vendored
Normal file
1
typecho/write/dist/crystal-5772ab5b.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/css-79b391c7.js
vendored
Normal file
1
typecho/write/dist/css-79b391c7.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/cypher-5d7834b7.js
vendored
Normal file
1
typecho/write/dist/cypher-5d7834b7.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/d-7ec7aa31.js
vendored
Normal file
1
typecho/write/dist/d-7ec7aa31.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/diff-e72a85b3.js
vendored
Normal file
1
typecho/write/dist/diff-e72a85b3.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/dockerfile-f2730f07.js
vendored
Normal file
1
typecho/write/dist/dockerfile-f2730f07.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/dtd-da1e6af8.js
vendored
Normal file
1
typecho/write/dist/dtd-da1e6af8.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/dylan-f2ba9f15.js
vendored
Normal file
1
typecho/write/dist/dylan-f2ba9f15.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/ebnf-2174d665.js
vendored
Normal file
1
typecho/write/dist/ebnf-2174d665.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/ecl-e5271367.js
vendored
Normal file
1
typecho/write/dist/ecl-e5271367.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/eiffel-efa88d90.js
vendored
Normal file
1
typecho/write/dist/eiffel-efa88d90.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/elm-63fbccd1.js
vendored
Normal file
1
typecho/write/dist/elm-63fbccd1.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/erlang-8c025459.js
vendored
Normal file
1
typecho/write/dist/erlang-8c025459.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/factor-b9688504.js
vendored
Normal file
1
typecho/write/dist/factor-b9688504.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/fcl-d6276f3f.js
vendored
Normal file
1
typecho/write/dist/fcl-d6276f3f.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/forth-02de8e5b.js
vendored
Normal file
1
typecho/write/dist/forth-02de8e5b.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/fortran-92612c49.js
vendored
Normal file
1
typecho/write/dist/fortran-92612c49.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/gas-c1ef3a64.js
vendored
Normal file
1
typecho/write/dist/gas-c1ef3a64.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/gherkin-446ca897.js
vendored
Normal file
1
typecho/write/dist/gherkin-446ca897.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/go-7157bdcf.js
vendored
Normal file
1
typecho/write/dist/go-7157bdcf.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/groovy-15bb0a05.js
vendored
Normal file
1
typecho/write/dist/groovy-15bb0a05.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/haskell-659ae93f.js
vendored
Normal file
1
typecho/write/dist/haskell-659ae93f.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/haxe-8482e88f.js
vendored
Normal file
1
typecho/write/dist/haxe-8482e88f.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/http-6c3ca047.js
vendored
Normal file
1
typecho/write/dist/http-6c3ca047.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/idl-0ef7209d.js
vendored
Normal file
1
typecho/write/dist/idl-0ef7209d.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-4ff54fbd.js
vendored
Normal file
1
typecho/write/dist/index-4ff54fbd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-5cf29f46.js
vendored
Normal file
1
typecho/write/dist/index-5cf29f46.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-7bc70213.js
vendored
Normal file
1
typecho/write/dist/index-7bc70213.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-94295a51.js
vendored
Normal file
1
typecho/write/dist/index-94295a51.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-9567a91c.js
vendored
Normal file
1
typecho/write/dist/index-9567a91c.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-a879143b.js
vendored
Normal file
1
typecho/write/dist/index-a879143b.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/index-ec1dad61.js
vendored
Normal file
1
typecho/write/dist/index-ec1dad61.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/index-eddd0dfb.js
vendored
Normal file
1
typecho/write/dist/index-eddd0dfb.js
vendored
Normal file
File diff suppressed because one or more lines are too long
288
typecho/write/dist/index.js
vendored
Normal file
288
typecho/write/dist/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/javascript-9e8f260e.js
vendored
Normal file
1
typecho/write/dist/javascript-9e8f260e.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/jinja2-7915044e.js
vendored
Normal file
1
typecho/write/dist/jinja2-7915044e.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/julia-94b55ee6.js
vendored
Normal file
1
typecho/write/dist/julia-94b55ee6.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/livescript-18d3ed4b.js
vendored
Normal file
1
typecho/write/dist/livescript-18d3ed4b.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/lua-9cec5372.js
vendored
Normal file
1
typecho/write/dist/lua-9cec5372.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/mathematica-4c7527d5.js
vendored
Normal file
1
typecho/write/dist/mathematica-4c7527d5.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/mbox-c94b8e5d.js
vendored
Normal file
1
typecho/write/dist/mbox-c94b8e5d.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
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};
|
1
typecho/write/dist/mirc-959c94b1.js
vendored
Normal file
1
typecho/write/dist/mirc-959c94b1.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/mllike-10ca148e.js
vendored
Normal file
1
typecho/write/dist/mllike-10ca148e.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function mlLike(t){var e,n={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},r=t.extraWords||{};for(e in r)r.hasOwnProperty(e)&&(n[e]=t.extraWords[e]);var o,i=[];for(o in n)i.push(o);function d(e,r){var o=e.next();if('"'===o)return r.tokenize=k,r.tokenize(e,r);if("{"===o&&e.eat("|"))return r.longString=!0,r.tokenize=w,r.tokenize(e,r);if("("===o&&e.eat("*"))return r.commentLevel++,r.tokenize=y,r.tokenize(e,r);if("~"===o||"?"===o)return e.eatWhile(/\w/),"variableName.special";if("`"===o)return e.eatWhile(/\w/),"quote";if("/"===o&&t.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(o))return"0"===o&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),"0"===o&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),"0"===o&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(o))return"operator";if(/[\w\xa1-\uffff]/.test(o)){e.eatWhile(/[\w\xa1-\uffff]/);e=e.current();return n.hasOwnProperty(e)?n[e]:"variable"}return null}function k(e,r){for(var o,t=!1,n=!1;null!=(o=e.next());){if('"'===o&&!n){t=!0;break}n=!n&&"\\"===o}return t&&!n&&(r.tokenize=d),"string"}function y(e,r){for(var o,t;0<r.commentLevel&&null!=(t=e.next());)"("===o&&"*"===t&&r.commentLevel++,"*"===o&&")"===t&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=d),"comment"}function w(e,r){for(var o,t;r.longString&&null!=(t=e.next());)"|"===o&&"}"===t&&(r.longString=!1),o=t;return r.longString||(r.tokenize=d),"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{autocomplete:i,commentTokens:{line:t.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}const oCaml=mlLike({extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),fSharp=mlLike({extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),sml=mlLike({extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0});export{fSharp,oCaml,sml};
|
1
typecho/write/dist/modelica-decd8598.js
vendored
Normal file
1
typecho/write/dist/modelica-decd8598.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function words(e){for(var t={},n=e.split(" "),i=0;i<n.length;++i)t[n[i]]=!0;return t}var keywords=words("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),builtin=words("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),atoms=words("Real Boolean Integer String"),completions=[].concat(Object.keys(keywords),Object.keys(builtin),Object.keys(atoms)),isSingleOperatorChar=/[;=\(:\),{}.*<>+\-\/^\[\]]/,isDoubleOperatorChar=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,isDigit=/[0-9]/,isNonDigit=/[_a-zA-Z]/;function tokenLineComment(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function tokenBlockComment(e,t){for(var n,i=!1;n=e.next();){if(i&&"/"==n){t.tokenize=null;break}i="*"==n}return"comment"}function tokenString(e,t){for(var n,i=!1;null!=(n=e.next());){if('"'==n&&!i){t.tokenize=null,t.sol=!1;break}i=!i&&"\\"==n}return"string"}function tokenIdent(e,t){for(e.eatWhile(isDigit);e.eat(isDigit)||e.eat(isNonDigit););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&0<t.level&&t.level--:t.level++,t.tokenize=null,t.sol=!1,keywords.propertyIsEnumerable(n)?"keyword":builtin.propertyIsEnumerable(n)?"builtin":atoms.propertyIsEnumerable(n)?"atom":"variable"}function tokenQIdent(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function tokenUnsignedNumber(e,t){return e.eatWhile(isDigit),e.eat(".")&&e.eatWhile(isDigit),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(isDigit)),t.tokenize=null,t.sol=!1,"number"}const modelica={startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=tokenLineComment;else if("/"==n&&e.eat("*"))t.tokenize=tokenBlockComment;else{if(isDoubleOperatorChar.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(isSingleOperatorChar.test(n))return t.tokenize=null,"operator";if(isNonDigit.test(n))t.tokenize=tokenIdent;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=tokenQIdent;else if('"'==n)t.tokenize=tokenString;else{if(!isDigit.test(n))return t.tokenize=null,"error";t.tokenize=tokenUnsignedNumber}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;e=e.level;return/(algorithm)/.test(t)&&e--,/(equation)/.test(t)&&e--,/(initial algorithm)/.test(t)&&e--,/(initial equation)/.test(t)&&e--,/(end)/.test(t)&&e--,0<e?n.unit*e:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:completions}};export{modelica};
|
1
typecho/write/dist/mscgen-ceec9b1f.js
vendored
Normal file
1
typecho/write/dist/mscgen-ceec9b1f.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function mkParser(t){return{startState:startStateFn,copyState:copyStateFn,token:produceTokenFunction(t),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}}const mscgen=mkParser({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),msgenny=mkParser({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),xu=mkParser({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function wordRegexpBoundary(t){return new RegExp("^\\b("+t.join("|")+")\\b","i")}function wordRegexp(t){return new RegExp("^(?:"+t.join("|")+")","i")}function startStateFn(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function copyStateFn(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function produceTokenFunction(e){return function(t,r){if(t.match(wordRegexp(e.brackets),!0,!0))return"bracket";if(!r.inComment){if(t.match(/\/\*[^\*\/]*/,!0,!0))return r.inComment=!0,"comment";if(t.match(wordRegexp(e.singlecomment),!0,!0))return t.skipToEnd(),"comment"}if(r.inComment)return t.match(/[^\*\/]*\*\//,!0,!0)?r.inComment=!1:t.skipToEnd(),"comment";if(!r.inString&&t.match(/\"(\\\"|[^\"])*/,!0,!0))return r.inString=!0,"string";if(r.inString)return t.match(/[^\"]*\"/,!0,!0)?r.inString=!1:t.skipToEnd(),"string";if(e.keywords&&t.match(wordRegexpBoundary(e.keywords),!0,!0))return"keyword";if(t.match(wordRegexpBoundary(e.options),!0,!0))return"keyword";if(t.match(wordRegexpBoundary(e.arcsWords),!0,!0))return"keyword";if(t.match(wordRegexp(e.arcsOthers),!0,!0))return"keyword";if(e.operators&&t.match(wordRegexp(e.operators),!0,!0))return"operator";if(e.constants&&t.match(wordRegexp(e.constants),!0,!0))return"variable";if(!e.inAttributeList&&e.attributes&&t.match("[",!0,!0))return e.inAttributeList=!0,"bracket";if(e.inAttributeList){if(null!==e.attributes&&t.match(wordRegexpBoundary(e.attributes),!0,!0))return"attribute";if(t.match("]",!0,!0))return e.inAttributeList=!1,"bracket"}return t.next(),null}}export{mscgen,msgenny,xu};
|
1
typecho/write/dist/mumps-067a7108.js
vendored
Normal file
1
typecho/write/dist/mumps-067a7108.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var singleOperators=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),doubleOperators=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),singleDelimiters=new RegExp("^[\\.,:]"),brackets=new RegExp("[()]"),identifiers=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),commandKeywords=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"],intrinsicFuncsWords=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"],intrinsicFuncs=wordRegexp(intrinsicFuncsWords),command=wordRegexp(commandKeywords);function tokenBase(e,t){e.sol()&&(t.label=!0,t.commandMode=0);var n=e.peek();return" "==n||"\t"==n?(t.label=!1,0==t.commandMode?t.commandMode=1:(t.commandMode<0||2==t.commandMode)&&(t.commandMode=0)):"."!=n&&0<t.commandMode&&(t.commandMode=":"==n?-1:2),"("!==n&&"\t"!==n||(t.label=!1),";"===n?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==n?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(doubleOperators)||e.match(singleOperators)?"operator":e.match(singleDelimiters)?null:brackets.test(n)?(e.next(),"bracket"):0<t.commandMode&&e.match(command)?"controlKeyword":e.match(intrinsicFuncs)?"builtin":e.match(identifiers)?"variable":"$"===n||"^"===n?(e.next(),"builtin"):"@"===n?(e.next(),"string.special"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}const mumps={startState:function(){return{label:!1,commandMode:0}},token:function(e,t){e=tokenBase(e,t);return t.label?"tag":e}};export{mumps};
|
1
typecho/write/dist/nginx-a6f68c33.js
vendored
Normal file
1
typecho/write/dist/nginx-a6f68c33.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/nsis-dc357a04.js
vendored
Normal file
1
typecho/write/dist/nsis-dc357a04.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/ntriples-12e84b21.js
vendored
Normal file
1
typecho/write/dist/ntriples-12e84b21.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var Location={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function transitState(t,n){var a=t.location,a=a==Location.PRE_SUBJECT&&"<"==n?Location.WRITING_SUB_URI:a==Location.PRE_SUBJECT&&"_"==n?Location.WRITING_BNODE_URI:a==Location.PRE_PRED&&"<"==n?Location.WRITING_PRED_URI:a==Location.PRE_OBJ&&"<"==n?Location.WRITING_OBJ_URI:a==Location.PRE_OBJ&&"_"==n?Location.WRITING_OBJ_BNODE:a==Location.PRE_OBJ&&'"'==n?Location.WRITING_OBJ_LITERAL:a==Location.WRITING_SUB_URI&&">"==n||a==Location.WRITING_BNODE_URI&&" "==n?Location.PRE_PRED:a==Location.WRITING_PRED_URI&&">"==n?Location.PRE_OBJ:a==Location.WRITING_OBJ_URI&&">"==n||a==Location.WRITING_OBJ_BNODE&&" "==n||a==Location.WRITING_OBJ_LITERAL&&'"'==n||a==Location.WRITING_LIT_LANG&&" "==n||a==Location.WRITING_LIT_TYPE&&">"==n?Location.POST_OBJ:a==Location.WRITING_OBJ_LITERAL&&"@"==n?Location.WRITING_LIT_LANG:a==Location.WRITING_OBJ_LITERAL&&"^"==n?Location.WRITING_LIT_TYPE:" "!=n||a!=Location.PRE_SUBJECT&&a!=Location.PRE_PRED&&a!=Location.PRE_OBJ&&a!=Location.POST_OBJ?a==Location.POST_OBJ&&"."==n?Location.PRE_SUBJECT:Location.ERROR:a;t.location=a}const ntriples={startState:function(){return{location:Location.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(t,n){var a=t.next();if("<"==a){transitState(n,a);var o="";return(t.eatWhile(function(t){return"#"!=t&&">"!=t&&(o+=t,!0)}),n.uris.push(o),t.match("#",!1))?"variable":(t.next(),transitState(n,">"),"variable")}if("#"==a){var i="";return t.eatWhile(function(t){return">"!=t&&" "!=t&&(i+=t,!0)}),n.anchors.push(i),"url"}if(">"==a)return transitState(n,">"),"variable";if("_"==a){transitState(n,a);var I="";return t.eatWhile(function(t){return" "!=t&&(I+=t,!0)}),n.bnodes.push(I),t.next(),transitState(n," "),"builtin"}if('"'==a)return transitState(n,a),t.eatWhile(function(t){return'"'!=t}),t.next(),"@"!=t.peek()&&"^"!=t.peek()&&transitState(n,'"'),"string";if("@"==a){transitState(n,"@");var _="";return t.eatWhile(function(t){return" "!=t&&(_+=t,!0)}),n.langs.push(_),t.next(),transitState(n," "),"string.special"}if("^"==a){t.next(),transitState(n,"^");var R="";return t.eatWhile(function(t){return">"!=t&&(R+=t,!0)}),n.types.push(R),t.next(),transitState(n,">"),"variable"}" "==a&&transitState(n,a),"."==a&&transitState(n,a)}};export{ntriples};
|
1
typecho/write/dist/octave-dfed99d7.js
vendored
Normal file
1
typecho/write/dist/octave-dfed99d7.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var singleOperators=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),singleDelimiters=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),doubleOperators=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),doubleDelimiters=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),tripleDelimiters=new RegExp("^((>>=)|(<<=))"),expressionEnd=new RegExp("^[\\]\\)]"),identifiers=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*"),builtins=wordRegexp(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),keywords=wordRegexp(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function tokenTranspose(e,n){return e.sol()||"'"!==e.peek()?(n.tokenize=tokenBase)(e,n):(e.next(),n.tokenize=tokenBase,"operator")}function tokenComment(e,n){return e.match(/^.*%}/)?n.tokenize=tokenBase:e.skipToEnd(),"comment"}function tokenBase(e,n){if(e.eatSpace())return null;if(e.match("%{"))return n.tokenize=tokenComment,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=tokenBase,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(wordRegexp(["nan","NaN","inf","Inf"])))return"number";var t=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return t?t[1]?"string":"error":e.match(keywords)?"keyword":e.match(builtins)?"builtin":e.match(identifiers)?"variable":e.match(singleOperators)||e.match(doubleOperators)?"operator":e.match(singleDelimiters)||e.match(doubleDelimiters)||e.match(tripleDelimiters)?null:e.match(expressionEnd)?(n.tokenize=tokenTranspose,null):(e.next(),"error")}const octave={startState:function(){return{tokenize:tokenBase}},token:function(e,n){e=n.tokenize(e,n);return"number"!==e&&"variable"!==e||(n.tokenize=tokenTranspose),e},languageData:{commentTokens:{line:"%"}}};export{octave};
|
1
typecho/write/dist/oz-2401d70e.js
vendored
Normal file
1
typecho/write/dist/oz-2401d70e.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var singleOperators=/[\^@!\|<>#~\.\*\-\+\\/,=]/,doubleOperators=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,tripleOperators=/(:::)|(\.\.\.)|(=<:)|(>=:)/,middle=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],end=["end"],atoms=wordRegexp(["true","false","nil","unit"]),commonKeywords=wordRegexp(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),openingKeywords=wordRegexp(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),middleKeywords=wordRegexp(middle),endKeywords=wordRegexp(end);function tokenBase(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(tripleOperators)||e.match(doubleOperators))return"operator";if(e.match(atoms))return"atom";var n=e.match(openingKeywords);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=tokenFunProc:"class"==n[0]?t.tokenize=tokenClass:"meth"==n[0]&&(t.tokenize=tokenMeth),"keyword";if(e.match(middleKeywords)||e.match(commonKeywords))return"keyword";if(e.match(endKeywords))return t.currentIndent--,"keyword";n=e.next();if('"'==n||"'"==n)return t.tokenize=tokenString(n),t.tokenize(e,t);if(/[~\d]/.test(n)){if("~"==n){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==n?(e.skipToEnd(),"comment"):"/"==n&&e.eat("*")?(t.tokenize=tokenComment)(e,t):singleOperators.test(n)?"operator":(e.eatWhile(/\w/),"variable")}function tokenClass(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=tokenBase,"type")}function tokenMeth(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=tokenBase,"def")}function tokenFunProc(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=tokenBase,"def"):(t.tokenize=tokenBase,null)}function tokenComment(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=tokenBase;break}r="*"==n}return"comment"}function tokenString(a){return function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==a&&!r){o=!0;break}r=!r&&"\\"==n}return!o&&r||(t.tokenize=tokenBase),"string"}}function buildElectricInputRegEx(){var e=middle.concat(end);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}const oz={startState:function(){return{tokenize:tokenBase,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){t=t.replace(/^\s+|\s+$/g,"");return t.match(endKeywords)||t.match(middleKeywords)||t.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:buildElectricInputRegEx(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};export{oz};
|
1
typecho/write/dist/pascal-05191d71.js
vendored
Normal file
1
typecho/write/dist/pascal-05191d71.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function words(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}var keywords=words("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),atoms={null:!0},isOperatorChar=/[+\-*&%=<>!?|\/]/;function tokenBase(e,t){var r=e.next();if("#"==r&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==r||"'"==r)return t.tokenize=tokenString(r),t.tokenize(e,t);if("("==r&&e.eat("*"))return(t.tokenize=tokenComment)(e,t);if("{"==r)return(t.tokenize=tokenCommentBraces)(e,t);if(/[\[\]\(\),;\:\.]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(isOperatorChar.test(r))return e.eatWhile(isOperatorChar),"operator";e.eatWhile(/[\w\$_]/);e=e.current();return keywords.propertyIsEnumerable(e)?"keyword":atoms.propertyIsEnumerable(e)?"atom":"variable"}function tokenString(o){return function(e,t){for(var r,n=!1,a=!1;null!=(r=e.next());){if(r==o&&!n){a=!0;break}n=!n&&"\\"==r}return!a&&n||(t.tokenize=null),"string"}}function tokenComment(e,t){for(var r,n=!1;r=e.next();){if(")"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function tokenCommentBraces(e,t){for(var r;r=e.next();)if("}"==r){t.tokenize=null;break}return"comment"}const pascal={startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;t=(t.tokenize||tokenBase)(e,t);return t},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}};export{pascal};
|
1
typecho/write/dist/perl-1568efe3.js
vendored
Normal file
1
typecho/write/dist/perl-1568efe3.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/pig-5d168e86.js
vendored
Normal file
1
typecho/write/dist/pig-5d168e86.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function words(O){for(var T={},e=O.split(" "),E=0;E<e.length;++E)T[e[E]]=!0;return T}var pBuiltins="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",pKeywords="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",pTypes="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",builtins=words(pBuiltins),keywords=words(pKeywords),types=words(pTypes),isOperatorChar=/[*+\-%<>=&?:\/!|]/;function chain(O,T,e){return(T.tokenize=e)(O,T)}function tokenComment(O,T){for(var e,E=!1;e=O.next();){if("/"==e&&E){T.tokenize=tokenBase;break}E="*"==e}return"comment"}function tokenString(r){return function(O,T){for(var e,E=!1,t=!1;null!=(e=O.next());){if(e==r&&!E){t=!0;break}E=!E&&"\\"==e}return!t&&E||(T.tokenize=tokenBase),"error"}}function tokenBase(O,T){var e=O.next();return'"'==e||"'"==e?chain(O,T,tokenString(e)):/[\[\]{}\(\),;\.]/.test(e)?null:/\d/.test(e)?(O.eatWhile(/[\w\.]/),"number"):"/"==e?O.eat("*")?chain(O,T,tokenComment):(O.eatWhile(isOperatorChar),"operator"):"-"==e?O.eat("-")?(O.skipToEnd(),"comment"):(O.eatWhile(isOperatorChar),"operator"):isOperatorChar.test(e)?(O.eatWhile(isOperatorChar),"operator"):(O.eatWhile(/[\w\$_]/),keywords&&keywords.propertyIsEnumerable(O.current().toUpperCase())&&!O.eat(")")&&!O.eat(".")?"keyword":builtins&&builtins.propertyIsEnumerable(O.current().toUpperCase())?"builtin":types&&types.propertyIsEnumerable(O.current().toUpperCase())?"type":"variable")}const pig={startState:function(){return{tokenize:tokenBase,startOfLine:!0}},token:function(O,T){return O.eatSpace()?null:T.tokenize(O,T)},languageData:{autocomplete:(pBuiltins+pTypes+pKeywords).split(" ")}};export{pig};
|
1
typecho/write/dist/powershell-c9f2935d.js
vendored
Normal file
1
typecho/write/dist/powershell-c9f2935d.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/properties-c93e40cd.js
vendored
Normal file
1
typecho/write/dist/properties-c93e40cd.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
const properties={token:function(t,e){var i=t.sol()||e.afterSection,n=t.eol();if(e.afterSection=!1,i&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),n&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),i)for(;t.eatSpace(););n=t.next();return!i||"#"!==n&&"!"!==n&&";"!==n?i&&"["===n?(e.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):"="===n||":"===n?(e.position="quote",null):("\\"===n&&"quote"===e.position&&t.eol()&&(e.nextMultiline=!0),e.position):(e.position="comment",t.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}};export{properties};
|
1
typecho/write/dist/protobuf-04fc4e3b.js
vendored
Normal file
1
typecho/write/dist/protobuf-04fc4e3b.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var keywordArray=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],keywords=wordRegexp(keywordArray),identifiers=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");function tokenBase(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(keywords)?"keyword":e.match(identifiers)?"variable":(e.next(),null)}const protobuf={token:tokenBase,languageData:{autocomplete:keywordArray}};export{protobuf};
|
1
typecho/write/dist/puppet-ce3af938.js
vendored
Normal file
1
typecho/write/dist/puppet-ce3af938.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var words={},variable_regex=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function define(e,n){for(var t=n.split(" "),i=0;i<t.length;i++)words[t[i]]=e}function tokenString(e,n){for(var t,i,a=!1;!e.eol()&&(t=e.next())!=n.pending;){if("$"===t&&"\\"!=i&&'"'==n.pending){a=!0;break}i=t}return a&&e.backUp(1),t==n.pending?n.continueString=!1:n.continueString=!0,"string"}function tokenize(e,n){var t=e.match(/[\w]+/,!1),i=e.match(/(\s+)?\w+\s+=>.*/,!1),a=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),o=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),s=e.next();if("$"===s)return e.match(variable_regex)?n.continueString?"variableName.special":"variable":"error";if(n.continueString)return e.backUp(1),tokenString(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):i?(e.match(/(\s+)?\w+/),"tag"):t&&words.hasOwnProperty(t)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),"include"==t&&(n.inInclude=!0),words[t]):/(^|\s+)[A-Z][\w:_]+/.test(t)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):a?(e.match(/(\s+)?[\w:_]+/),"def"):o?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==s?(e.skipToEnd(),"comment"):"'"==s||'"'==s?(n.pending=s,tokenString(e,n)):"{"==s||"}"==s?"bracket":"/"==s?(e.match(/^[^\/]*\//),"string.special"):s.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==s?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}define("keyword","class define site node include import inherits"),define("keyword","case if else in and elsif default or"),define("atom","false true running present absent file directory undef"),define("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");const puppet={startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(e,n){return e.eatSpace()?null:tokenize(e,n)}};export{puppet};
|
1
typecho/write/dist/python-103af9e0.js
vendored
Normal file
1
typecho/write/dist/python-103af9e0.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/q-7adde666.js
vendored
Normal file
1
typecho/write/dist/q-7adde666.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var curPunc,keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),E=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function buildRE(t){return new RegExp("^("+t.join("|")+")$")}function tokenBase(t,e){var n=t.sol(),o=t.next();if(curPunc=null,n){if("/"==o)return(e.tokenize=tokenLineComment)(t,e);if("\\"==o)return t.eol()||/\s/.test(t.peek())?(t.skipToEnd(),/^\\\s*$/.test(t.current())?(e.tokenize=tokenCommentToEOF)(t):e.tokenize=tokenBase,"comment"):(e.tokenize=tokenBase,"builtin")}if(/\s/.test(o))return"/"==t.peek()?(t.skipToEnd(),"comment"):"null";if('"'==o)return(e.tokenize=tokenString)(t,e);if("`"==o)return t.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==o&&/\d/.test(t.peek())||/\d/.test(o)){e=null;return t.backUp(1),t.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||t.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||t.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||t.match(/^\d+[ptuv]{1}/)?e="temporal":(t.match(/^0[NwW]{1}/)||t.match(/^0x[\da-fA-F]*/)||t.match(/^[01]+[b]{1}/)||t.match(/^\d+[chijn]{1}/)||t.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(e="number"),!e||(o=t.peek())&&!E.test(o)?(t.next(),"error"):e}return/[A-Za-z]|\./.test(o)?(t.eatWhile(/[A-Za-z._\d]/),keywords.test(t.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(o)||/[{}\(\[\]\)]/.test(o)?null:"error"}function tokenLineComment(t,e){return t.skipToEnd(),/\/\s*$/.test(t.current())?(e.tokenize=tokenBlockComment)(t,e):e.tokenize=tokenBase,"comment"}function tokenBlockComment(t,e){var n=t.sol()&&"\\"==t.peek();return t.skipToEnd(),n&&/^\\\s*$/.test(t.current())&&(e.tokenize=tokenBase),"comment"}function tokenCommentToEOF(t){return t.skipToEnd(),"comment"}function tokenString(t,e){for(var n,o=!1,r=!1;n=t.next();){if('"'==n&&!o){r=!0;break}o=!o&&"\\"==n}return r&&(e.tokenize=tokenBase),"string"}function pushContext(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function popContext(t){t.indent=t.context.indent,t.context=t.context.prev}const q={startState:function(){return{tokenize:tokenBase,context:null,indent:0,col:0}},token:function(t,e){t.sol()&&(e.context&&null==e.context.align&&(e.context.align=!1),e.indent=t.indentation());var n=e.tokenize(t,e);if("comment"!=n&&e.context&&null==e.context.align&&"pattern"!=e.context.type&&(e.context.align=!0),"("==curPunc)pushContext(e,")",t.column());else if("["==curPunc)pushContext(e,"]",t.column());else if("{"==curPunc)pushContext(e,"}",t.column());else if(/[\]\}\)]/.test(curPunc)){for(;e.context&&"pattern"==e.context.type;)popContext(e);e.context&&curPunc==e.context.type&&popContext(e)}else"."==curPunc&&e.context&&"pattern"==e.context.type?popContext(e):/atom|string|variable/.test(n)&&e.context&&(/[\}\]]/.test(e.context.type)?pushContext(e,"pattern",t.column()):"pattern"!=e.context.type||e.context.align||(e.context.align=!0,e.context.col=t.column()));return n},indent:function(t,e,n){var e=e&&e.charAt(0),o=t.context;if(/[\]\}]/.test(e))for(;o&&"pattern"==o.type;)o=o.prev;e=o&&e==o.type;return o?"pattern"==o.type?o.col:o.align?o.col+(e?0:1):o.indent+(e?0:n.unit):0}};export{q};
|
1
typecho/write/dist/r-5c65ce1c.js
vendored
Normal file
1
typecho/write/dist/r-5c65ce1c.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function wordObj(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=!0;return e}var curPunc,commonAtoms=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],commonBuiltins=["list","quote","bquote","eval","return","call","parse","deparse"],commonKeywords=["if","else","repeat","while","function","for","in","next","break"],commonBlockKeywords=["if","else","repeat","while","function","for"],atoms=wordObj(commonAtoms),builtins=wordObj(commonBuiltins),keywords=wordObj(commonKeywords),blockkeywords=wordObj(commonBlockKeywords),opChars=/[+\-*\/^<>=!&|~$:]/;function tokenBase(t,e){curPunc=null;var n=t.next();if("#"==n)return t.skipToEnd(),"comment";if("0"==n&&t.eat("x"))return t.eatWhile(/[\da-f]/i),"number";if("."==n&&t.eat(/\d/))return t.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(n))return t.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==n||'"'==n)return e.tokenize=tokenString(n),"string";if("`"==n)return t.match(/[^`]+`/),"string.special";if("."==n&&t.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(n)&&"_"!=n){t.eatWhile(/[\w\.]/);var r=t.current();return atoms.propertyIsEnumerable(r)?"atom":keywords.propertyIsEnumerable(r)?(blockkeywords.propertyIsEnumerable(r)&&!t.match(/\s*if(\s+|$)/,!1)&&(curPunc="block"),"keyword"):builtins.propertyIsEnumerable(r)?"builtin":"variable"}return"%"==n?(t.skipTo("%")&&t.next(),"variableName.special"):"<"==n&&t.eat("-")||"<"==n&&t.match("<-")||"-"==n&&t.match(/>>?/)||"="==n&&e.ctx.argList?"operator":opChars.test(n)?("$"==n||t.eatWhile(opChars),"operator"):/[\(\){}\[\];]/.test(n)&&";"==(curPunc=n)?"punctuation":null}function tokenString(o){return function(t,e){if(t.eat("\\")){var n=t.next();return"x"==n?t.match(/^[a-f0-9]{2}/i):("u"==n||"U"==n)&&t.eat("{")&&t.skipTo("}")?t.next():"u"==n?t.match(/^[a-f0-9]{4}/i):"U"==n?t.match(/^[a-f0-9]{8}/i):/[0-7]/.test(n)&&t.match(/^[0-7]{1,2}/),"string.special"}for(var r;null!=(r=t.next());){if(r==o){e.tokenize=tokenBase;break}if("\\"==r){t.backUp(1);break}}return"string"}}var ALIGN_YES=1,ALIGN_NO=2,BRACELESS=4;function push(t,e,n){t.ctx={type:e,indent:t.indent,flags:0,column:n.column(),prev:t.ctx}}function setFlag(t,e){var n=t.ctx;t.ctx={type:n.type,indent:n.indent,flags:n.flags|e,column:n.column,prev:n.prev}}function pop(t){t.indent=t.ctx.indent,t.ctx=t.ctx.prev}const r={startState:function(t){return{tokenize:tokenBase,ctx:{type:"top",indent:-t,flags:ALIGN_NO},indent:0,afterIdent:!1}},token:function(t,e){if(t.sol()&&(0==(3&e.ctx.flags)&&(e.ctx.flags|=ALIGN_NO),e.ctx.flags&BRACELESS&&pop(e),e.indent=t.indentation()),t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"!=n&&0==(e.ctx.flags&ALIGN_NO)&&setFlag(e,ALIGN_YES),";"!=curPunc&&"{"!=curPunc&&"}"!=curPunc||"block"!=e.ctx.type||pop(e),"{"==curPunc?push(e,"}",t):"("==curPunc?(push(e,")",t),e.afterIdent&&(e.ctx.argList=!0)):"["==curPunc?push(e,"]",t):"block"==curPunc?push(e,"block",t):curPunc==e.ctx.type?pop(e):"block"==e.ctx.type&&"comment"!=n&&setFlag(e,BRACELESS),e.afterIdent="variable"==n||"keyword"==n,n},indent:function(t,e,n){if(t.tokenize!=tokenBase)return 0;var r=e&&e.charAt(0),e=t.ctx,t=r==e.type;return"block"==(e=e.flags&BRACELESS?e.prev:e).type?e.indent+("{"==r?0:n.unit):e.flags&ALIGN_YES?e.column+(t?0:1):e.indent+(t?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:commonAtoms.concat(commonBuiltins,commonKeywords)}};export{r};
|
1
typecho/write/dist/rpm-c892928b.js
vendored
Normal file
1
typecho/write/dist/rpm-c892928b.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var headerSeparator=/^-+$/,headerLine=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,simpleEmail=/^[\w+.-]+@[\w.-]+/;const rpmChanges={token:function(r){if(r.sol()){if(r.match(headerSeparator))return"tag";if(r.match(headerLine))return"tag"}return r.match(simpleEmail)?"string":(r.next(),null)}};var arch=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,preamble=/^[a-zA-Z0-9()]+:/,section=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,control_flow_complex=/^%(ifnarch|ifarch|if)/,control_flow_simple=/^%(else|endif)/,operators=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const rpmSpec={startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,e){if("#"==r.peek())return r.skipToEnd(),"comment";if(r.sol()){if(r.match(preamble))return"header";if(r.match(section))return"atom"}if(r.match(/^\$\w+/))return"def";if(r.match(/^\$\{\w+\}/))return"def";if(r.match(control_flow_simple))return"keyword";if(r.match(control_flow_complex))return e.controlFlow=!0,"keyword";if(e.controlFlow){if(r.match(operators))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(e.controlFlow=!1)}if(r.match(arch))return r.eol()&&(e.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(e.macroParameters=!0),"keyword";if(e.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return e.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(e.controlFlow=!1),"def"):(r.next(),null)}};export{rpmChanges,rpmSpec};
|
1
typecho/write/dist/ruby-21600654.js
vendored
Normal file
1
typecho/write/dist/ruby-21600654.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/sas-3cd85309.js
vendored
Normal file
1
typecho/write/dist/sas-3cd85309.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/scheme-9512b48c.js
vendored
Normal file
1
typecho/write/dist/scheme-9512b48c.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/shell-c1b04770.js
vendored
Normal file
1
typecho/write/dist/shell-c1b04770.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var words={};function define(e,t){for(var n=0;n<t.length;n++)words[t[n]]=e}var commonAtoms=["true","false"],commonKeywords=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],commonCommands=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function tokenBase(e,t){if(e.eatSpace())return null;var n=e.sol(),o=e.next();if("\\"===o)return e.next(),null;if("'"===o||'"'===o||"`"===o)return t.tokens.unshift(tokenString(o,"`"===o?"quote":"string")),tokenize(e,t);if("#"===o)return n&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===o)return t.tokens.unshift(tokenDollar),tokenize(e,t);if("+"===o||"="===o)return"operator";if("-"===o)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==o){if(e.match("<<"))return"operator";n=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(n)return t.tokens.unshift(tokenHeredoc(n[1])),"string.special"}if(/\d/.test(o)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);o=e.current();return"="===e.peek()&&/\w+/.test(o)?"def":words.hasOwnProperty(o)?words[o]:null}function tokenString(r,s){var i="("==r?")":"{"==r?"}":r;return function(e,t){for(var n,o=!1;null!=(n=e.next());){if(n===i&&!o){t.tokens.shift();break}if("$"===n&&!o&&"'"!==r&&e.peek()!=i){o=!0,e.backUp(1),t.tokens.unshift(tokenDollar);break}if(!o&&r!==i&&n===r)return t.tokens.unshift(tokenString(r,s)),tokenize(e,t);if(!o&&/['"]/.test(n)&&!/['"]/.test(r)){t.tokens.unshift(tokenStringStart(n,"string")),e.backUp(1);break}o=!o&&"\\"===n}return s}}function tokenStringStart(n,o){return function(e,t){return t.tokens[0]=tokenString(n,o),e.next(),tokenize(e,t)}}define("atom",commonAtoms),define("keyword",commonKeywords),define("builtin",commonCommands);var tokenDollar=function(e,t){1<t.tokens.length&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=tokenString(n,"("==n?"quote":"{"==n?"def":"string"),tokenize(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function tokenHeredoc(n){return function(e,t){return e.sol()&&e.string==n&&t.tokens.shift(),e.skipToEnd(),"string.special"}}function tokenize(e,t){return(t.tokens[0]||tokenBase)(e,t)}const shell={startState:function(){return{tokens:[]}},token:function(e,t){return tokenize(e,t)},languageData:{autocomplete:commonAtoms.concat(commonKeywords,commonCommands),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};export{shell};
|
1
typecho/write/dist/sieve-1e0e521e.js
vendored
Normal file
1
typecho/write/dist/sieve-1e0e521e.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function words(e){for(var n={},t=e.split(" "),r=0;r<t.length;++r)n[t[r]]=!0;return n}var keywords=words("if elsif else stop require"),atoms=words("true false not");function tokenBase(e,n){var t=e.next();if("/"==t&&e.eat("*"))return(n.tokenize=tokenCComment)(e,n);if("#"===t)return e.skipToEnd(),"comment";if('"'==t)return n.tokenize=tokenString(t),n.tokenize(e,n);if("("==t)return n._indent.push("("),n._indent.push("{"),null;if("{"===t)return n._indent.push("{"),null;if(")"==t&&(n._indent.pop(),n._indent.pop()),"}"===t)return n._indent.pop(),null;if(","==t)return null;if(";"==t)return null;if(/[{}\(\),;]/.test(t))return null;if(/\d/.test(t))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==t)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);t=e.current();return"text"==t&&e.eat(":")?(n.tokenize=tokenMultiLineString,"string"):keywords.propertyIsEnumerable(t)?"keyword":atoms.propertyIsEnumerable(t)?"atom":null}function tokenMultiLineString(e,n){return n._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(n._multiLineString=!1,n.tokenize=tokenBase),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function tokenCComment(e,n){for(var t,r=!1;null!=(t=e.next());){if(r&&"/"==t){n.tokenize=tokenBase;break}r="*"==t}return"comment"}function tokenString(i){return function(e,n){for(var t,r=!1;null!=(t=e.next())&&(t!=i||r);)r=!r&&"\\"==t;return r||(n.tokenize=tokenBase),"string"}}const sieve={startState:function(e){return{tokenize:tokenBase,baseIndent:e||0,_indent:[]}},token:function(e,n){return e.eatSpace()?null:(n.tokenize||tokenBase)(e,n)},indent:function(e,n,t){e=e._indent.length;return n&&"}"==n[0]&&e--,(e=e<0?0:e)*t.unit},languageData:{indentOnInput:/^\s*\}$/}};export{sieve};
|
1
typecho/write/dist/simple-mode-3ccd66eb.js
vendored
Normal file
1
typecho/write/dist/simple-mode-3ccd66eb.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function simpleMode(t){ensureState(t,"start");var n,e={},a=t.languageData||{},r=!1;for(n in t)if(n!=a&&t.hasOwnProperty(n))for(var i=e[n]=[],o=t[n],s=0;s<o.length;s++){var u=o[s];i.push(new Rule(u,t)),(u.indent||u.dedent)&&(r=!0)}return{startState:function(){return{state:"start",pending:null,indent:r?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,indent:t.indent&&t.indent.slice(0)};return t.stack&&(n.stack=t.stack.slice(0)),n},token:tokenFunction(e),indent:indentFunction(e,a),languageData:a}}function ensureState(t,n){if(!t.hasOwnProperty(n))throw new Error("Undefined state "+n+" in simple mode")}function toRegex(t,n){if(!t)return/(?:)/;var e="";return t=t instanceof RegExp?(t.ignoreCase&&(e="i"),t.source):String(t),new RegExp((!1===n?"":"^")+"(?:"+t+")",e)}function asToken(t){if(!t)return null;if(t.apply)return t;if("string"==typeof t)return t.replace(/\./g," ");for(var n=[],e=0;e<t.length;e++)n.push(t[e]&&t[e].replace(/\./g," "));return n}function Rule(t,n){(t.next||t.push)&&ensureState(n,t.next||t.push),this.regex=toRegex(t.regex),this.token=asToken(t.token),this.data=t}function tokenFunction(d){return function(t,n){if(n.pending){var e=n.pending.shift();return 0==n.pending.length&&(n.pending=null),t.pos+=e.text.length,e.token}for(var a=d[n.state],r=0;r<a.length;r++){var i=a[r],o=(!i.data.sol||t.sol())&&t.match(i.regex);if(o){i.data.next?n.state=i.data.next:i.data.push?((n.stack||(n.stack=[])).push(n.state),n.state=i.data.push):i.data.pop&&n.stack&&n.stack.length&&(n.state=n.stack.pop()),i.data.indent&&n.indent.push(t.indentation()+t.indentUnit),i.data.dedent&&n.indent.pop();var s=i.token;if(s&&s.apply&&(s=s(o)),2<o.length&&i.token&&"string"!=typeof i.token){n.pending=[];for(var u=2;u<o.length;u++)o[u]&&n.pending.push({text:o[u],token:i.token[u-1]});return t.backUp(o[0].length-(o[1]?o[1].length:0)),s[0]}return s&&s.join?s[0]:s}}return t.next(),null}}function indentFunction(s,u){return function(t,n){if(null==t.indent||u.dontIndentStates&&-1<u.doneIndentState.indexOf(t.state))return null;var e=t.indent.length-1,a=s[t.state];t:for(;;){for(var r=0;r<a.length;r++){var i=a[r];if(i.data.dedent&&!1!==i.data.dedentIfLineStart){var o=i.regex.exec(n);if(o&&o[0]){e--,(i.next||i.push)&&(a=s[i.next||i.push]),n=n.slice(o[0].length);continue t}}}break}return e<0?0:t.indent[e]}}export{simpleMode as s};
|
1
typecho/write/dist/smalltalk-e6b766b8.js
vendored
Normal file
1
typecho/write/dist/smalltalk-e6b766b8.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var specialChars=/[+\-\/\\*~<>=@%|&?!.,:;^]/,keywords=/true|false|nil|self|super|thisContext/,Context=function(e,t){this.next=e,this.parent=t},Token=function(e,t,n){this.name=e,this.context=t,this.eos=n},State=function(){this.context=new Context(next,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};State.prototype.userIndent=function(e,t){this.userIndentationDelta=0<e?e/t-this.indentation:0};var next=function(e,t,n){var a=new Token(null,t,!1),i=e.next();return'"'===i?a=nextComment(e,new Context(nextComment,t)):"'"===i?a=nextString(e,new Context(nextString,t)):"#"===i?"'"===e.peek()?(e.next(),a=nextSymbol(e,new Context(nextSymbol,t))):e.eatWhile(/[^\s.{}\[\]()]/)?a.name="string.special":a.name="meta":"$"===i?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),a.name="string.special"):"|"===i&&n.expectVariable?a.context=new Context(nextTemporaries,t):/[\[\]{}()]/.test(i)?(a.name="bracket",a.eos=/[\[{(]/.test(i),"["===i?n.indentation++:"]"===i&&(n.indentation=Math.max(0,n.indentation-1))):specialChars.test(i)?(e.eatWhile(specialChars),a.name="operator",a.eos=";"!==i):/\d/.test(i)?(e.eatWhile(/[\w\d]/),a.name="number"):/[\w_]/.test(i)?(e.eatWhile(/[\w\d_]/),a.name=n.expectVariable?keywords.test(e.current())?"keyword":"variable":null):a.eos=n.expectVariable,a},nextComment=function(e,t){return e.eatWhile(/[^"]/),new Token("comment",e.eat('"')?t.parent:t,!0)},nextString=function(e,t){return e.eatWhile(/[^']/),new Token("string",e.eat("'")?t.parent:t,!1)},nextSymbol=function(e,t){return e.eatWhile(/[^']/),new Token("string.special",e.eat("'")?t.parent:t,!1)},nextTemporaries=function(e,t){var n=new Token(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const smalltalk={startState:function(){return new State},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;e=t.context.next(e,t.context,t);return t.context=e.context,t.expectVariable=e.eos,e.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){t=e.context.next===next&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+t)*n.unit},languageData:{indentOnInput:/^\s*\]$/}};export{smalltalk};
|
1
typecho/write/dist/solr-5597a2d7.js
vendored
Normal file
1
typecho/write/dist/solr-5597a2d7.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var isStringChar=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,isOperatorChar=/[\|\!\+\-\*\?\~\^\&]/,isOperatorString=/^(OR|AND|NOT|TO)$/i;function isNumber(t){return parseFloat(t).toString()===t}function tokenString(o){return function(t,e){for(var n,r=!1;null!=(n=t.next())&&(n!=o||r);)r=!r&&"\\"==n;return r||(e.tokenize=tokenBase),"string"}}function tokenOperator(n){return function(t,e){return"|"==n?t.eat(/\|/):"&"==n&&t.eat(/\&/),e.tokenize=tokenBase,"operator"}}function tokenWord(r){return function(t,e){for(var n=r;(r=t.peek())&&null!=r.match(isStringChar);)n+=t.next();return e.tokenize=tokenBase,isOperatorString.test(n)?"operator":isNumber(n)?"number":":"==t.peek()?"propertyName":"string"}}function tokenBase(t,e){var n=t.next();return'"'==n?e.tokenize=tokenString(n):isOperatorChar.test(n)?e.tokenize=tokenOperator(n):isStringChar.test(n)&&(e.tokenize=tokenWord(n)),e.tokenize!=tokenBase?e.tokenize(t,e):null}const solr={startState:function(){return{tokenize:tokenBase}},token:function(t,e){return t.eatSpace()?null:e.tokenize(t,e)}};export{solr};
|
1
typecho/write/dist/sparql-fc490387.js
vendored
Normal file
1
typecho/write/dist/sparql-fc490387.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var curPunc;function wordRegexp(t){return new RegExp("^(?:"+t.join("|")+")$","i")}var ops=wordRegexp(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),keywords=wordRegexp(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load"]),operatorChars=/[*+\-<>=&|\^\/!\?]/;function tokenBase(t,e){var n=t.next();if(curPunc=null,"$"==n||"?"==n)return"?"==n&&t.match(/\s/,!1)?"operator":(t.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"!=n||t.match(/^[\s\u00a0=]/,!1)){if('"'==n||"'"==n)return e.tokenize=tokenLiteral(n),e.tokenize(t,e);if(/[{}\(\),\.;\[\]]/.test(n))return curPunc=n,"bracket";if("#"==n)return t.skipToEnd(),"comment";if("^"===n)return"^"===(n=t.peek())?t.eat("^"):t.eatWhile(operatorChars),"operator";if(operatorChars.test(n))return t.eatWhile(operatorChars),"operator";if(":"==n)return eatPnLocal(t),"atom";if("@"==n)return t.eatWhile(/[a-z\d\-]/i),"meta";if(t.eatWhile(/[_\w\d]/),t.eat(":"))return eatPnLocal(t),"atom";n=t.current();return ops.test(n)?"builtin":keywords.test(n)?"keyword":"variable"}return t.match(/^[^\s\u00a0>]*>?/),"atom"}function eatPnLocal(t){for(;t.match(/([:\w\d._-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-fA-F0-9][a-fA-F0-9])/););}function tokenLiteral(o){return function(t,e){for(var n,r=!1;null!=(n=t.next());){if(n==o&&!r){e.tokenize=tokenBase;break}r=!r&&"\\"==n}return"string"}}function pushContext(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function popContext(t){t.indent=t.context.indent,t.context=t.context.prev}const sparql={startState:function(){return{tokenize:tokenBase,context:null,indent:0,col:0}},token:function(t,e){if(t.sol()&&(e.context&&null==e.context.align&&(e.context.align=!1),e.indent=t.indentation()),t.eatSpace())return null;var n=e.tokenize(t,e);if("comment"!=n&&e.context&&null==e.context.align&&"pattern"!=e.context.type&&(e.context.align=!0),"("==curPunc)pushContext(e,")",t.column());else if("["==curPunc)pushContext(e,"]",t.column());else if("{"==curPunc)pushContext(e,"}",t.column());else if(/[\]\}\)]/.test(curPunc)){for(;e.context&&"pattern"==e.context.type;)popContext(e);e.context&&curPunc==e.context.type&&(popContext(e),"}"==curPunc&&e.context&&"pattern"==e.context.type&&popContext(e))}else"."==curPunc&&e.context&&"pattern"==e.context.type?popContext(e):/atom|string|variable/.test(n)&&e.context&&(/[\}\]]/.test(e.context.type)?pushContext(e,"pattern",t.column()):"pattern"!=e.context.type||e.context.align||(e.context.align=!0,e.context.col=t.column()));return n},indent:function(t,e,n){var e=e&&e.charAt(0),r=t.context;if(/[\]\}]/.test(e))for(;r&&"pattern"==r.type;)r=r.prev;e=r&&e==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(e?0:1):r.indent+(e?0:n.unit):0},languageData:{commentTokens:{line:"#"}}};export{sparql};
|
1
typecho/write/dist/spreadsheet-9174e23d.js
vendored
Normal file
1
typecho/write/dist/spreadsheet-9174e23d.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
const spreadsheet={startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var a=e.peek();switch(a){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(a)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}};export{spreadsheet};
|
1
typecho/write/dist/sql-fbfc84a5.js
vendored
Normal file
1
typecho/write/dist/sql-fbfc84a5.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/stex-9c1a0609.js
vendored
Normal file
1
typecho/write/dist/stex-9c1a0609.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function mkStex(t){function a(t,e){t.cmdState.push(e)}function i(t){return 0<t.cmdState.length?t.cmdState[t.cmdState.length-1]:null}function e(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var c={};function u(t,e){t.f=e}function r(t,e){if(t.match(/^\\[a-zA-Z@]+/)){var n,r=t.current().slice(1);return a(e,n=new(n=c.hasOwnProperty(r)?c[r]:c.DEFAULT)),u(e,m),n.style}if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return u(e,function(t,e){return o(t,e,"\\]")}),"keyword";if(t.match("\\("))return u(e,function(t,e){return o(t,e,"\\)")}),"keyword";if(t.match("$$"))return u(e,function(t,e){return o(t,e,"$$")}),"keyword";if(t.match("$"))return u(e,function(t,e){return o(t,e,"$")}),"keyword";r=t.next();return"%"==r?(t.skipToEnd(),"comment"):"}"==r||"]"==r?(n=i(e))?(n.closeBracket(r),u(e,m),"bracket"):"error":"{"==r||"["==r?(a(e,n=new(n=c.DEFAULT)),"bracket"):/\d/.test(r)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),"begin"==(n=function(t){for(var e=t.cmdState,n=e.length-1;0<=n;n--){var r=e[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(e)).name&&(n.argument=t.current()),n.styleIdentifier())}function o(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return u(e,r),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variableName.special";if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/]/))return"tag";if(t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";e=t.next();return"{"==e||"}"==e||"["==e||"]"==e||"("==e||")"==e?"bracket":"%"==e?(t.skipToEnd(),"comment"):"error"}function m(t,e){var n=t.peek();return"{"==n||"["==n?(i(e).openBracket(n),t.eat(n),u(e,r),"bracket"):/[ \t\r]/.test(n)?(t.eat(n),null):(u(e,r),(n=(n=e).cmdState.pop())&&n.closeBracket(),r(t,e))}return c.importmodule=e("importmodule","tag",["string","builtin"]),c.documentclass=e("documentclass","tag",["","atom"]),c.usepackage=e("usepackage","tag",["atom"]),c.begin=e("begin","tag",["atom"]),c.end=e("end","tag",["atom"]),c.label=e("label","tag",["atom"]),c.ref=e("ref","tag",["atom"]),c.eqref=e("eqref","tag",["atom"]),c.cite=e("cite","tag",["atom"]),c.bibitem=e("bibitem","tag",["atom"]),c.Bibitem=e("Bibitem","tag",["atom"]),c.RBibitem=e("RBibitem","tag",["atom"]),c.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t?function(t,e){return o(t,e)}:r}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=r,t.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const stex=mkStex(!1),stexMath=mkStex(!0);export{stex,stexMath};
|
1
typecho/write/dist/stylus-6249521d.js
vendored
Normal file
1
typecho/write/dist/stylus-6249521d.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/swift-7fa7f33a.js
vendored
Normal file
1
typecho/write/dist/swift-7fa7f33a.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function wordSet(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var keywords=wordSet(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),definingKeywords=wordSet(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),atoms=wordSet(["true","false","nil","self","super","_"]),types=wordSet(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),operators="+-/*%=|&<>~^?!",punc=":;,.(){}[]",binary=/^\-?0b[01][01_]*/,octal=/^\-?0o[0-7][0-7_]*/,hexadecimal=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,decimal=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,identifier=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,property=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,instruction=/^\#[A-Za-z]+/,attribute=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function tokenBase(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r=e.peek();if("/"==r){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(tokenComment),tokenComment(e,t)}if(e.match(instruction))return"builtin";if(e.match(attribute))return"attribute";if(e.match(binary))return"number";if(e.match(octal))return"number";if(e.match(hexadecimal))return"number";if(e.match(decimal))return"number";if(e.match(property))return"property";if(-1<operators.indexOf(r))return e.next(),"operator";if(-1<punc.indexOf(r))return e.next(),e.match(".."),"punctuation";if(r=e.match(/("""|"|')/)){var i=tokenString.bind(null,r[0]);return t.tokenize.push(i),i(e,t)}if(e.match(identifier)){i=e.current();return types.hasOwnProperty(i)?"type":atoms.hasOwnProperty(i)?"atom":keywords.hasOwnProperty(i)?(definingKeywords.hasOwnProperty(i)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function tokenUntilClosingParen(){var r=0;return function(e,t,n){n=tokenBase(e,t,n);if("punctuation"==n)if("("==e.current())++r;else if(")"==e.current()){if(0==r)return e.backUp(1),t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t);--r}return n}}function tokenString(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(tokenUntilClosingParen()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function tokenComment(e,t){for(var n;e.match(/^[^/*]+/,!0),n=e.next();)"/"===n&&e.eat("*")?t.tokenize.push(tokenComment):"*"===n&&e.eat("/")&&t.tokenize.pop();return"comment"}function Context(e,t,n){this.prev=e,this.align=t,this.indented=n}function pushContext(e,t){t=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new Context(e.context,t,e.indented)}function popContext(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}const swift={startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||tokenBase)(e,t,n);return r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"!=r||(n=/[\(\[\{]|([\]\)\}])/.exec(e.current()))&&(n[1]?popContext:pushContext)(t,e),r},indent:function(e,t,n){e=e.context;if(!e)return 0;t=/^[\]\}\)]/.test(t);return null!=e.align?e.align-(t?1:0):e.indented+(t?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}};export{swift};
|
1
typecho/write/dist/tcl-64088cb9.js
vendored
Normal file
1
typecho/write/dist/tcl-64088cb9.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function parseWords(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}var keywords=parseWords("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),functions=parseWords("if elseif else and not or eq ne in ni for foreach while switch"),isOperatorChar=/[+\-*&%=<>!?^\/\|]/;function chain(e,r,t){return(r.tokenize=t)(e,r)}function tokenBase(e,r){var t=r.beforeParams;r.beforeParams=!1;var n=e.next();if('"'!=n&&"'"!=n||!r.inParams){if(/[\[\]{}\(\),;\.]/.test(n))return"("==n&&t?r.inParams=!0:")"==n&&(r.inParams=!1),null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("#"==n)return e.eat("*")?chain(e,r,tokenComment):"#"==n&&e.match(/ *\[ *\[/)?chain(e,r,tokenUnparsed):(e.skipToEnd(),"comment");if('"'==n)return e.skipTo(/"/),"comment";if("$"==n)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),r.beforeParams=!0,"builtin";if(isOperatorChar.test(n))return e.eatWhile(isOperatorChar),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);t=e.current().toLowerCase();return keywords&&keywords.propertyIsEnumerable(t)?"keyword":functions&&functions.propertyIsEnumerable(t)?(r.beforeParams=!0,"keyword"):null}return chain(e,r,tokenString(n))}function tokenString(o){return function(e,r){for(var t,n=!1,a=!1;null!=(t=e.next());){if(t==o&&!n){a=!0;break}n=!n&&"\\"==t}return a&&(r.tokenize=tokenBase),"string"}}function tokenComment(e,r){for(var t,n=!1;t=e.next();){if("#"==t&&n){r.tokenize=tokenBase;break}n="*"==t}return"comment"}function tokenUnparsed(e,r){for(var t,n=0;t=e.next();){if("#"==t&&2==n){r.tokenize=tokenBase;break}"]"==t?n++:" "!=t&&(n=0)}return"meta"}const tcl={startState:function(){return{tokenize:tokenBase,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{commentTokens:{line:"#"}}};export{tcl};
|
1
typecho/write/dist/textile-b43085a6.js
vendored
Normal file
1
typecho/write/dist/textile-b43085a6.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/tiddlywiki-719a9b51.js
vendored
Normal file
1
typecho/write/dist/tiddlywiki-719a9b51.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var textwords={},keywords={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},isSpaceName=/[\w_\-]/i,reHR=/^\-\-\-\-+$/,reWikiCommentStart=/^\/\*\*\*$/,reWikiCommentStop=/^\*\*\*\/$/,reBlockQuote=/^<<<$/,reJsCodeStart=/^\/\/\{\{\{$/,reJsCodeStop=/^\/\/\}\}\}$/,reXmlCodeStart=/^<!--\{\{\{-->$/,reXmlCodeStop=/^<!--\}\}\}-->$/,reCodeBlockStart=/^\{\{\{$/,reCodeBlockStop=/^\}\}\}$/,reUntilCodeStop=/.*?\}\}\}/;function chain(e,t,r){return(t.tokenize=r)(e,t)}function tokenBase(e,t){var r=e.sol(),n=e.peek();if(t.block=!1,r&&/[<\/\*{}\-]/.test(n)){if(e.match(reCodeBlockStart))return t.block=!0,chain(e,t,twTokenCode);if(e.match(reBlockQuote))return"quote";if(e.match(reWikiCommentStart)||e.match(reWikiCommentStop))return"comment";if(e.match(reJsCodeStart)||e.match(reJsCodeStop)||e.match(reXmlCodeStart)||e.match(reXmlCodeStop))return"comment";if(e.match(reHR))return"contentSeparator"}if(e.next(),r&&/[\/\*!#;:>|]/.test(n)){if("!"==n)return e.skipToEnd(),"header";if("*"==n)return e.eatWhile("*"),"comment";if("#"==n)return e.eatWhile("#"),"comment";if(";"==n)return e.eatWhile(";"),"comment";if(":"==n)return e.eatWhile(":"),"comment";if(">"==n)return e.eatWhile(">"),"quote";if("|"==n)return"header"}if("{"==n&&e.match("{{"))return chain(e,t,twTokenCode);if(/[hf]/i.test(n)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==n)return"string";if("~"==n)return"brace";if(/[\[\]]/.test(n)&&e.match(n))return"brace";if("@"==n)return e.eatWhile(isSpaceName),"link";if(/\d/.test(n))return e.eatWhile(/\d/),"number";if("/"==n){if(e.eat("%"))return chain(e,t,twTokenComment);if(e.eat("/"))return chain(e,t,twTokenEm)}if("_"==n&&e.eat("_"))return chain(e,t,twTokenUnderline);if("-"==n&&e.eat("-")){if(" "!=e.peek())return chain(e,t,twTokenStrike);if(" "==e.peek())return"brace"}return"'"==n&&e.eat("'")?chain(e,t,twTokenStrong):"<"==n&&e.eat("<")?chain(e,t,twTokenMacro):(e.eatWhile(/[\w\$_]/),textwords.propertyIsEnumerable(e.current())?"keyword":null)}function twTokenComment(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=tokenBase;break}n="%"==r}return"comment"}function twTokenStrong(e,t){for(var r,n=!1;r=e.next();){if("'"==r&&n){t.tokenize=tokenBase;break}n="'"==r}return"strong"}function twTokenCode(e,t){var r=t.block;return r&&e.current()||(!r&&e.match(reUntilCodeStop)||r&&e.sol()&&e.match(reCodeBlockStop)?t.tokenize=tokenBase:e.next()),"comment"}function twTokenEm(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=tokenBase;break}n="/"==r}return"emphasis"}function twTokenUnderline(e,t){for(var r,n=!1;r=e.next();){if("_"==r&&n){t.tokenize=tokenBase;break}n="_"==r}return"link"}function twTokenStrike(e,t){for(var r,n=!1;r=e.next();){if("-"==r&&n){t.tokenize=tokenBase;break}n="-"==r}return"deleted"}function twTokenMacro(e,t){if("<<"==e.current())return"meta";var r=e.next();return r?">"==r&&">"==e.peek()?(e.next(),t.tokenize=tokenBase,"meta"):(e.eatWhile(/[\w\$_]/),keywords.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=tokenBase,null)}const tiddlyWiki={startState:function(){return{tokenize:tokenBase}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}};export{tiddlyWiki};
|
1
typecho/write/dist/tiki-c7f18a22.js
vendored
Normal file
1
typecho/write/dist/tiki-c7f18a22.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function inBlock(n,r,i){return function(t,e){for(;!t.eol();){if(t.match(r)){e.tokenize=inText;break}t.next()}return i&&(e.tokenize=i),n}}function inLine(n){return function(t,e){for(;!t.eol();)t.next();return e.tokenize=inText,n}}function inText(e,n){function t(t){return(n.tokenize=t)(e,n)}var r=e.sol(),i=e.next();switch(i){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),n.tokenize=inPlugin,"tag";case"_":if(e.eat("_"))return t(inBlock("strong","__",inText));break;case"'":if(e.eat("'"))return t(inBlock("em","''",inText));break;case"(":if(e.eat("("))return t(inBlock("link","))",inText));break;case"[":return t(inBlock("url","]",inText));case"|":if(e.eat("|"))return t(inBlock("comment","||"));break;case"-":if(e.eat("="))return t(inBlock("header string","=-",inText));if(e.eat("-"))return t(inBlock("error tw-deleted","--",inText));break;case"=":if(e.match("=="))return t(inBlock("tw-underline","===",inText));break;case":":if(e.eat(":"))return t(inBlock("comment","::"));break;case"^":return t(inBlock("tw-box","^"));case"~":if(e.match("np~"))return t(inBlock("meta","~/np~"))}if(r)switch(i){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),t(inLine("header string"));case"*":case"#":case"+":return t(inLine("tw-listitem bracket"))}return null}var pluginName,type,curState,setStyle;function inPlugin(t,e){var n=t.next(),r=t.peek();return"}"==n?(e.tokenize=inText,"tag"):"("==n||")"==n?"bracket":"="==n?(type="equals",">"==r&&(t.next(),r=t.peek()),/[\'\"]/.test(r)||(e.tokenize=inAttributeNoQuote()),"operator"):/[\'\"]/.test(n)?(e.tokenize=inAttribute(n),e.tokenize(t,e)):(t.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function inAttribute(n){return function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=inPlugin;break}return"string"}}function inAttributeNoQuote(){return function(t,e){for(;!t.eol();){var n=t.next(),r=t.peek();if(" "==n||","==n||/[ )}]/.test(r)){e.tokenize=inPlugin;break}}return"string"}}function pass(){for(var t=arguments.length-1;0<=t;t--)curState.cc.push(arguments[t])}function cont(){return pass.apply(null,arguments),!0}function pushContext(t,e){var n=curState.context&&curState.context.noIndent;curState.context={prev:curState.context,pluginName:t,indent:curState.indented,startOfLine:e,noIndent:n}}function popContext(){curState.context&&(curState.context=curState.context.prev)}function element(t){if("openPlugin"==t)return curState.pluginName=pluginName,cont(attributes,endplugin(curState.startOfLine));if("closePlugin"!=t)return"string"==t&&(curState.context&&"!cdata"==curState.context.name||pushContext("!cdata"),curState.tokenize==inText&&popContext()),cont();t=!1;return curState.context?(t=curState.context.pluginName!=pluginName,popContext()):t=!0,t&&(setStyle="error"),cont(endcloseplugin(t))}function endplugin(e){return function(t){return"selfclosePlugin"==t||"endPlugin"==t||"endPlugin"==t&&pushContext(curState.pluginName,e),cont()}}function endcloseplugin(e){return function(t){return e&&(setStyle="error"),("endPlugin"==t?cont:pass)()}}function attributes(t){return"keyword"==t?(setStyle="attribute",cont(attributes)):"equals"==t?cont(attvalue,attributes):pass()}function attvalue(t){return"keyword"==t?(setStyle="string",cont()):"string"==t?cont(attvaluemaybe):pass()}function attvaluemaybe(t){return"string"==t?cont(attvaluemaybe):pass()}const tiki={startState:function(){return{tokenize:inText,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(t,e){if(t.sol()&&(e.startOfLine=!0,e.indented=t.indentation()),t.eatSpace())return null;setStyle=type=pluginName=null;var n=e.tokenize(t,e);if((n||type)&&"comment"!=n)for(curState=e;;)if((e.cc.pop()||element)(type||n))break;return e.startOfLine=!1,setStyle||n},indent:function(t,e,n){var r=t.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(e)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}};export{tiki};
|
1
typecho/write/dist/toml-adb7882d.js
vendored
Normal file
1
typecho/write/dist/toml-adb7882d.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
const toml={startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile(function(e){return"="!=e&&" "!=e})?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):(t.lhs||!e.match(/^\d\d\d\d[\d\-\:\.T]*Z/))&&(t.lhs||!e.match("true")&&!e.match("false"))?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}};export{toml};
|
1
typecho/write/dist/troff-1f82bf74.js
vendored
Normal file
1
typecho/write/dist/troff-1f82bf74.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var words={};function tokenBase(t){if(t.eatSpace())return null;var a=t.sol(),e=t.next();if("\\"===e)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")||(t.match("m[")?(t.skipTo("]"),t.next()):t.match("s+")||t.match("s-")?t.eatWhile(/[\d-]/):(t.match("(")||t.match("*("))&&t.eatWhile(/[\w-]/)),"string";if(a&&("."===e||"'"===e)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(a&&"."===e){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);t=t.current();return words.hasOwnProperty(t)?words[t]:null}function tokenize(t,a){return(a.tokens[0]||tokenBase)(t,a)}const troff={startState:function(){return{tokens:[]}},token:function(t,a){return tokenize(t,a)}};export{troff};
|
1
typecho/write/dist/ttcn-59c626fc.js
vendored
Normal file
1
typecho/write/dist/ttcn-59c626fc.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
typecho/write/dist/ttcn-cfg-078eba3a.js
vendored
Normal file
1
typecho/write/dist/ttcn-cfg-078eba3a.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function words(t){for(var e={},n=t.split(" "),T=0;T<n.length;++T)e[n[T]]=!0;return e}const parserConfig={name:"ttcn-cfg",keywords:words("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:words("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:words("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0};var curPunc,keywords=parserConfig.keywords,fileNCtrlMaskOptions=parserConfig.fileNCtrlMaskOptions,externalCommands=parserConfig.externalCommands,multiLineStrings=parserConfig.multiLineStrings,isOperatorChar=/[\|]/;function tokenBase(t,e){var n=t.next();if('"'==n||"'"==n)return e.tokenize=tokenString(n),e.tokenize(t,e);if(/[:=]/.test(n))return curPunc=n,"punctuation";if("#"==n)return t.skipToEnd(),"comment";if(/\d/.test(n))return t.eatWhile(/[\w\.]/),"number";if(isOperatorChar.test(n))return t.eatWhile(isOperatorChar),"operator";if("["==n)return t.eatWhile(/[\w_\]]/),"number";t.eatWhile(/[\w\$_]/);t=t.current();return keywords.propertyIsEnumerable(t)?"keyword":fileNCtrlMaskOptions.propertyIsEnumerable(t)?"atom":externalCommands.propertyIsEnumerable(t)?"deleted":"variable"}function tokenString(C){return function(t,e){for(var n,T=!1,E=!1;null!=(n=t.next());){if(n==C&&!T){var r=t.peek();r&&("b"!=(r=r.toLowerCase())&&"h"!=r&&"o"!=r||t.next()),E=!0;break}T=!T&&"\\"==n}return!E&&(T||multiLineStrings)||(e.tokenize=null),"string"}}function Context(t,e,n,T,E){this.indented=t,this.column=e,this.type=n,this.align=T,this.prev=E}function pushContext(t,e,n){var T=t.indented;return t.context&&"statement"==t.context.type&&(T=t.context.indented),t.context=new Context(T,e,n,null,t.context)}function popContext(t){var e=t.context.type;return")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}const ttcnCfg={startState:function(){return{tokenize:null,context:new Context(0,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),t.eatSpace())return null;curPunc=null;var T=(e.tokenize||tokenBase)(t,e);if("comment"==T)return T;if(null==n.align&&(n.align=!0),";"!=curPunc&&":"!=curPunc&&","!=curPunc||"statement"!=n.type)if("{"==curPunc)pushContext(e,t.column(),"}");else if("["==curPunc)pushContext(e,t.column(),"]");else if("("==curPunc)pushContext(e,t.column(),")");else if("}"==curPunc){for(;"statement"==n.type;)n=popContext(e);for("}"==n.type&&(n=popContext(e));"statement"==n.type;)n=popContext(e)}else curPunc==n.type?popContext(e):(("}"==n.type||"top"==n.type)&&";"!=curPunc||"statement"==n.type&&"newstatement"==curPunc)&&pushContext(e,t.column(),"statement");else popContext(e);return e.startOfLine=!1,T},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"#"}}};export{ttcnCfg};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user