@highlightjs/cdn-assets
Advanced tools
Comparing version 11.1.0 to 11.2.0
/*! | ||
Highlight.js v11.1.0 (git: 83ad2fbd99) | ||
Highlight.js v11.2.0 (git: 2a5c592e5e) | ||
(c) 2006-2021 Ivan Sagalaev and other contributors | ||
@@ -88,7 +88,7 @@ License: BSD-3-Clause | ||
e.__beforeBegin=k,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, | ||
void 0===e.relevance&&(e.relevance=0))}function M(e,t){ | ||
Array.isArray(e.illegal)&&(e.illegal=u(...e.illegal))}function R(e,t){ | ||
void 0===e.relevance&&(e.relevance=0))}function R(e,t){ | ||
Array.isArray(e.illegal)&&(e.illegal=u(...e.illegal))}function A(e,t){ | ||
if(e.match){ | ||
if(e.begin||e.end)throw Error("begin & end are not supported with match") | ||
;e.begin=e.match,delete e.match}}function A(e,t){ | ||
;e.begin=e.match,delete e.match}}function M(e,t){ | ||
void 0===e.relevance&&(e.relevance=1)}const j=(e,t)=>{if(!e.beforeMatch)return | ||
@@ -153,4 +153,4 @@ ;if(e.starts)throw Error("beforeMatch cannot be used with starts") | ||
;if(r.isCompiled)return a | ||
;[N,R,U,j].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))), | ||
r.__beforeBegin=null,[S,M,A].forEach((e=>e(r,o))),r.isCompiled=!0;let l=null | ||
;[N,A,U,j].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))), | ||
r.__beforeBegin=null,[S,R,M].forEach((e=>e(r,o))),r.isCompiled=!0;let l=null | ||
;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords), | ||
@@ -186,22 +186,22 @@ l=r.keywords.$pattern, | ||
;return o.code=s.code,y("after:highlight",o),o}function h(e,n,r,s){ | ||
const l=Object.create(null);function c(){if(!k.keywords)return void S.addText(M) | ||
;let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(M),n="" | ||
;for(;t;){n+=M.substring(e,t.index) | ||
const l=Object.create(null);function c(){if(!k.keywords)return void S.addText(R) | ||
;let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(R),n="" | ||
;for(;t;){n+=R.substring(e,t.index) | ||
;const r=_.case_insensitive?t[0].toLowerCase():t[0],s=(i=r,k.keywords[i]);if(s){ | ||
const[e,i]=s | ||
;if(S.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=7&&(R+=i),e.startsWith("_"))n+=t[0];else{ | ||
;if(S.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=7&&(A+=i),e.startsWith("_"))n+=t[0];else{ | ||
const n=_.classNameAliases[e]||e;S.addKeyword(t[0],n)}}else n+=t[0] | ||
;e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(M)}var i | ||
;n+=M.substr(e),S.addText(n)}function d(){null!=k.subLanguage?(()=>{ | ||
if(""===M)return;let e=null;if("string"==typeof k.subLanguage){ | ||
if(!t[k.subLanguage])return void S.addText(M) | ||
;e=h(k.subLanguage,M,!0,N[k.subLanguage]),N[k.subLanguage]=e._top | ||
}else e=f(M,k.subLanguage.length?k.subLanguage:null) | ||
;k.relevance>0&&(R+=e.relevance),S.addSublanguage(e._emitter,e.language) | ||
})():c(),M=""}function u(e,t){let n=1;for(;void 0!==t[n];){if(!e._emit[n]){n++ | ||
;e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(R)}var i | ||
;n+=R.substr(e),S.addText(n)}function d(){null!=k.subLanguage?(()=>{ | ||
if(""===R)return;let e=null;if("string"==typeof k.subLanguage){ | ||
if(!t[k.subLanguage])return void S.addText(R) | ||
;e=h(k.subLanguage,R,!0,N[k.subLanguage]),N[k.subLanguage]=e._top | ||
}else e=f(R,k.subLanguage.length?k.subLanguage:null) | ||
;k.relevance>0&&(A+=e.relevance),S.addSublanguage(e._emitter,e.language) | ||
})():c(),R=""}function u(e,t){let n=1;for(;void 0!==t[n];){if(!e._emit[n]){n++ | ||
;continue}const i=_.classNameAliases[e[n]]||e[n],r=t[n] | ||
;i?S.addKeyword(r,i):(M=r,c(),M=""),n++}}function p(e,t){ | ||
;i?S.addKeyword(r,i):(R=r,c(),R=""),n++}}function p(e,t){ | ||
return e.scope&&"string"==typeof e.scope&&S.openNode(_.classNameAliases[e.scope]||e.scope), | ||
e.beginScope&&(e.beginScope._wrap?(S.addKeyword(M,_.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap), | ||
M=""):e.beginScope._multi&&(u(e.beginScope,t),M="")),k=Object.create(e,{parent:{ | ||
e.beginScope&&(e.beginScope._wrap?(S.addKeyword(R,_.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap), | ||
R=""):e.beginScope._multi&&(u(e.beginScope,t),R="")),k=Object.create(e,{parent:{ | ||
value:k}}),k}function b(e,t,n){let r=((e,t)=>{const n=e&&e.exec(t) | ||
@@ -212,14 +212,13 @@ ;return n&&0===n.index})(e.endRe,n);if(r){if(e["on:end"]){const n=new i(e) | ||
if(e.endsWithParent)return b(e.parent,t,n)}function m(e){ | ||
return 0===k.matcher.regexIndex?(M+=e[0],1):(I=!0,0)}function x(e){ | ||
return 0===k.matcher.regexIndex?(R+=e[0],1):(I=!0,0)}function x(e){ | ||
const t=e[0],i=n.substr(e.index),r=b(k,e,i);if(!r)return Z;const s=k | ||
;k.endScope&&k.endScope._wrap?(d(), | ||
S.addKeyword(t,k.endScope._wrap)):k.endScope&&k.endScope._multi?(d(), | ||
u(k.endScope,e)):s.skip?M+=t:(s.returnEnd||s.excludeEnd||(M+=t), | ||
d(),s.excludeEnd&&(M=t));do{ | ||
k.scope&&!k.isMultiClass&&S.closeNode(),k.skip||k.subLanguage||(R+=k.relevance), | ||
k=k.parent}while(k!==r.parent) | ||
;return r.starts&&p(r.starts,e),s.returnEnd?0:t.length}let w={};function y(t,s){ | ||
const a=s&&s[0];if(M+=t,null==a)return d(),0 | ||
u(k.endScope,e)):s.skip?R+=t:(s.returnEnd||s.excludeEnd||(R+=t), | ||
d(),s.excludeEnd&&(R=t));do{ | ||
k.scope&&S.closeNode(),k.skip||k.subLanguage||(A+=k.relevance),k=k.parent | ||
}while(k!==r.parent);return r.starts&&p(r.starts,e),s.returnEnd?0:t.length} | ||
let w={};function y(t,s){const a=s&&s[0];if(R+=t,null==a)return d(),0 | ||
;if("begin"===w.type&&"end"===s.type&&w.index===s.index&&""===a){ | ||
if(M+=n.slice(s.index,s.index+1),!o){const t=Error(`0 width match regex (${e})`) | ||
if(R+=n.slice(s.index,s.index+1),!o){const t=Error(`0 width match regex (${e})`) | ||
;throw t.languageName=e,t.badRule=w.rule,t}return 1} | ||
@@ -229,4 +228,4 @@ if(w=s,"begin"===s.type)return(e=>{ | ||
;for(const n of s)if(n&&(n(e,r),r.isMatchIgnored))return m(t) | ||
;return n.skip?M+=t:(n.excludeBegin&&(M+=t), | ||
d(),n.returnBegin||n.excludeBegin||(M=t)),p(n,e),n.returnBegin?0:t.length})(s) | ||
;return n.skip?R+=t:(n.excludeBegin&&(R+=t), | ||
d(),n.returnBegin||n.excludeBegin||(R=t)),p(n,e),n.returnBegin?0:t.length})(s) | ||
;if("illegal"===s.type&&!r){ | ||
@@ -237,15 +236,15 @@ const e=Error('Illegal lexeme "'+a+'" for mode "'+(k.scope||"<unnamed>")+'"') | ||
;if(j>1e5&&j>3*s.index)throw Error("potential infinite loop, way more iterations than matches") | ||
;return M+=a,a.length}const _=E(e) | ||
;return R+=a,a.length}const _=E(e) | ||
;if(!_)throw D(a.replace("{}",e)),Error('Unknown language: "'+e+'"') | ||
;const v=z(_);let O="",k=s||v;const N={},S=new g.__emitter(g);(()=>{const e=[] | ||
;for(let t=k;t!==_;t=t.parent)t.scope&&e.unshift(t.scope) | ||
;e.forEach((e=>S.openNode(e)))})();let M="",R=0,A=0,j=0,I=!1;try{ | ||
;e.forEach((e=>S.openNode(e)))})();let R="",A=0,M=0,j=0,I=!1;try{ | ||
for(k.matcher.considerAll();;){ | ||
j++,I?I=!1:k.matcher.considerAll(),k.matcher.lastIndex=A | ||
;const e=k.matcher.exec(n);if(!e)break;const t=y(n.substring(A,e.index),e) | ||
;A=e.index+t}return y(n.substr(A)),S.closeAllNodes(),S.finalize(),O=S.toHTML(),{ | ||
language:e,value:O,relevance:R,illegal:!1,_emitter:S,_top:k}}catch(t){ | ||
j++,I?I=!1:k.matcher.considerAll(),k.matcher.lastIndex=M | ||
;const e=k.matcher.exec(n);if(!e)break;const t=y(n.substring(M,e.index),e) | ||
;M=e.index+t}return y(n.substr(M)),S.closeAllNodes(),S.finalize(),O=S.toHTML(),{ | ||
language:e,value:O,relevance:A,illegal:!1,_emitter:S,_top:k}}catch(t){ | ||
if(t.message&&t.message.includes("Illegal"))return{language:e,value:W(n), | ||
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:A, | ||
context:n.slice(A-100,A+100),mode:t.mode,resultSoFar:O},_emitter:S};if(o)return{ | ||
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:M, | ||
context:n.slice(M-100,M+100),mode:t.mode,resultSoFar:O},_emitter:S};if(o)return{ | ||
language:e,value:W(n),illegal:!1,relevance:0,errorRaised:t,_emitter:S,_top:k} | ||
@@ -302,4 +301,4 @@ ;throw t}}function f(e,n){n=n||g.languages||Object.keys(t);const i=(e=>{ | ||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),s.push(e)} | ||
}),e.debugMode=()=>{o=!1},e.safeMode=()=>{o=!0},e.versionString="11.1.0" | ||
}),e.debugMode=()=>{o=!1},e.safeMode=()=>{o=!0},e.versionString="11.2.0" | ||
;for(const e in O)"object"==typeof O[e]&&n(O[e]);return Object.assign(e,O),e | ||
})({});export default G; |
@@ -7,4 +7,4 @@ var hljsGrammar=(()=>{"use strict";function e(e){ | ||
})(a).capture?"":"?:")+a.map((a=>e(a))).join("|")+")"} | ||
const i=e=>t(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],F=n(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),d=n(F,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(F,d,"*"),h=n(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=n(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=t(h,f,"*"),y=t(/[A-Z]/,f,"*"),g=["autoclosure",t(/convention\(/,n("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] | ||
;return e=>{const F={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ | ||
const i=e=>t(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],d=n(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),F=n(d,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(d,F,"*"),h=n(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=n(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=t(h,f,"*"),y=t(/[A-Z]/,f,"*"),g=["autoclosure",t(/convention\(/,n("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] | ||
;return e=>{const d={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ | ||
contains:["self"]}),v=[e.C_LINE_COMMENT_MODE,h],A={match:[/\./,n(...s,...u)], | ||
@@ -18,3 +18,3 @@ className:{2:"keyword"}},N={match:t(/\./,n(...r)),relevance:0 | ||
match:t(/\b/,n(...p),/(?=\()/)}],S={match:/->/,relevance:0},M=[S,{ | ||
className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${d})+`}] | ||
className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${F})+`}] | ||
}],x="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{ | ||
@@ -49,5 +49,5 @@ match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ | ||
match:[/func/,/\s+/,n(K.match,w,b)],className:{1:"keyword",3:"title.function"}, | ||
contains:[V,W,F],illegal:[/\[/,/%/]},X={ | ||
contains:[V,W,d],illegal:[/\[/,/%/]},X={ | ||
match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"}, | ||
contains:[V,W,F],illegal:/\[|%/},H={match:[/operator/,/\s+/,b],className:{ | ||
contains:[V,W,d],illegal:/\[|%/},H={match:[/operator/,/\s+/,b],className:{ | ||
1:"keyword",3:"title"}},J={begin:[/precedencegroup/,/\s+/,y],className:{ | ||
@@ -54,0 +54,0 @@ 1:"keyword",3:"title"},contains:[U],keywords:[...l,...o],end:/}/} |
@@ -7,4 +7,4 @@ hljs.registerLanguage("swift",(()=>{"use strict";function e(e){ | ||
})(a).capture?"":"?:")+a.map((a=>e(a))).join("|")+")"} | ||
const i=e=>t(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],F=n(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),d=n(F,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(F,d,"*"),h=n(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=n(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=t(h,f,"*"),y=t(/[A-Z]/,f,"*"),g=["autoclosure",t(/convention\(/,n("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] | ||
;return e=>{const F={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ | ||
const i=e=>t(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],d=n(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),F=n(d,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(d,F,"*"),h=n(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=n(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=t(h,f,"*"),y=t(/[A-Z]/,f,"*"),g=["autoclosure",t(/convention\(/,n("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] | ||
;return e=>{const d={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ | ||
contains:["self"]}),v=[e.C_LINE_COMMENT_MODE,h],A={match:[/\./,n(...s,...u)], | ||
@@ -18,3 +18,3 @@ className:{2:"keyword"}},N={match:t(/\./,n(...r)),relevance:0 | ||
match:t(/\b/,n(...p),/(?=\()/)}],S={match:/->/,relevance:0},M=[S,{ | ||
className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${d})+`}] | ||
className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${F})+`}] | ||
}],x="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{ | ||
@@ -49,5 +49,5 @@ match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ | ||
match:[/func/,/\s+/,n(K.match,w,b)],className:{1:"keyword",3:"title.function"}, | ||
contains:[W,G,F],illegal:[/\[/,/%/]},X={ | ||
contains:[W,G,d],illegal:[/\[/,/%/]},X={ | ||
match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"}, | ||
contains:[W,G,F],illegal:/\[|%/},H={match:[/operator/,/\s+/,b],className:{ | ||
contains:[W,G,d],illegal:/\[|%/},H={match:[/operator/,/\s+/,b],className:{ | ||
1:"keyword",3:"title"}},J={begin:[/precedencegroup/,/\s+/,y],className:{ | ||
@@ -54,0 +54,0 @@ 1:"keyword",3:"title"},contains:[U],keywords:[...l,...o],end:/}/} |
@@ -9,3 +9,3 @@ { | ||
"homepage": "https://highlightjs.org/", | ||
"version": "11.1.0", | ||
"version": "11.2.0", | ||
"author": { | ||
@@ -12,0 +12,0 @@ "name": "Ivan Sagalaev", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3211261
40231