2023-06-20 23:18:53 +02:00
/ * P r i s m J S 1 . 2 9 . 0
2023-06-22 15:52:58 +02:00
https : //prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+apacheconf+arduino+bash+basic+batch+bbcode+c+cpp+cmake+csv+diff+docker+git+go+http+ini+java+json+log+makefile+markdown+markup-templating+nginx+pascal+perl+php+powershell+python+ruby+shell-session+sql+typescript+vbnet+visual-basic+wiki+yaml&plugins=line-numbers+unescaped-markup */
2023-06-20 23:57:24 +02:00
var _self = "undefined" != typeof window ? window : "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope ? self : { } , Prism = function ( e ) { var n = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i , t = 0 , r = { } , a = { manual : e . Prism && e . Prism . manual , disableWorkerMessageHandler : e . Prism && e . Prism . disableWorkerMessageHandler , util : { encode : function e ( n ) { return n instanceof i ? new i ( n . type , e ( n . content ) , n . alias ) : Array . isArray ( n ) ? n . map ( e ) : n . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( /\u00a0/g , " " ) } , type : function ( e ) { return Object . prototype . toString . call ( e ) . slice ( 8 , - 1 ) } , objId : function ( e ) { return e . _ _id || Object . defineProperty ( e , "__id" , { value : ++ t } ) , e . _ _id } , clone : function e ( n , t ) { var r , i ; switch ( t = t || { } , a . util . type ( n ) ) { case "Object" : if ( i = a . util . objId ( n ) , t [ i ] ) return t [ i ] ; for ( var l in r = { } , t [ i ] = r , n ) n . hasOwnProperty ( l ) && ( r [ l ] = e ( n [ l ] , t ) ) ; return r ; case "Array" : return i = a . util . objId ( n ) , t [ i ] ? t [ i ] : ( r = [ ] , t [ i ] = r , n . forEach ( ( function ( n , a ) { r [ a ] = e ( n , t ) } ) ) , r ) ; default : return n } } , getLanguage : function ( e ) { for ( ; e ; ) { var t = n . exec ( e . className ) ; if ( t ) return t [ 1 ] . toLowerCase ( ) ; e = e . parentElement } return "none" } , setLanguage : function ( e , t ) { e . className = e . className . replace ( RegExp ( n , "gi" ) , "" ) , e . classList . add ( "language-" + t ) } , currentScript : function ( ) { if ( "undefined" == typeof document ) return null ; if ( "currentScript" in document ) return document . currentScript ; try { throw new Error } catch ( r ) { var e = ( /at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i . exec ( r . stack ) || [ ] ) [ 1 ] ; if ( e ) { var n = document . getElementsByTagName ( "script" ) ; for ( var t in n ) if ( n [ t ] . src == e ) return n [ t ] } return null } } , isActive : function ( e , n , t ) { for ( var r = "no-" + n ; e ; ) { var a = e . classList ; if ( a . contains ( n ) ) return ! 0 ; if ( a . contains ( r ) ) return ! 1 ; e = e . parentElement } return ! ! t } } , languages : { plain : r , plaintext : r , text : r , txt : r , extend : function ( e , n ) { var t = a . util . clone ( a . languages [ e ] ) ; for ( var r in n ) t [ r ] = n [ r ] ; return t } , insertBefore : function ( e , n , t , r ) { var i = ( r = r || a . languages ) [ e ] , l = { } ; for ( var o in i ) if ( i . hasOwnProperty ( o ) ) { if ( o == n ) for ( var s in t ) t . hasOwnProperty ( s ) && ( l [ s ] = t [ s ] ) ; t . hasOwnProperty ( o ) || ( l [ o ] = i [ o ] ) } var u = r [ e ] ; return r [ e ] = l , a . languages . DFS ( a . languages , ( function ( n , t ) { t === u && n != e && ( this [ n ] = l ) } ) ) , l } , DFS : function e ( n , t , r , i ) { i = i || { } ; var l = a . util . objId ; for ( var o in n ) if ( n . hasOwnProperty ( o ) ) { t . call ( n , o , n [ o ] , r || o ) ; var s = n [ o ] , u = a . util . type ( s ) ; "Object" !== u || i [ l ( s ) ] ? "Array" !== u || i [ l ( s ) ] || ( i [ l ( s ) ] = ! 0 , e ( s , t , o , i ) ) : ( i [ l ( s ) ] = ! 0 , e ( s , t , null , i ) ) } } } , plugins : { } , highlightAll : function ( e , n ) { a . highlightAllUnder ( document , e , n ) } , highlightAllUnder : function ( e , n , t ) { var r = { callback : t , container : e , selector : 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' } ; a . hooks . run ( "before-highlightall" , r ) , r . elements = Array . prototype . slice . apply ( r . container . querySelectorAll ( r . selector ) ) , a . hooks . run ( "before-all-elements-highlight" , r ) ; for ( var i , l = 0 ; i = r . elements [ l ++ ] ; ) a . highlightElement ( i , ! 0 === n , r . callback ) } , highlightElement : function ( n , t , r ) { var i = a . util . getLanguage ( n ) , l = a . languages [ i ] ; a . util . setLanguage ( n , i ) ; var o = n . parentElement ; o && "pre" === o . nodeName . toLowerCase ( ) && a . util . setLanguage ( o , i ) ; var s = { element : n , language : i , grammar : l , code : n . textContent } ; function u ( e ) { s . highlightedCode = e , a . hooks . run ( "before-insert" , s ) , s . element . innerHTML = s . highlightedCode , a . hooks . run ( "after-highlight" , s ) , a . hooks . run ( "complete" , s ) , r && r . call ( s . element ) } if ( a . hooks . run ( "before-sanity-check" , s ) , ( o = s . element . parentElement ) && "pre" === o . nodeName . toLowerCase ( ) && ! o . hasAttribute ( "tabindex" ) && o . setAttribute ( "tabindex" , "0" ) , ! s . code ) return a . hooks . run ( "complete" , s ) , void ( r && r . call ( s . element ) ) ; if ( a . hooks . run ( "before-highlight" , s ) , s . grammar ) if ( t && e . Worker ) { var c = new Worker ( a . filename ) ; c . onmessage = function ( e ) { u ( e . data ) } , c . postMessage ( JSON . stringify ( { language : s . language , code : s . code , immediateClose : ! 0 } ) ) } else u ( a . highlight ( s . code , s . grammar , s . language ) ) ; else u ( a . util . encode ( s . code ) ) } , highlight : function ( e , n , t ) { var r = { code : e , grammar : n , language : t } ; if ( a . hooks . run ( "before-tokenize" , r ) , ! r . grammar ) throw new Error ( 'The language "' + r . language + '" has no grammar.' ) ; return r . tokens = a . tokenize ( r . code , r . grammar ) , a . hooks . run ( "after-tokenize" , r ) , i . stringify ( a . util . encode ( r . tokens ) , r . language ) } , tokenize : function ( e , n ) { var t = n . rest ; if (
Prism . languages . markup = { comment : { pattern : /<!--(?:(?!<!--)[\s\S])*?-->/ , greedy : ! 0 } , prolog : { pattern : /<\?[\s\S]+?\?>/ , greedy : ! 0 } , doctype : { pattern : /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i , greedy : ! 0 , inside : { "internal-subset" : { pattern : /(^[^\[]*\[)[\s\S]+(?=\]>$)/ , lookbehind : ! 0 , greedy : ! 0 , inside : null } , string : { pattern : /"[^"]*"|'[^']*'/ , greedy : ! 0 } , punctuation : /^<!|>$|[[\]]/ , "doctype-tag" : /^DOCTYPE/i , name : /[^\s<>'"]+/ } } , cdata : { pattern : /<!\[CDATA\[[\s\S]*?\]\]>/i , greedy : ! 0 } , tag : { pattern : /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/ , greedy : ! 0 , inside : { tag : { pattern : /^<\/?[^\s>\/]+/ , inside : { punctuation : /^<\/?/ , namespace : /^[^\s>\/:]+:/ } } , "special-attr" : [ ] , "attr-value" : { pattern : /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/ , inside : { punctuation : [ { pattern : /^=/ , alias : "attr-equals" } , { pattern : /^(\s*)["']|["']$/ , lookbehind : ! 0 } ] } } , punctuation : /\/?>/ , "attr-name" : { pattern : /[^\s>\/]+/ , inside : { namespace : /^[^\s>\/:]+:/ } } } } , entity : [ { pattern : /&[\da-z]{1,8};/i , alias : "named-entity" } , /&#x?[\da-f]{1,8};/i ] } , Prism . languages . markup . tag . inside [ "attr-value" ] . inside . entity = Prism . languages . markup . entity , Prism . languages . markup . doctype . inside [ "internal-subset" ] . inside = Prism . languages . markup , Prism . hooks . add ( "wrap" , ( function ( a ) { "entity" === a . type && ( a . attributes . title = a . content . replace ( /&/ , "&" ) ) } ) ) , Object . defineProperty ( Prism . languages . markup . tag , "addInlined" , { value : function ( a , e ) { var s = { } ; s [ "language-" + e ] = { pattern : /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i , lookbehind : ! 0 , inside : Prism . languages [ e ] } , s . cdata = /^<!\[CDATA\[|\]\]>$/i ; var t = { "included-cdata" : { pattern : /<!\[CDATA\[[\s\S]*?\]\]>/i , inside : s } } ; t [ "language-" + e ] = { pattern : /[\s\S]+/ , inside : Prism . languages [ e ] } ; var n = { } ; n [ a ] = { pattern : RegExp ( "(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)" . replace ( /__/g , ( function ( ) { return a } ) ) , "i" ) , lookbehind : ! 0 , greedy : ! 0 , inside : t } , Prism . languages . insertBefore ( "markup" , "cdata" , n ) } } ) , Object . defineProperty ( Prism . languages . markup . tag , "addAttribute" , { value : function ( a , e ) { Prism . languages . markup . tag . inside [ "special-attr" ] . push ( { pattern : RegExp ( "(^|[\"'\\s])(?:" + a + ")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))" , "i" ) , lookbehind : ! 0 , inside : { "attr-name" : /^[^\s=]+/ , "attr-value" : { pattern : /=[\s\S]+/ , inside : { value : { pattern : /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/ , lookbehind : ! 0 , alias : [ e , "language-" + e ] , inside : Prism . languages [ e ] } , punctuation : [ { pattern : /^=/ , alias : "attr-equals" } , /"|'/ ] } } } } ) } } ) , Prism . languages . html = Prism . languages . markup , Prism . languages . mathml = Prism . languages . markup , Prism . languages . svg = Prism . languages . markup , Prism . languages . xml = Prism . languages . extend ( "markup" , { } ) , Prism . languages . ssml = Prism . languages . xml , Prism . languages . atom = Prism . languages . xml , Prism . languages . rss = Prism . languages . xml ;
! function ( s ) { var e = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/ ; s . languages . css = { comment : /\/\*[\s\S]*?\*\// , atrule : { pattern : RegExp ( "@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|" + e . source + ")*?(?:;|(?=\\s*\\{))" ) , inside : { rule : /^@[\w-]+/ , "selector-function-argument" : { pattern : /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/ , lookbehind : ! 0 , alias : "selector" } , keyword : { pattern : /(^|[^\w-])(?:and|not|only|or)(?![\w-])/ , lookbehind : ! 0 } } } , url : { pattern : RegExp ( "\\burl\\((?:" + e . source + "|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)" , "i" ) , greedy : ! 0 , inside : { function : /^url/i , punctuation : /^\(|\)$/ , string : { pattern : RegExp ( "^" + e . source + "$" ) , alias : "url" } } } , selector : { pattern : RegExp ( "(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + e . source + ")*(?=\\s*\\{)" ) , lookbehind : ! 0 } , string : { pattern : e , greedy : ! 0 } , property : { pattern : /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i , lookbehind : ! 0 } , important : /!important\b/i , function : { pattern : /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i , lookbehind : ! 0 } , punctuation : /[(){};:,]/ } , s . languages . css . atrule . inside . rest = s . languages . css ; var t = s . languages . markup ; t && ( t . tag . addInlined ( "style" , "css" ) , t . tag . addAttribute ( "style" , "css" ) ) } ( Prism ) ;
Prism . languages . clike = { comment : [ { pattern : /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^\\:])\/\/.*/ , lookbehind : ! 0 , greedy : ! 0 } ] , string : { pattern : /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy : ! 0 } , "class-name" : { pattern : /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i , lookbehind : ! 0 , inside : { punctuation : /[.\\]/ } } , keyword : /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/ , boolean : /\b(?:false|true)\b/ , function : /\b\w+(?=\()/ , number : /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i , operator : /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/ , punctuation : /[{}[\];(),.:]/ } ;
Prism . languages . javascript = Prism . languages . extend ( "clike" , { "class-name" : [ Prism . languages . clike [ "class-name" ] , { pattern : /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/ , lookbehind : ! 0 } ] , keyword : [ { pattern : /((?:^|\})\s*)catch\b/ , lookbehind : ! 0 } , { pattern : /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/ , lookbehind : ! 0 } ] , function : /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/ , number : { pattern : RegExp ( "(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])" ) , lookbehind : ! 0 } , operator : /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ } ) , Prism . languages . javascript [ "class-name" ] [ 0 ] . pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/ , Prism . languages . insertBefore ( "javascript" , "keyword" , { regex : { pattern : RegExp ( "((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { "regex-source" : { pattern : /^(\/)[\s\S]+(?=\/[a-z]*$)/ , lookbehind : ! 0 , alias : "language-regex" , inside : Prism . languages . regex } , "regex-delimiter" : /^\/|\/$/ , "regex-flags" : /^[a-z]+$/ } } , "function-variable" : { pattern : /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/ , alias : "function" } , parameter : [ { pattern : /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/ , lookbehind : ! 0 , inside : Prism . languages . javascript } , { pattern : /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i , lookbehind : ! 0 , inside : Prism . languages . javascript } , { pattern : /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/ , lookbehind : ! 0 , inside : Prism . languages . javascript } , { pattern : /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/ , lookbehind : ! 0 , inside : Prism . languages . javascript } ] , constant : /\b[A-Z](?:[A-Z_]|\dx?)*\b/ } ) , Prism . languages . insertBefore ( "javascript" , "string" , { hashbang : { pattern : /^#!.*/ , greedy : ! 0 , alias : "comment" } , "template-string" : { pattern : /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/ , greedy : ! 0 , inside : { "template-punctuation" : { pattern : /^`|`$/ , alias : "string" } , interpolation : { pattern : /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/ , lookbehind : ! 0 , inside : { "interpolation-punctuation" : { pattern : /^\$\{|\}$/ , alias : "punctuation" } , rest : Prism . languages . javascript } } , string : /[\s\S]+/ } } , "string-property" : { pattern : /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m , lookbehind : ! 0 , greedy : ! 0 , alias : "property" } } ) , Prism . languages . insertBefore ( "javascript" , "operator" , { "literal-property" : { pattern : / ( ( ? : ^
2023-06-21 01:11:10 +02:00
Prism . languages . apacheconf = { comment : /#.*/ , "directive-inline" : { pattern : / ( ^ [ \ t ] * ) \ b ( ? : A c c e p t F i l t e r | A c c e p t P a t h I n f o | A c c e s s F i l e N a m e | A c t i o n | A d d ( ? : A l t | A l t B y E n c o d i n g | A l t B y T y p e | C h a r s e t | D e f a u l t C h a r s e t | D e s c r i p t i o n | E n c o d i n g | H a n d l e r | I c o n | I c o n B y E n c o d i n g | I c o n B y T y p e | I n p u t F i l t e r | L a n g u a g e | M o d u l e I n f o | O u t p u t F i l t e r | O u t p u t F i l t e r B y T y p e | T y p e ) | A l i a s | A l i a s M a t c h | A l l o w ( ? : C O N N E C T | E n c o d e d S l a s h e s | M e t h o d s | O v e r r i d e | O v e r r i d e L i s t ) ? | A n o n y m o u s ( ? : _ L o g E m a i l | _ M u s t G i v e E m a i l | _ N o U s e r I D | _ V e r i f y E m a i l ) ? | A s y n c R e q u e s t W o r k e r F a c t o r | A u t h ( ? : B a s i c A u t h o r i t a t i v e | B a s i c F a k e | B a s i c P r o v i d e r | B a s i c U s e D i g e s t A l g o r i t h m | D B D U s e r P W Q u e r y | D B D U s e r R e a l m Q u e r y | D B M G r o u p F i l e | D B M T y p e | D B M U s e r F i l e | D i g e s t ( ? : A l g o r i t h m | D o m a i n | N o n c e L i f e t i m e | P r o v i d e r | Q o p | S h m e m S i z e ) | F o r m ( ? : A u t h o r i t a t i v e | B o d y | D i s a b l e N o S t o r e | F a k e B a s i c A u t h | L o c a t i o n | L o g i n R e q u i r e d L o c a t i o n | L o g i n S u c c e s s L o c a t i o n | L o g o u t L o c a t i o n | M e t h o d | M i m e t y p e | P a s s w o r d | P r o v i d e r | S i t e P a s s p h r a s e | S i z e | U s e r n a m e ) | G r o u p F i l e | L D A P ( ? : A u t h o r i z e P r e f i x | B i n d A u t h o r i t a t i v e | B i n d D N | B i n d P a s s w o r d | C h a r s e t C o n f i g | C o m p a r e A s U s e r | C o m p a r e D N O n S e r v e r | D e r e f e r e n c e A l i a s e s | G r o u p A t t r i b u t e | G r o u p A t t r i b u t e I s D N | I n i t i a l B i n d A s U s e r | I n i t i a l B i n d P a t t e r n | M a x S u b G r o u p D e p t h | R e m o t e U s e r A t t r i b u t e | R e m o t e U s e r I s D N | S e a r c h A s U s e r | S u b G r o u p A t t r i b u t e | S u b G r o u p C l a s s | U r l ) | M e r g i n g | N a m e | n C a c h e ( ? : C o n t e x t | E n a b l e | P r o v i d e F o r | S O C a c h e | T i m e o u t ) | n z F c g i C h e c k A u t h n P r o v i d e r | n z F c g i D e f i n e P r o v i d e r | T y p e | U s e r F i l e | z D B D L o g i n T o R e f e r e r | z D B D Q u e r y | z D B D R e d i r e c t Q u e r y | z D B M T y p e | z S e n d F o r b i d d e n O n F a i l u r e ) | B a l a n c e r G r o w t h | B a l a n c e r I n h e r i t | B a l a n c e r M e m b e r | B a l a n c e r P e r s i s t | B r o w s e r M a t c h | B r o w s e r M a t c h N o C a s e | B u f f e r e d L o g s | B u f f e r S i z e | C a c h e ( ? : D e f a u l t E x p i r e | D e t a i l H e a d e r | D i r L e n g t h | D i r L e v e l s | D i s a b l e | E n a b l e | F i l e | H e a d e r | I g n o r e C a c h e C o n t r o l | I g n o r e H e a d e r s | I g n o r e N o L a s t M o d | I g n o r e Q u e r y S t r i n g | I g n o r e U R L S e s s i o n I d e n t i f i e r s | K e y B a s e U R L | L a s t M o d i f i e d F a c t o r | L o c k | L o c k M a x A g e | L o c k P a t h | M a x E x p i r e | M a x F i l e S i z e | M i n E x p i r e | M i n F i l e S i z e | N e g o t i a t e d D o c s | Q u i c k H a n d l e r | R e a d S i z e | R e a d T i m e | R o o t | S o c a c h e ( ? : M a x S i z e | M a x T i m e | M i n T i m e | R e a d S i z e | R e a d T i m e ) ? | S t a l e O n E r r o r | S t o r e E x p i r e d | S t o r e N o S t o r e | S t o r e P r i v a t e ) | C G I D S c r i p t T i m e o u t | C G I M a p E x t e n s i o n | C h a r s e t D e f a u l t | C h a r s e t O p t i o n s | C h a r s e t S o u r c e E n c | C h e c k C a s e O n l y | C h e c k S p e l l i n g | C h r o o t D i r | C o n t e n t D i g e s t | C o o k i e D o m a i n | C o o k i e E x p i r e s | C o o k i e N a m e | C o o k i e S t y l e | C o o k i e T r a c k i n g | C o r e D u m p D i r e c t o r y | C u s t o m L o g | D a v | D a v D e p t h I n f i n i t y | D a v G e n e r i c L o c k D B | D a v L o c k D B | D a v M i n T i m e o u t | D B D E x p t i m e | D B D I n i t S Q L | D B D K e e p | D B D M a x | D B D M i n | D B D P a r a m s | D B D P e r s i s t | D B D P r e p a r e S Q L | D B D r i v e r | D e f a u l t I c o n | D e f a u l t L a n g u a g e | D e f a u l t R u n t i m e D i r | D e f a u l t T y p e | D e f i n e | D e f l a t e ( ? : B u f f e r S i z e | C o m p r e s s i o n L e v e l | F i l t e r N o t e | I n f l a t e L i m i t R e q u e s t B o d y | I n f l a t e R a t i o ( ? : B u r s t | L i m i t ) | M e m L e v e l | W i n d o w S i z e ) | D e n y | D i r e c t o r y C h e c k H a n d l e r | D i r e c t o r y I n d e x | D i r e c t o r y I n d e x R e d i r e c t | D i r e c t o r y S l a s h | D o c u m e n t R o o t | D T r a c e P r i v i l e g e s | D u m p I O I n p u t | D u m p I O O u t p u t | E n a b l e E x c e p t i o n H o o k | E n a b l e M M A P | E n a b l e S e n d f i l e | E r r o r | E r r o r D o c u m e n t | E r r o r L o g | E r r o r L o g F o r m a t | E x a m p l e | E x p i r e s A c t i v e | E x p i r e s B y T y p e | E x p i r e s D e f a u l t | E x t e n d e d S t a t u s | E x t F i l t e r D e f i n e | E x t F i l t e r O p t i o n s | F a l l b a c k R e s o u r c e | F i l e E T a g | F i l t e r C h a i n | F i l t e r D e c l a r e | F i l t e r P r o t o c o l | F i l t e r P r o v i d e r | F i l t e r T r a c e | F o r c e L a n g u a g e P r i o r i t y | F o r c e T y p e | F o r e n s i c L o g | G p r o f D i r | G r a c e f u l S h u t d o w n T i m e o u t | G r o u p | H e a d e r | H e a d e r N a m e | H e a r t b e a t ( ? : A d d r e s s | L i s t e n | M a x S e r v e r s | S t o r a g e ) | H o s t n a m e L o o k u p s | I d e n t i t y C h e c k | I d e n t i t y C h e c k T i m e o u t | I m a p B a s e | I m a p D e f a u l t | I m a p M e n u | I n c l u d e | I n c l u d e O p t i o n a l | I n d e x ( ? : H e a d I n s e r t | I g n o r e | I g n o r e R e s e t | O p t i o n s | O r d e r D e f a u l t | S t y l e S h e e t ) | I n p u t S e d | I S A P I ( ? : A p p e n d L o g T o E r r o r s | A p p e n d L o g T o Q u e r y | C a c h e F i l e | F a k e A s y n c | L o g N o t S u p p o r t e d | R e a d A h e a d B u f f e r ) | K e e p A l i v e | K e e p A l i v e T i m e o u t | K e p t B o d y S i z e | L a n g u a g e P r i o r i t y | L D A P ( ? : C a c h e E n t r i e s | C a c h e T T L | C o n n e c t i o n P o o l T T L | C o n n e c t i o n T i m e o u t | L i b r a r y D e b u g | O p C a c h e E n t r i e s | O p C a c h e T T L | R e f e r r a l H o p L i m i t | R e f e r r a l s | R e t r i e s | R e t r y D e l a y | S h a r e d C a c h e F i l e | S h a r e d C a c h e S i z e | T i m e o u t | T r u s t e d C l i e n t C e r t | T r u s t e d G l o b a l C e r t | T r u s t e d M o d e | V e r i f y S e r v e r C e r t ) | L i m i t ( ? : I n t e r n a l R e c u r s i o n | R e q u e s t ( ? : B o d y | F i e l d s | F i e l d S i z e | L i n e ) | X M L R e q u e s t B o d y ) | L i s t e n | L i s t e n B a c k L o g | L o a d F i l e | L o a d M o d u l e | L o g F o r m a t | L o g L e v e l | L o g M e s s a g e | L u a A u t h z P r o v i d e r | L u a C o d e C a c h e | L u a ( ? : H o o k ( ? : A c c e s s C h e c k e r | A u t h C h e c k e r | C h e c k U s e r I D | F i x u p s | I n s e r t F i l t e r | L o g | M a p T o S t o r a g e | T r a n s l a t e N a m e | T y p e C h e c k e r ) | I n h e r i t | I n p u t F i l t e r | M a p H a n d l e r | O u t p u t F i l t e r | P a c k a g e C P a t h | P a c k a g e P a t h | Q u i c k H a n d l e r | R o o t | S c o p e ) | M a x ( ? : C o n n e c t i o n s P e r C h i l d | K e e p A l i v e R
2023-06-20 23:57:24 +02:00
Prism . languages . c = Prism . languages . extend ( "clike" , { comment : { pattern : /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/ , greedy : ! 0 } , string : { pattern : /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/ , greedy : ! 0 } , "class-name" : { pattern : /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/ , lookbehind : ! 0 } , keyword : /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/ , function : /\b[a-z_]\w*(?=\s*\()/i , number : /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i , operator : />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ } ) , Prism . languages . insertBefore ( "c" , "string" , { char : { pattern : /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/ , greedy : ! 0 } } ) , Prism . languages . insertBefore ( "c" , "string" , { macro : { pattern : /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im , lookbehind : ! 0 , greedy : ! 0 , alias : "property" , inside : { string : [ { pattern : /^(#\s*include\s*)<[^>]+>/ , lookbehind : ! 0 } , Prism . languages . c . string ] , char : Prism . languages . c . char , comment : Prism . languages . c . comment , "macro-name" : [ { pattern : /(^#\s*define\s+)\w+\b(?!\()/i , lookbehind : ! 0 } , { pattern : /(^#\s*define\s+)\w+\b(?=\()/i , lookbehind : ! 0 , alias : "function" } ] , directive : { pattern : /^(#\s*)[a-z]+/ , lookbehind : ! 0 , alias : "keyword" } , "directive-hash" : /^#/ , punctuation : /##|\\(?=[\r\n])/ , expression : { pattern : /\S[\s\S]*/ , inside : Prism . languages . c } } } } ) , Prism . languages . insertBefore ( "c" , "function" , { constant : /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ } ) , delete Prism . languages . c . boolean ;
2023-06-21 01:11:10 +02:00
! function ( e ) { var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/ , n = "\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b" . replace ( /<keyword>/g , ( function ( ) { return t . source } ) ) ; e . languages . cpp = e . languages . extend ( "c" , { "class-name" : [ { pattern : RegExp ( "(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+" . replace ( /<keyword>/g , ( function ( ) { return t . source } ) ) ) , lookbehind : ! 0 } , /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/ , /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i , /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/ ] , keyword : t , number : { pattern : /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i , greedy : ! 0 } , operator : />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/ , boolean : /\b(?:false|true)\b/ } ) , e . languages . insertBefore ( "cpp" , "string" , { module : { pattern : RegExp ( '(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\r\n|[^])|[^"\\\\\r\n])*"|<[^<>\r\n]*>|' + "<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>" . replace ( /<mod-name>/g , ( function ( ) { return n } ) ) + ")" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { string : /^[<"][\s\S]+/ , operator : /:/ , punctuation : /\./ } } , "raw-string" : { pattern : /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/ , alias : "string" , greedy : ! 0 } } ) , e . languages . insertBefore ( "cpp" , "keyword" , { "generic-function" : { pattern : /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i , inside : { function : /^\w+/ , generic : { pattern : /<[\s\S]+/ , alias : "class-name" , inside : e . languages . cpp } } } } ) , e . languages . insertBefore ( "cpp" , "operator" , { "double-colon" : { pattern : /::/ , alias : "punctuation" } } ) , e . languages . insertBefore ( "cpp" , "class-name" , { "base-clause" : { pattern : /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/ , lookbehind : ! 0 , greedy : ! 0 , inside : e . languages . extend ( "cpp" , { } ) } } ) , e . languages . insertBefore ( "inside" , "double-colon" , { "class-name" : /\b[a-z_]\w*\b(?!\s*::)/i } , e . languages . cpp [ "base-clause" ] ) } ( Prism ) ;
Prism . languages . arduino = Prism . languages . extend ( "cpp" , { keyword : /\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/ , constant : /\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/ , builtin : /\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/ } ) , Prism . languages . ino = Prism . languages . arduino ;
! function ( e ) { var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b" , a = { pattern : /(^(["']?)\w+\2)[ \t]+\S.*/ , lookbehind : ! 0 , alias : "punctuation" , inside : null } , n = { bash : a , environment : { pattern : RegExp ( "\\$" + t ) , alias : "constant" } , variable : [ { pattern : /\$?\(\([\s\S]+?\)\)/ , greedy : ! 0 , inside : { variable : [ { pattern : /(^\$\(\([\s\S]+)\)\)/ , lookbehind : ! 0 } , /^\$\(\(/ ] , number : /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/ , operator : /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/ , punctuation : /\(\(?|\)\)?|,|;/ } } , { pattern : /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/ , greedy : ! 0 , inside : { variable : /^\$\(|^`|\)$|`$/ } } , { pattern : /\$\{[^}]+\}/ , greedy : ! 0 , inside : { operator : /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/ , punctuation : /[\[\]]/ , environment : { pattern : RegExp ( "(\\{)" + t ) , lookbehind : ! 0 , alias : "constant" } } } , /\$(?:\w+|[#?*!@$])/ ] , entity : /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/ } ; e . languages . bash = { shebang : { pattern : /^#!\s*\/.*/ , alias : "important" } , comment : { pattern : /(^|[^"{\\$])#.*/ , lookbehind : ! 0 } , "function-name" : [ { pattern : /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/ , lookbehind : ! 0 , alias : "function" } , { pattern : /\b[\w-]+(?=\s*\(\s*\)\s*\{)/ , alias : "function" } ] , "for-or-select" : { pattern : /(\b(?:for|select)\s+)\w+(?=\s+in\s)/ , alias : "variable" , lookbehind : ! 0 } , "assign-left" : { pattern : /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/ , inside : { environment : { pattern : RegExp ( "(^|[\\s;|&]|[<>]\\()" + t ) , lookbehind : ! 0 , alias : "constant" } } , alias : "variable" , lookbehind : ! 0 } , parameter : { pattern : /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/ , alias : "variable" , lookbehind : ! 0 } , string : [ { pattern : /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/ , lookbehind : ! 0 , greedy : ! 0 , inside : n } , { pattern : /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/ , lookbehind : ! 0 , greedy : ! 0 , inside : { bash : a } } , { pattern : /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/ , lookbehind : ! 0 , greedy : ! 0 , inside : n } , { pattern : /(^|[^$\\])'[^']*'/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /\$'(?:[^'\\]|\\[\s\S])*'/ , greedy : ! 0 , inside : { entity : n . entity } } ] , environment : { pattern : RegExp ( "\\$?" + t ) , alias : "constant" } , variable : n . variable , function : { pattern : / ( ^ | [ \ s ; | & ] | [ < > ] \ ( ) ( ? : a d d | a p r o p o s | a p t | a p t - c a c h e | a p t - g e t | a p t i t u d e | a s p e l l | a u t o m y s q l b a c k u p | a w k | b a s e n a m e | b a s h | b c | b c o n s o l e | b g | b z i p 2 | c a l | c a r g o | c a t | c f d i s k | c h g r p | c h k c o n f i g | c h m o d | c h o w n | c h r o o t | c k s u m | c l e a r | c m p | c o l u m n | c o m m | c o m p o s e r | c p | c r o n | c r o n t a b | c s p l i t | c u r l | c u t | d a t e | d c | d d | d d r e s c u e | d e b o o t s t r a p | d f | d i f f | d i f f 3 | d i g | d i r | d i r c o l o r s | d i r n a m e | d i r s | d m e s g | d o c k e r | d o c k e r - c o m p o s e | d u | e g r e p | e j e c t | e n v | e t h t o o l | e x p a n d | e x p e c t | e x p r | f d f o r m a t | f d i s k | f g | f g r e p | f i l e | f i n d | f m t | f o l d | f o r m a t | f r e e | f s c k | f t p | f u s e r | g a w k | g i t | g p a r t e d | g r e p | g r o u p a d d | g r o u p d e l | g r o u p m o d | g r o u p s | g r u b - m k c o n f i g | g z i p | h a l t | h e a d | h g | h i s t o r y | h o s t | h o s t n a m e | h t o p | i c o n v | i d | i f c o n f i g | i f d o w n | i f u p | i m p o r t | i n s t a l l | i p | j a v a | j o b s | j o i n | k i l l | k i l l a l l | l e s s | l i n k | l n | l o c a t e | l o g n a m e | l o g r o t a t e | l o o k | l p c | l p r | l p r i n t | l p r i n t d | l p r i n t q | l p r m | l s | l s o f | l y n x | m a k e | m a n | m c | m d a d m | m k c o n f i g | m k d i r | m k e 2 f s | m k f i f o | m k f s | m k i s o f s | m k n o d | m k s w a p | m m v | m o r e | m o s t | m o u n t | m t o o l s
Prism . languages . basic = { comment : { pattern : /(?:!|REM\b).+/i , inside : { keyword : /^REM/i } } , string : { pattern : /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/ , greedy : ! 0 } , number : /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i , keyword : /\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i , function : /\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i , operator : /<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i , punctuation : /[,;:()]/ } ;
! function ( e ) { var r = /%%?[~:\w]+%?|!\S+!/ , t = { pattern : /\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im , alias : "attr-name" , inside : { punctuation : /:/ } } , n = /"(?:[\\"]"|[^"])*"(?!")/ , i = /(?:\b|-)\d+\b/ ; e . languages . batch = { comment : [ /^::.*/m , { pattern : /((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im , lookbehind : ! 0 } ] , label : { pattern : /^:.*/m , alias : "property" } , command : [ { pattern : /((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im , lookbehind : ! 0 , inside : { keyword : /\b(?:do|in)\b|^for\b/i , string : n , parameter : t , variable : r , number : i , punctuation : /[()',]/ } } , { pattern : /((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im , lookbehind : ! 0 , inside : { keyword : /\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i , string : n , parameter : t , variable : r , number : i , operator : /\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i } } , { pattern : /((?:^|[&()])[ \t]*)else\b/im , lookbehind : ! 0 , inside : { keyword : /^else\b/i } } , { pattern : /((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im , lookbehind : ! 0 , inside : { keyword : /^set\b/i , string : n , parameter : t , variable : [ r , /\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/ ] , number : i , operator : /[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/ , punctuation : /[()',]/ } } , { pattern : /((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m , lookbehind : ! 0 , inside : { keyword : /^\w+\b/ , string : n , parameter : t , label : { pattern : /(^\s*):\S+/m , lookbehind : ! 0 , alias : "property" } , variable : r , number : i , operator : /\^/ } } ] , operator : /[&@]/ , punctuation : /[()']/ } } ( Prism ) ;
Prism . languages . bbcode = { tag : { pattern : /\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/ , inside : { tag : { pattern : /^\[\/?[^\s=\]]+/ , inside : { punctuation : /^\[\/?/ } } , "attr-value" : { pattern : /=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/ , inside : { punctuation : [ /^=/ , { pattern : /^(\s*)["']|["']$/ , lookbehind : ! 0 } ] } } , punctuation : /\]/ , "attr-name" : /[^\s=\]]+/ } } } , Prism . languages . shortcode = Prism . languages . bbcode ;
2023-06-22 14:54:33 +02:00
Prism . languages . cmake = { comment : /#.*/ , string : { pattern : /"(?:[^\\"]|\\.)*"/ , greedy : ! 0 , inside : { interpolation : { pattern : /\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/ , inside : { punctuation : /\$\{|\}/ , variable : /\w+/ } } } } , variable : /\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/ , property : / \ b ( ? : c x x _ \ w + | ( ? : A R C H I V E _ O U T P U T _ ( ? : D I R E C T O R Y | N A M E ) | C O M P I L E _ D E F I N I T I O N S | C O M P I L E _ P D B _ N A M E | C O M P I L E _ P D B _ O U T P U T _ D I R E C T O R Y | E X C L U D E _ F R O M _ D E F A U L T _ B U I L D | I M P O R T E D _ ( ? : I M P L I B | L I B N A M E | L I N K _ D E P E N D E N T _ L I B R A R I E S | L I N K _ I N T E R F A C E _ L A N G U A G E S | L I N K _ I N T E R F A C E _ L I B R A R I E S | L I N K _ I N T E R F A C E _ M U L T I P L I C I T Y | L O C A T I O N | N O _ S O N A M E | O B J E C T S | S O N A M E ) | I N T E R P R O C E D U R A L _ O P T I M I Z A T I O N | L I B R A R Y _ O U T P U T _ D I R E C T O R Y | L I B R A R Y _ O U T P U T _ N A M E | L I N K _ F L A G S | L I N K _ I N T E R F A C E _ L I B R A R I E S | L I N K _ I N T E R F A C E _ M U L T I P L I C I T Y | L O C A T I O N | M A P _ I M P O R T E D _ C O N F I G | O S X _ A R C H I T E C T U R E S | O U T P U T _ N A M E | P D B _ N A M E | P D B _ O U T P U T _ D I R E C T O R Y | R U N T I M E _ O U T P U T _ D I R E C T O R Y | R U N T I M E _ O U T P U T _ N A M E | S T A T I C _ L I B R A R Y _ F L A G S | V S _ C S H A R P | V S _ D O T N E T _ R E F E R E N C E P R O P | V S _ D O T N E T _ R E F E R E N C E | V S _ G L O B A L _ S E C T I O N _ P O S T | V S _ G L O B A L _ S E C T I O N _ P R E | V S _ G L O B A L | X C O D E _ A T T R I B U T E ) _ \ w + | \ w + _ ( ? : C L A N G _ T I D Y | C O M P I L E R _ L A U N C H E R | C P P C H E C K | C P P L I N T | I N C L U D E _ W H A T _ Y O U _ U S E | O U T P U T _ N A M E | P O S T F I X | V I S I B I L I T Y _ P R E S E T ) | A B S T R A C T | A D D I T I O N A L _ M A K E _ C L E A N _ F I L E S | A D V A N C E D | A L I A S E D _ T A R G E T | A L L O W _ D U P L I C A T E _ C U S T O M _ T A R G E T S | A N D R O I D _ ( ? : A N T _ A D D I T I O N A L _ O P T I O N S | A P I | A P I _ M I N | A R C H | A S S E T S _ D I R E C T O R I E S | G U I | J A R _ D E P E N D E N C I E S | N A T I V E _ L I B _ D E P E N D E N C I E S | N A T I V E _ L I B _ D I R E C T O R I E S | P R O C E S S _ M A X | P R O G U A R D | P R O G U A R D _ C O N F I G _ P A T H | S E C U R E _ P R O P S _ P A T H | S K I P _ A N T _ S T E P | S T L _ T Y P E ) | A R C H I V E _ O U T P U T _ D I R E C T O R Y | A T T A C H E D _ F I L E S | A T T A C H E D _ F I L E S _ O N _ F A I L | A U T O G E N _ ( ? : B U I L D _ D I R | O R I G I N _ D E P E N D S | P A R A L L E L | S O U R C E _ G R O U P | T A R G E T S _ F O L D E R | T A R G E T _ D E P E N D S ) | A U T O M O C | A U T O M O C _ ( ? : C O M P I L E R _ P R E D E F I N E S | D E P E N D _ F I L T E R S | E X E C U T A B L E | M A C R O _ N A M E S | M O C _ O P T I O N S | S O U R C E _ G R O U P | T A R G E T S _ F O L D E R ) | A U T O R C C | A U T O R C C _ E X E C U T A B L E | A U T O R C C _ O P T I O N S | A U T O R C C _ S O U R C E _ G R O U P | A U T O U I C | A U T O U I C _ E X E C U T A B L E | A U T O U I C _ O P T I O N S | A U T O U I C _ S E A R C H _ P A T H S | B I N A R Y _ D I R | B U I L D S Y S T E M _ T A R G E T S | B U I L D _ R P A T H | B U I L D _ R P A T H _ U S E _ O R I G I N | B U I L D _ W I T H _ I N S T A L L _ N A M E _ D I R | B U I L D _ W I T H _ I N S T A L L _ R P A T H | B U N D L E | B U N D L E _ E X T E N S I O N | C A C H E _ V A R I A B L E S | C L E A N _ N O _ C U S T O M | C O M M O N _ L A N G U A G E _ R U N T I M E | C O M P A T I B L E _ I N T E R F A C E _ ( ? : B O O L | N U M B E R _ M A X | N U M B E R _ M I N | S T R I N G ) | C O M P I L E _ ( ? : D E F I N I T I O N S | F E A T U R E S | F L A G S | O P T I O N S | P D B _ N A M E | P D B _ O U T P U T _ D I R E C T O R Y ) | C O S T | C P A C K _ D E S K T O P _ S H O R T C U T S | C P A C K _ N E V E R _ O V E R W R I T E | C P A C K _ P E R M A N E N T | C P A C K _ S T A R T U P _ S H O R T C U T S | C P A C K _ S T A R T _ M E N U _ S H O R T C U T S | C P A C K _ W I X _ A C L | C R O S S C O M P I L I N G _ E M U L A T O R | C U D A _ E X T E N S I O N S | C U D A _ P T X _ C O M P I L A T I O N | C U D A _ R E S O L V E _ D E V I C E _ S
2023-06-21 01:11:10 +02:00
Prism . languages . csv = { value : /[^\r\n,"]+|"(?:[^"]|"")*"(?!")/ , punctuation : /,/ } ;
! function ( e ) { e . languages . diff = { coord : [ /^(?:\*{3}|-{3}|\+{3}).*$/m , /^@@.*@@$/m , /^\d.*$/m ] } ; var n = { "deleted-sign" : "-" , "deleted-arrow" : "<" , "inserted-sign" : "+" , "inserted-arrow" : ">" , unchanged : " " , diff : "!" } ; Object . keys ( n ) . forEach ( ( function ( a ) { var i = n [ a ] , r = [ ] ; /^\w+$/ . test ( a ) || r . push ( /\w+/ . exec ( a ) [ 0 ] ) , "diff" === a && r . push ( "bold" ) , e . languages . diff [ a ] = { pattern : RegExp ( "^(?:[" + i + "].*(?:\r\n?|\n|(?![\\s\\S])))+" , "m" ) , alias : r , inside : { line : { pattern : /(.)(?=[\s\S]).*(?:\r\n?|\n)?/ , lookbehind : ! 0 } , prefix : { pattern : /[\s\S]/ , alias : /\w+/ . exec ( a ) [ 0 ] } } } } ) ) , Object . defineProperty ( e . languages . diff , "PREFIXES" , { value : n } ) } ( Prism ) ;
2023-06-22 14:54:33 +02:00
! function ( e ) { var n = "(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)" . replace ( /<SP_BS>/g , ( function ( ) { return "\\\\[\r\n](?:\\s|\\\\[\r\n]|#.*(?!.))*(?![\\s#]|\\\\[\r\n])" } ) ) , r = "\"(?:[^\"\\\\\r\n]|\\\\(?:\r\n|[^]))*\"|'(?:[^'\\\\\r\n]|\\\\(?:\r\n|[^]))*'" , t = "--[\\w-]+=(?:<STR>|(?![\"'])(?:[^\\s\\\\]|\\\\.)+)" . replace ( /<STR>/g , ( function ( ) { return r } ) ) , o = { pattern : RegExp ( r ) , greedy : ! 0 } , i = { pattern : /(^[ \t]*)#.*/m , lookbehind : ! 0 , greedy : ! 0 } ; function a ( e , r ) { return e = e . replace ( /<OPT>/g , ( function ( ) { return t } ) ) . replace ( /<SP>/g , ( function ( ) { return n } ) ) , RegExp ( e , r ) } e . languages . docker = { instruction : { pattern : /(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im , lookbehind : ! 0 , greedy : ! 0 , inside : { options : { pattern : a ( "(^(?:ONBUILD<SP>)?\\w+<SP>)<OPT>(?:<SP><OPT>)*" , "i" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { property : { pattern : /(^|\s)--[\w-]+/ , lookbehind : ! 0 } , string : [ o , { pattern : /(=)(?!["'])(?:[^\s\\]|\\.)+/ , lookbehind : ! 0 } ] , operator : /\\$/m , punctuation : /=/ } } , keyword : [ { pattern : a ( "(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\\b" , "i" ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : a ( "(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\\\]+<SP>)AS" , "i" ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : a ( "(^ONBUILD<SP>)\\w+" , "i" ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /^\w+/ , greedy : ! 0 } ] , comment : i , string : o , variable : /\$(?:\w+|\{[^{}"'\\]*\})/ , operator : /\\$/m } } , comment : i } , e . languages . dockerfile = e . languages . docker } ( Prism ) ;
Prism . languages . git = { comment : /^#.*/m , deleted : /^[-– ].*/m , inserted : /^\+.*/m , string : /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/ , command : { pattern : /^.*\$ git .*$/m , inside : { parameter : /\s--?\w+/ } } , coord : /^@@.*@@$/m , "commit-sha1" : /^commit \w{40}$/m } ;
2023-06-21 01:11:10 +02:00
Prism . languages . go = Prism . languages . extend ( "clike" , { string : { pattern : /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/ , lookbehind : ! 0 , greedy : ! 0 } , keyword : /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/ , boolean : /\b(?:_|false|iota|nil|true)\b/ , number : [ /\b0(?:b[01_]+|o[0-7_]+)i?\b/i , /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i , /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i ] , operator : /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./ , builtin : /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ } ) , Prism . languages . insertBefore ( "go" , "string" , { char : { pattern : /'(?:\\.|[^'\\\r\n]){0,10}'/ , greedy : ! 0 } } ) , delete Prism . languages . go [ "class-name" ] ;
! function ( t ) { function a ( t ) { return RegExp ( "(^(?:" + t + "):[ \t]*(?![ \t]))[^]+" , "i" ) } t . languages . http = { "request-line" : { pattern : /^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m , inside : { method : { pattern : /^[A-Z]+\b/ , alias : "property" } , "request-target" : { pattern : /^(\s)(?:https?:\/\/|\/)\S*(?=\s)/ , lookbehind : ! 0 , alias : "url" , inside : t . languages . uri } , "http-version" : { pattern : /^(\s)HTTP\/[\d.]+/ , lookbehind : ! 0 , alias : "property" } } } , "response-status" : { pattern : /^HTTP\/[\d.]+ \d+ .+/m , inside : { "http-version" : { pattern : /^HTTP\/[\d.]+/ , alias : "property" } , "status-code" : { pattern : /^(\s)\d+(?=\s)/ , lookbehind : ! 0 , alias : "number" } , "reason-phrase" : { pattern : /^(\s).+/ , lookbehind : ! 0 , alias : "string" } } } , header : { pattern : /^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m , inside : { "header-value" : [ { pattern : a ( "Content-Security-Policy" ) , lookbehind : ! 0 , alias : [ "csp" , "languages-csp" ] , inside : t . languages . csp } , { pattern : a ( "Public-Key-Pins(?:-Report-Only)?" ) , lookbehind : ! 0 , alias : [ "hpkp" , "languages-hpkp" ] , inside : t . languages . hpkp } , { pattern : a ( "Strict-Transport-Security" ) , lookbehind : ! 0 , alias : [ "hsts" , "languages-hsts" ] , inside : t . languages . hsts } , { pattern : a ( "[^:]+" ) , lookbehind : ! 0 } ] , "header-name" : { pattern : /^[^:]+/ , alias : "keyword" } , punctuation : /^:/ } } } ; var e , n = t . languages , s = { "application/javascript" : n . javascript , "application/json" : n . json || n . javascript , "application/xml" : n . xml , "text/xml" : n . xml , "text/html" : n . html , "text/css" : n . css , "text/plain" : n . plain } , i = { "application/json" : ! 0 , "application/xml" : ! 0 } ; function r ( t ) { var a = t . replace ( /^[a-z]+\// , "" ) ; return "(?:" + t + "|\\w+/(?:[\\w.-]+\\+)+" + a + "(?![+\\w.-]))" } for ( var p in s ) if ( s [ p ] ) { e = e || { } ; var l = i [ p ] ? r ( p ) : p ; e [ p . replace ( /\//g , "-" ) ] = { pattern : RegExp ( "(content-type:\\s*" + l + "(?:(?:\r\n?|\n)[\\w-].*)*(?:\r(?:\n|(?!\n))|\n))[^ \t\\w-][^]*" , "i" ) , lookbehind : ! 0 , inside : s [ p ] } } e && t . languages . insertBefore ( "http" , "header" , e ) } ( Prism ) ;
Prism . languages . ini = { comment : { pattern : /(^[ \f\t\v]*)[#;][^\n\r]*/m , lookbehind : ! 0 } , section : { pattern : /(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m , lookbehind : ! 0 , inside : { "section-name" : { pattern : /(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/ , lookbehind : ! 0 , alias : "selector" } , punctuation : /\[|\]/ } } , key : { pattern : /(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m , lookbehind : ! 0 , alias : "attr-name" } , value : { pattern : /(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/ , lookbehind : ! 0 , alias : "attr-value" , inside : { "inner-value" : { pattern : /^("|').+(?=\1$)/ , lookbehind : ! 0 } } } , punctuation : /=/ } ;
! function ( e ) { var n = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/ , t = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*" , s = { pattern : RegExp ( "(^|[^\\w.])" + t + "[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b" ) , lookbehind : ! 0 , inside : { namespace : { pattern : /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/ , inside : { punctuation : /\./ } } , punctuation : /\./ } } ; e . languages . java = e . languages . extend ( "clike" , { string : { pattern : /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/ , lookbehind : ! 0 , greedy : ! 0 } , "class-name" : [ s , { pattern : RegExp ( "(^|[^\\w.])" + t + "[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)" ) , lookbehind : ! 0 , inside : s . inside } , { pattern : RegExp ( "(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)" + t + "[A-Z]\\w*\\b" ) , lookbehind : ! 0 , inside : s . inside } ] , keyword : n , function : [ e . languages . clike . function , { pattern : /(::\s*)[a-z_]\w*/ , lookbehind : ! 0 } ] , number : /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i , operator : { pattern : /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m , lookbehind : ! 0 } , constant : /\b[A-Z][A-Z_\d]+\b/ } ) , e . languages . insertBefore ( "java" , "string" , { "triple-quoted-string" : { pattern : /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/ , greedy : ! 0 , alias : "string" } , char : { pattern : /'(?:\\.|[^'\\\r\n]){1,6}'/ , greedy : ! 0 } } ) , e . languages . insertBefore ( "java" , "class-name" , { annotation : { pattern : /(^|[^.])@\w+(?:\s*\.\s*\w+)*/ , lookbehind : ! 0 , alias : "punctuation" } , generics : { pattern : /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/ , inside : { "class-name" : s , keyword : n , punctuation : /[<>(),.:]/ , operator : /[?&|]/ } } , import : [ { pattern : RegExp ( "(\\bimport\\s+)" + t + "(?:[A-Z]\\w*|\\*)(?=\\s*;)" ) , lookbehind : ! 0 , inside : { namespace : s . inside . namespace , punctuation : /\./ , operator : /\*/ , "class-name" : /\w+/ } } , { pattern : RegExp ( "(\\bimport\\s+static\\s+)" + t + "(?:\\w+|\\*)(?=\\s*;)" ) , lookbehind : ! 0 , alias : "static" , inside : { namespace : s . inside . namespace , static : /\b\w+$/ , punctuation : /\./ , operator : /\*/ , "class-name" : /\w+/ } } ] , namespace : { pattern : RegExp ( "(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?" . replace ( /<keyword>/g , ( function ( ) { return n . source } ) ) ) , lookbehind : ! 0 , inside : { punctuation : /\./ } } } ) } ( Prism ) ;
Prism . languages . json = { property : { pattern : /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/ , lookbehind : ! 0 , greedy : ! 0 } , string : { pattern : /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/ , lookbehind : ! 0 , greedy : ! 0 } , comment : { pattern : /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/ , greedy : ! 0 } , number : /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i , punctuation : /[{}[\],]/ , operator : /:/ , boolean : /\b(?:false|true)\b/ , null : { pattern : /\bnull\b/ , alias : "keyword" } } , Prism . languages . webmanifest = Prism . languages . json ;
Prism . languages . log = { string : { pattern : /"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/ , greedy : ! 0 } , exception : { pattern : /(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/ , lookbehind : ! 0 , greedy : ! 0 , alias : [ "javastacktrace" , "language-javastacktrace" ] , inside : Prism . languages . javastacktrace || { keyword : /\bat\b/ , function : /[a-z_][\w$]*(?=\()/ , punctuation : /[.:()]/ } } , level : [ { pattern : /\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/ , alias : [ "error" , "important" ] } , { pattern : /\b(?:WARN|WARNING|WRN)\b/ , alias : [ "warning" , "important" ] } , { pattern : /\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/ , alias : [ "info" , "keyword" ] } , { pattern : /\b(?:DBG|DEBUG|FINE)\b/ , alias : [ "debug" , "keyword" ] } , { pattern : /\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/ , alias : [ "trace" , "comment" ] } ] , property : { pattern : /((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im , lookbehind : ! 0 } , separator : { pattern : /(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m , lookbehind : ! 0 , alias : "comment" } , url : /\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/ , email : { pattern : /(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/ , lookbehind : ! 0 , alias : "url" } , "ip-address" : { pattern : /\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/ , alias : "constant" } , "mac-address" : { pattern : /\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i , alias : "constant" } , domain : { pattern : /(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/ , lookbehind : ! 0 , alias : "constant" } , uuid : { pattern : /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i , alias : "constant" } , hash : { pattern : /\b(?:[a-f0-9]{32}){1,2}\b/i , alias : "constant" } , "file-path" : { pattern : /\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i , lookbehind : ! 0 , greedy : ! 0 , alias : "string" } , date : { pattern : RegExp ( "\\b\\d{4}[-/]\\d{2}[-/]\\d{2}(?:T(?=\\d{1,2}:)|(?=\\s\\d{1,2}:))|\\b\\d{1,4}[-/ ](?:\\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\\d{2,4}T?\\b|\\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\\s{1,2}\\d{1,2}\\b" , "i" ) , alias : "number" } , time : { pattern : /\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/ , alias : "number" } , boolean : /\b(?:false|null|true)\b/i , number : { pattern : /(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i , lookbehind : ! 0 } , operator : /[;:?<=>~/@!$%&+\-|^(){}*#]/ , punctuation : /[\[\].,]/ } ;
Prism . languages . makefile = { comment : { pattern : /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/ , lookbehind : ! 0 } , string : { pattern : /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy : ! 0 } , "builtin-target" : { pattern : /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/ , alias : "builtin" } , target : { pattern : /^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m , alias : "symbol" , inside : { variable : /\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/ } } , variable : /\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/ , keyword : /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/ , function : { pattern : /(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/ , lookbehind : ! 0 } , operator : /(?:::|[?:+!])?=|[|@]/ , punctuation : /[:;(){}]/ } ;
! function ( n ) { function e ( n ) { return n = n . replace ( /<inner>/g , ( function ( ) { return "(?:\\\\.|[^\\\\\n\r]|(?:\n|\r\n?)(?![\r\n]))" } ) ) , RegExp ( "((?:^|[^\\\\])(?:\\\\{2})*)(?:" + n + ")" ) } var t = "(?:\\\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\\\|\r\n`])+" , a = "\\|?__(?:\\|__)+\\|?(?:(?:\n|\r\n?)|(?![^]))" . replace ( /__/g , ( function ( ) { return t } ) ) , i = "\\|?[ \t]*:?-{3,}:?[ \t]*(?:\\|[ \t]*:?-{3,}:?[ \t]*)+\\|?(?:\n|\r\n?)" ; n . languages . markdown = n . languages . extend ( "markup" , { } ) , n . languages . insertBefore ( "markdown" , "prolog" , { "front-matter-block" : { pattern : /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/ , lookbehind : ! 0 , greedy : ! 0 , inside : { punctuation : /^---|---$/ , "front-matter" : { pattern : /\S+(?:\s+\S+)*/ , alias : [ "yaml" , "language-yaml" ] , inside : n . languages . yaml } } } , blockquote : { pattern : /^>(?:[\t ]*>)*/m , alias : "punctuation" } , table : { pattern : RegExp ( "^" + a + i + "(?:" + a + ")*" , "m" ) , inside : { "table-data-rows" : { pattern : RegExp ( "^(" + a + i + ")(?:" + a + ")*$" ) , lookbehind : ! 0 , inside : { "table-data" : { pattern : RegExp ( t ) , inside : n . languages . markdown } , punctuation : /\|/ } } , "table-line" : { pattern : RegExp ( "^(" + a + ")" + i + "$" ) , lookbehind : ! 0 , inside : { punctuation : /\||:?-{3,}:?/ } } , "table-header-row" : { pattern : RegExp ( "^" + a + "$" ) , inside : { "table-header" : { pattern : RegExp ( t ) , alias : "important" , inside : n . languages . markdown } , punctuation : /\|/ } } } } , code : [ { pattern : /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/ , lookbehind : ! 0 , alias : "keyword" } , { pattern : /^```[\s\S]*?^```$/m , greedy : ! 0 , inside : { "code-block" : { pattern : /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m , lookbehind : ! 0 } , "code-language" : { pattern : /^(```).+/ , lookbehind : ! 0 } , punctuation : /```/ } } ] , title : [ { pattern : /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m , alias : "important" , inside : { punctuation : /==+$|--+$/ } } , { pattern : /(^\s*)#.+/m , lookbehind : ! 0 , alias : "important" , inside : { punctuation : /^#+|#+$/ } } ] , hr : { pattern : /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m , lookbehind : ! 0 , alias : "punctuation" } , list : { pattern : /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m , lookbehind : ! 0 , alias : "punctuation" } , "url-reference" : { pattern : /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/ , inside : { variable : { pattern : /^(!?\[)[^\]]+/ , lookbehind : ! 0 } , string : /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/ , punctuation : /^[\[\]!:]|[<>]/ } , alias : "url" } , bold : { pattern : e ( "\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { content : { pattern : /(^..)[\s\S]+(?=..$)/ , lookbehind : ! 0 , inside : { } } , punctuation : /\*\*|__/ } } , italic : { pattern : e ( "\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { content : { pattern : /(^.)[\s\S]+(?=.$)/ , lookbehind : ! 0 , inside : { } } , punctuation : /[*_]/ } } , strike : { pattern : e ( "(~~?)(?:(?!~)<inner>)+\\2" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { content : { pattern : /(^~~?)[\s\S]+(?=\1$)/ , lookbehind : ! 0 , inside : { } } , punctuation : /~~?/ } } , "code-snippet" : { pattern : /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/ , lookbehind : ! 0 , greedy : ! 0 , alias : [ "code" , "keyword" ] } , url : { pattern : e ( '!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \t]?\\[(?:(?!\\])<inner>)+\\])' ) , lookbehind : ! 0 , greedy : ! 0 , inside : { operator : /^!/ , content : { pattern : /(^\[)[^\]]+(?=\])/ , lookbehind : ! 0 , inside : { } } , variable : { pattern : /(^\][ \t]?\[)[^\]]+(?=\]$)/ , lookbehind : ! 0 } , url : { pattern : /(^\]\()[^\s)]+/ , lookbehind : ! 0 } , string : { pattern : /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/ , lookbehind : ! 0 } } } } ) , [ "url" , "bold" , "italic" , "strike" ] . forEach ( ( function ( e ) { [ "url" , "bold" , "italic" , "strike" , "code-snippet" ] . forEach ( ( function ( t ) { e !== t && ( n . languages . markdown [ e ] . inside . content . inside [ t ] = n . languages . markdown [ t ] ) } ) ) } ) ) , n . hooks . add ( "after-tokenize" , ( function ( n ) { "markdown" !== n . language && "md" !== n . language || function n ( e ) { if ( e && "string" != typeof e ) for ( var t = 0 , a = e . length ; t < a ; t ++ ) { var i = e [ t ] ; if ( "code" === i . type ) { var r = i . content [ 1 ] , o = i . content [ 3 ] ; if ( r && o && "code-language" === r . type && "code-block" === o . type && "string" == typeof r . content ) { var l = r . content . replace ( /\b#/g , "sharp" ) . replace ( /\b\+\+/g , "pp" ) , s = "language-" + (
2023-06-20 23:57:24 +02:00
! function ( e ) { function n ( e , n ) { return "___" + e . toUpperCase ( ) + n + "___" } Object . defineProperties ( e . languages [ "markup-templating" ] = { } , { buildPlaceholders : { value : function ( t , a , r , o ) { if ( t . language === a ) { var c = t . tokenStack = [ ] ; t . code = t . code . replace ( r , ( function ( e ) { if ( "function" == typeof o && ! o ( e ) ) return e ; for ( var r , i = c . length ; - 1 !== t . code . indexOf ( r = n ( a , i ) ) ; ) ++ i ; return c [ i ] = e , r } ) ) , t . grammar = e . languages . markup } } } , tokenizePlaceholders : { value : function ( t , a ) { if ( t . language === a && t . tokenStack ) { t . grammar = e . languages [ a ] ; var r = 0 , o = Object . keys ( t . tokenStack ) ; ! function c ( i ) { for ( var u = 0 ; u < i . length && ! ( r >= o . length ) ; u ++ ) { var g = i [ u ] ; if ( "string" == typeof g || g . content && "string" == typeof g . content ) { var l = o [ r ] , s = t . tokenStack [ l ] , f = "string" == typeof g ? g : g . content , p = n ( a , l ) , k = f . indexOf ( p ) ; if ( k > - 1 ) { ++ r ; var m = f . substring ( 0 , k ) , d = new e . Token ( a , e . tokenize ( s , t . grammar ) , "language-" + a , s ) , h = f . substring ( k + p . length ) , v = [ ] ; m && v . push . apply ( v , c ( [ m ] ) ) , v . push ( d ) , h && v . push . apply ( v , c ( [ h ] ) ) , "string" == typeof g ? i . splice . apply ( i , [ u , 1 ] . concat ( v ) ) : g . content = v } } else g . content && c ( g . content ) } return i } ( t . tokens ) } } } } ) } ( Prism ) ;
2023-06-21 01:11:10 +02:00
! function ( e ) { var n = /\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i ; e . languages . nginx = { comment : { pattern : /(^|[\s{};])#.*/ , lookbehind : ! 0 , greedy : ! 0 } , directive : { pattern : /(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/ , lookbehind : ! 0 , greedy : ! 0 , inside : { string : { pattern : /((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/ , lookbehind : ! 0 , greedy : ! 0 , inside : { escape : { pattern : /\\["'\\nrt]/ , alias : "entity" } , variable : n } } , comment : { pattern : /(\s)#.*/ , lookbehind : ! 0 , greedy : ! 0 } , keyword : { pattern : /^\S+/ , greedy : ! 0 } , boolean : { pattern : /(\s)(?:off|on)(?!\S)/ , lookbehind : ! 0 } , number : { pattern : /(\s)\d+[a-z]*(?!\S)/i , lookbehind : ! 0 } , variable : n } } , punctuation : /[{};]/ } } ( Prism ) ;
2023-06-22 14:54:33 +02:00
Prism . languages . pascal = { directive : { pattern : /\{\$[\s\S]*?\}/ , greedy : ! 0 , alias : [ "marco" , "property" ] } , comment : { pattern : /\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/ , greedy : ! 0 } , string : { pattern : /(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i , greedy : ! 0 } , asm : { pattern : /(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i , lookbehind : ! 0 , greedy : ! 0 , inside : null } , keyword : [ { pattern : /(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i , lookbehind : ! 0 } , { pattern : /(^|[^&])\b(?:dispose|exit|false|new|true)\b/i , lookbehind : ! 0 } , { pattern : /(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i , lookbehind : ! 0 } , { pattern : /(^|[^&])\b(?: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|iochecks|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)\b/i , lookbehind : ! 0 } ] , number : [ /(?:[&%]\d+|\$[a-f\d]+)/i , /\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i ] , operator : [ /\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/ , { pattern : /(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/ , lookbehind : ! 0 } ] , punctuation : /\(\.|\.\)|[()\[\]:;,.]/ } , Prism . languages . pascal . asm . inside = Prism . languages . extend ( "pascal" , { asm : void 0 , keyword : void 0 , operator : void 0 } ) , Prism . languages . objectpascal = Prism . languages . pascal ;
2023-06-21 01:11:10 +02:00
! function ( e ) { var n = "(?:\\((?:[^()\\\\]|\\\\[^])*\\)|\\{(?:[^{}\\\\]|\\\\[^])*\\}|\\[(?:[^[\\]\\\\]|\\\\[^])*\\]|<(?:[^<>\\\\]|\\\\[^])*>)" ; e . languages . perl = { comment : [ { pattern : /(^\s*)=\w[\s\S]*?=cut.*/m , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^\\$])#.*/ , lookbehind : ! 0 , greedy : ! 0 } ] , string : [ { pattern : RegExp ( "\\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\\s*(?:" + [ "([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1" , "([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[^])*\\2" , n ] . join ( "|" ) + ")" ) , greedy : ! 0 } , { pattern : /("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/ , greedy : ! 0 } , { pattern : /'(?:[^'\\\r\n]|\\.)*'/ , greedy : ! 0 } ] , regex : [ { pattern : RegExp ( "\\b(?:m|qr)(?![a-zA-Z0-9])\\s*(?:" + [ "([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1" , "([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[^])*\\2" , n ] . join ( "|" ) + ")[msixpodualngc]*" ) , greedy : ! 0 } , { pattern : RegExp ( "(^|[^-])\\b(?:s|tr|y)(?![a-zA-Z0-9])\\s*(?:" + [ "([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\2)[^\\\\]|\\\\[^])*\\2(?:(?!\\2)[^\\\\]|\\\\[^])*\\2" , "([a-zA-Z0-9])(?:(?!\\3)[^\\\\]|\\\\[^])*\\3(?:(?!\\3)[^\\\\]|\\\\[^])*\\3" , n + "\\s*" + n ] . join ( "|" ) + ")[msixpodualngcer]*" ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/ , greedy : ! 0 } ] , variable : [ /[&*$@%]\{\^[A-Z]+\}/ , /[&*$@%]\^[A-Z_]/ , /[&*$@%]#?(?=\{)/ , /[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/ , /[&*$@%]\d+/ , /(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/ ] , filehandle : { pattern : /<(?![<=])\S*?>|\b_\b/ , alias : "symbol" } , "v-string" : { pattern : /v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/ , alias : "string" } , function : { pattern : /(\bsub[ \t]+)\w+/ , lookbehind : ! 0 } , keyword : /\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/ , number : /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/ , operator : /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/ , punctuation : /[{}[\];(),:]/ } } ( Prism ) ;
2023-06-20 23:57:24 +02:00
! function ( e ) { var a = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/ , t = [ { pattern : /\b(?:false|true)\b/i , alias : "boolean" } , { pattern : /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i , greedy : ! 0 , lookbehind : ! 0 } , /\b(?:null)\b/i , /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/ ] , i = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i , n = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/ , s = /[{}\[\](),:;]/ ; e . languages . php = { delimiter : { pattern : /\?>$|^<\?(?:php(?=\s)|=)?/i , alias : "important" } , comment : a , variable : /\$+(?:\w+\b|(?=\{))/ , package : { pattern : /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i , lookbehind : ! 0 , inside : { punctuation : /\\/ } } , "class-name-definition" : { pattern : /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i , lookbehind : ! 0 , alias : "class-name" } , "function-definition" : { pattern : /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i , lookbehind : ! 0 , alias : "function" } , keyword : [ { pattern : /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i , alias : "type-casting" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i , alias : "type-hint" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i , alias : "return-type" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i , alias : "type-declaration" , greedy : ! 0 } , { pattern : /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i , alias : "type-declaration" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /\b(?:parent|self|static)(?=\s*::)/i , alias : "static-context" , greedy : ! 0 } , { pattern : /(\byield\s+)from\b/i , lookbehind : ! 0 } , /\bclass\b/i , { pattern : /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i , lookbehind : ! 0 } ] , "argument-name" : { pattern : /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i , lookbehind : ! 0 } , "class-name" : [ { pattern : /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /(\|\s*)\b[a-z_]\w*(?!\\)\b/i , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i , greedy : ! 0 } , { pattern : /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i , alias : "class-name-fully-qualified" , greedy : ! 0 , lookbehind : ! 0 , inside : { punctuation : /\\/ } } , { pattern : /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i , alias : "class-name-fully-qualified" , greedy : ! 0 , inside : { punctuation : /\\/ } } , { pattern : /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i , alias : "class-name-fully-qualified" , greedy : ! 0 , lookbehind : ! 0 , inside : { punctuation : /\\/ } } , { pattern : /\b[a-z_]\w*(?=\s*\$)/i , alias : "type-declaration" , greedy : ! 0 } , { pattern : /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i , alias : [ "class-name-fully-qualified" , "type-declaration" ] , greedy : ! 0 , inside : { punctuation : /\\/ } } , { pattern : /\b[a-z_]\w*(?=\s*::)/i , alias : "static-context" , greedy : ! 0 } , { pattern : /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i , alias : [ "class-name-fully-qualified" , "static-context" ] , greedy : ! 0 , inside : { punctuation : /\\/ } } , { pattern : /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i , alias : "type-hint" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i , alias : [ "class-name-fully-qualified" , "type-hint" ] , greedy : ! 0 , lookbehind : ! 0 , inside : { punctuation : /\\/ } } , { pattern : /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i , alias : "return-type" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : / ( \ ) \ s * : \ s * ( ? : \ ? \ s * ) ? ) ( ? : \ \ ? \ b [ a - z _ ] \ w * ) + \ b ( ?
2023-06-21 01:11:10 +02:00
! function ( e ) { var i = e . languages . powershell = { comment : [ { pattern : /(^|[^`])<#[\s\S]*?#>/ , lookbehind : ! 0 } , { pattern : /(^|[^`])#.*/ , lookbehind : ! 0 } ] , string : [ { pattern : /"(?:`[\s\S]|[^`"])*"/ , greedy : ! 0 , inside : null } , { pattern : /'(?:[^']|'')*'/ , greedy : ! 0 } ] , namespace : /\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i , boolean : /\$(?:false|true)\b/i , variable : /\$\w+\b/ , function : [ /\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i , /\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i ] , keyword : /\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i , operator : { pattern : /(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i , lookbehind : ! 0 } , punctuation : /[|{}[\];(),.]/ } ; i . string [ 0 ] . inside = { function : { pattern : /(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/ , lookbehind : ! 0 , inside : i } , boolean : i . boolean , variable : i . variable } } ( Prism ) ;
Prism . languages . python = { comment : { pattern : /(^|[^\\])#.*/ , lookbehind : ! 0 , greedy : ! 0 } , "string-interpolation" : { pattern : /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i , greedy : ! 0 , inside : { interpolation : { pattern : /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/ , lookbehind : ! 0 , inside : { "format-spec" : { pattern : /(:)[^:(){}]+(?=\}$)/ , lookbehind : ! 0 } , "conversion-option" : { pattern : /![sra](?=[:}]$)/ , alias : "punctuation" } , rest : null } } , string : /[\s\S]+/ } } , "triple-quoted-string" : { pattern : /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i , greedy : ! 0 , alias : "string" } , string : { pattern : /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i , greedy : ! 0 } , function : { pattern : /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g , lookbehind : ! 0 } , "class-name" : { pattern : /(\bclass\s+)\w+/i , lookbehind : ! 0 } , decorator : { pattern : /(^[\t ]*)@\w+(?:\.\w+)*/m , lookbehind : ! 0 , alias : [ "annotation" , "punctuation" ] , inside : { punctuation : /\./ } } , keyword : /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/ , builtin : /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/ , boolean : /\b(?:False|None|True)\b/ , number : /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i , operator : /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/ , punctuation : /[{}[\];(),.:]/ } , Prism . languages . python [ "string-interpolation" ] . inside . interpolation . inside . rest = Prism . languages . python , Prism . languages . py = Prism . languages . python ;
2023-06-20 23:57:24 +02:00
! function ( e ) { e . languages . ruby = e . languages . extend ( "clike" , { comment : { pattern : /#.*|^=begin\s[\s\S]*?^=end/m , greedy : ! 0 } , "class-name" : { pattern : /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/ , lookbehind : ! 0 , inside : { punctuation : /[.\\]/ } } , keyword : /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/ , operator : /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/ , punctuation : /[(){}[\].,;]/ } ) , e . languages . insertBefore ( "ruby" , "operator" , { "double-colon" : { pattern : /::/ , alias : "punctuation" } } ) ; var n = { pattern : /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/ , lookbehind : ! 0 , inside : { content : { pattern : /^(#\{)[\s\S]+(?=\}$)/ , lookbehind : ! 0 , inside : e . languages . ruby } , delimiter : { pattern : /^#\{|\}$/ , alias : "punctuation" } } } ; delete e . languages . ruby . function ; var t = "(?:" + [ "([^a-zA-Z0-9\\s{(\\[<=])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1" , "\\((?:[^()\\\\]|\\\\[^]|\\((?:[^()\\\\]|\\\\[^])*\\))*\\)" , "\\{(?:[^{}\\\\]|\\\\[^]|\\{(?:[^{}\\\\]|\\\\[^])*\\})*\\}" , "\\[(?:[^\\[\\]\\\\]|\\\\[^]|\\[(?:[^\\[\\]\\\\]|\\\\[^])*\\])*\\]" , "<(?:[^<>\\\\]|\\\\[^]|<(?:[^<>\\\\]|\\\\[^])*>)*>" ] . join ( "|" ) + ")" , i = '(?:"(?:\\\\.|[^"\\\\\r\n])*"|(?:\\b[a-zA-Z_]\\w*|[^\\s\0-\\x7F]+)[?!]?|\\$.)' ; e . languages . insertBefore ( "ruby" , "keyword" , { "regex-literal" : [ { pattern : RegExp ( "%r" + t + "[egimnosux]{0,6}" ) , greedy : ! 0 , inside : { interpolation : n , regex : /[\s\S]+/ } } , { pattern : /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/ , lookbehind : ! 0 , greedy : ! 0 , inside : { interpolation : n , regex : /[\s\S]+/ } } ] , variable : /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/ , symbol : [ { pattern : RegExp ( "(^|[^:]):" + i ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : RegExp ( "([\r\n{(,][ \t]*)" + i + "(?=:(?!:))" ) , lookbehind : ! 0 , greedy : ! 0 } ] , "method-definition" : { pattern : /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/ , lookbehind : ! 0 , inside : { function : /\b\w+$/ , keyword : /^self\b/ , "class-name" : /^\w+/ , punctuation : /\./ } } } ) , e . languages . insertBefore ( "ruby" , "string" , { "string-literal" : [ { pattern : RegExp ( "%[qQiIwWs]?" + t ) , greedy : ! 0 , inside : { interpolation : n , string : /[\s\S]+/ } } , { pattern : /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/ , greedy : ! 0 , inside : { interpolation : n , string : /[\s\S]+/ } } , { pattern : /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i , alias : "heredoc-string" , greedy : ! 0 , inside : { delimiter : { pattern : /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i , inside : { symbol : /\b\w+/ , punctuation : /^<<[-~]?/ } } , interpolation : n , string : /[\s\S]+/ } } , { pattern : /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i , alias : "heredoc-string" , greedy : ! 0 , inside : { delimiter : { pattern : /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i , inside : { symbol : /\b\w+/ , punctuation : /^<<[-~]?'|'$/ } } , string : /[\s\S]+/ } } ] , "command-literal" : [ { pattern : RegExp ( "%x" + t ) , greedy : ! 0 , inside : { interpolation : n , command : { pattern : /[\s\S]+/ , alias : "string" } } } , { pattern : /`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/ , greedy : ! 0 , inside : { interpolation : n , command : { pattern : /[\s\S]+/ , alias : "string" } } } ] } ) , delete e . languages . ruby . string , e . languages . insertBefore ( "ruby" , "number" , { builtin : /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/ , constant : /\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/ } ) , e . languages . rb = e . languages . ruby } ( Prism ) ;
2023-06-21 01:11:10 +02:00
! function ( s ) { var n = [ '"(?:\\\\[^]|\\$\\([^)]+\\)|\\$(?!\\()|`[^`]+`|[^"\\\\`$])*"' , "'[^']*'" , "\\$'(?:[^'\\\\]|\\\\[^])*'" , "<<-?\\s*([\"']?)(\\w+)\\1\\s[^]*?[\r\n]\\2" ] . join ( "|" ) ; s . languages [ "shell-session" ] = { command : { pattern : RegExp ( '^(?:[^\\s@:$#%*!/\\\\]+@[^\r\n@:$#%*!/\\\\]+(?::[^\0-\\x1F$#%*?"<>:;|]+)?|[/~.][^\0-\\x1F$#%*?"<>@:;|]*)?[$#%](?=\\s)' + "(?:[^\\\\\r\n \t'\"<$]|[ \t](?:(?!#)|#.*$)|\\\\(?:[^\r]|\r\n?)|\\$(?!')|<(?!<)|<<str>>)+" . replace ( /<<str>>/g , ( function ( ) { return n } ) ) , "m" ) , greedy : ! 0 , inside : { info : { pattern : /^[^#$%]+/ , alias : "punctuation" , inside : { user : /^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/ , punctuation : /:/ , path : /[\s\S]+/ } } , bash : { pattern : /(^[$#%]\s*)\S[\s\S]*/ , lookbehind : ! 0 , alias : "language-bash" , inside : s . languages . bash } , "shell-symbol" : { pattern : /^[$#%]/ , alias : "important" } } } , output : /.(?:.*(?:[\r\n]|.$))*/ } , s . languages [ "sh-session" ] = s . languages . shellsession = s . languages [ "shell-session" ] } ( Prism ) ;
Prism . languages . sql = { comment : { pattern : /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/ , lookbehind : ! 0 } , variable : [ { pattern : /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/ , greedy : ! 0 } , /@[\w.$]+/ ] , string : { pattern : /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/ , greedy : ! 0 , lookbehind : ! 0 } , identifier : { pattern : /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/ , greedy : ! 0 , lookbehind : ! 0 , inside : { punctuation : /^`|`$/ } } , function : /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i , keyword : /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i , boolean : /\b(?:FALSE|NULL|TRUE)\b/i , number : /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i , operator : /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i , punctuation : /[;[\]()`,.]/ } ;
2023-06-22 14:54:33 +02:00
! function ( e ) { e . languages . typescript = e . languages . extend ( "javascript" , { "class-name" : { pattern : /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/ , lookbehind : ! 0 , greedy : ! 0 , inside : null } , builtin : /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ } ) , e . languages . typescript . keyword . push ( /\b(?:abstract|declare|is|keyof|readonly|require)\b/ , /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/ , /\btype\b(?=\s*(?:[\{*]|$))/ ) , delete e . languages . typescript . parameter , delete e . languages . typescript [ "literal-property" ] ; var s = e . languages . extend ( "typescript" , { } ) ; delete s [ "class-name" ] , e . languages . typescript [ "class-name" ] . inside = s , e . languages . insertBefore ( "typescript" , "function" , { decorator : { pattern : /@[$\w\xA0-\uFFFF]+/ , inside : { at : { pattern : /^@/ , alias : "operator" } , function : /^[\s\S]+/ } } , "generic-function" : { pattern : /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/ , greedy : ! 0 , inside : { function : /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/ , generic : { pattern : /<[\s\S]+/ , alias : "class-name" , inside : s } } } } ) , e . languages . ts = e . languages . typescript } ( Prism ) ;
2023-06-21 01:11:10 +02:00
Prism . languages . vbnet = Prism . languages . extend ( "basic" , { comment : [ { pattern : /(?:!|REM\b).+/i , inside : { keyword : /^REM/i } } , { pattern : /(^|[^\\:])'.*/ , lookbehind : ! 0 , greedy : ! 0 } ] , string : { pattern : /(^|[^"])"(?:""|[^"])*"(?!")/ , lookbehind : ! 0 , greedy : ! 0 } , keyword : /(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i , punctuation : /[,;:(){}]/ } ) ;
2023-06-22 14:54:33 +02:00
Prism . languages [ "visual-basic" ] = { comment : { pattern : /(?:['‘ ’ ]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i , inside : { keyword : /^REM/i } } , directive : { pattern : /#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i , alias : "property" , greedy : ! 0 } , string : { pattern : /\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i , greedy : ! 0 } , date : { pattern : /#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i , alias : "number" } , number : /(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i , boolean : /\b(?:False|Nothing|True)\b/i , keyword : /\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i , operator : /[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/ , punctuation : /[{}().,:?]/ } , Prism . languages . vb = Prism . languages [ "visual-basic" ] , Prism . languages . vba = Prism . languages [ "visual-basic" ] ;
2023-06-21 01:11:10 +02:00
Prism . languages . wiki = Prism . languages . extend ( "markup" , { "block-comment" : { pattern : /(^|[^\\])\/\*[\s\S]*?\*\// , lookbehind : ! 0 , alias : "comment" } , heading : { pattern : /^(=+)[^=\r\n].*?\1/m , inside : { punctuation : /^=+|=+$/ , important : /.+/ } } , emphasis : { pattern : /('{2,5}).+?\1/ , inside : { "bold-italic" : { pattern : /(''''').+?(?=\1)/ , lookbehind : ! 0 , alias : [ "bold" , "italic" ] } , bold : { pattern : /(''')[^'](?:.*?[^'])?(?=\1)/ , lookbehind : ! 0 } , italic : { pattern : /('')[^'](?:.*?[^'])?(?=\1)/ , lookbehind : ! 0 } , punctuation : /^''+|''+$/ } } , hr : { pattern : /^-{4,}/m , alias : "punctuation" } , url : [ /ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i , /\[\[.+?\]\]|\[.+?\]/ ] , variable : [ /__[A-Z]+__/ , /\{{3}.+?\}{3}/ , /\{\{.+?\}\}/ ] , symbol : [ /^#redirect/im , /~{3,5}/ ] , "table-tag" : { pattern : /((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m , lookbehind : ! 0 , inside : { "table-bar" : { pattern : /\|$/ , alias : "punctuation" } , rest : Prism . languages . markup . tag . inside } } , punctuation : /^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m } ) , Prism . languages . insertBefore ( "wiki" , "tag" , { nowiki : { pattern : /<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i , inside : { tag : { pattern : /<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i , inside : Prism . languages . markup . tag . inside } } } } ) ;
! function ( e ) { var n = /[*&][^\s[\]{},]+/ , r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/ , t = "(?:" + r . source + "(?:[ \t]+" + n . source + ")?|" + n . source + "(?:[ \t]+" + r . source + ")?)" , a = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*" . replace ( /<PLAIN>/g , ( function ( ) { return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]" } ) ) , d = "\"(?:[^\"\\\\\r\n]|\\\\.)*\"|'(?:[^'\\\\\r\n]|\\\\.)*'" ; function o ( e , n ) { n = ( n || "" ) . replace ( /m/g , "" ) + "m" ; var r = "([:\\-,[{]\\s*(?:\\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\\]|\\}|(?:[\r\n]\\s*)?#))" . replace ( /<<prop>>/g , ( function ( ) { return t } ) ) . replace ( /<<value>>/g , ( function ( ) { return e } ) ) ; return RegExp ( r , n ) } e . languages . yaml = { scalar : { pattern : RegExp ( "([\\-:]\\s*(?:\\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\\S[^\r\n]*(?:\\2[^\r\n]+)*)" . replace ( /<<prop>>/g , ( function ( ) { return t } ) ) ) , lookbehind : ! 0 , alias : "string" } , comment : /#.*/ , key : { pattern : RegExp ( "((?:^|[:\\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\\s*:\\s)" . replace ( /<<prop>>/g , ( function ( ) { return t } ) ) . replace ( /<<key>>/g , ( function ( ) { return "(?:" + a + "|" + d + ")" } ) ) ) , lookbehind : ! 0 , greedy : ! 0 , alias : "atrule" } , directive : { pattern : /(^[ \t]*)%.+/m , lookbehind : ! 0 , alias : "important" } , datetime : { pattern : o ( "\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?" ) , lookbehind : ! 0 , alias : "number" } , boolean : { pattern : o ( "false|true" , "i" ) , lookbehind : ! 0 , alias : "important" } , null : { pattern : o ( "null|~" , "i" ) , lookbehind : ! 0 , alias : "important" } , string : { pattern : o ( d ) , lookbehind : ! 0 , greedy : ! 0 } , number : { pattern : o ( "[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)" , "i" ) , lookbehind : ! 0 } , tag : r , important : n , punctuation : /---|[:[\]{}\-,|>?]|\.\.\./ } , e . languages . yml = e . languages . yaml } ( Prism ) ;
2023-06-20 23:57:24 +02:00
! function ( ) { if ( "undefined" != typeof Prism && "undefined" != typeof document ) { var e = "line-numbers" , n = /\n(?!$)/g , t = Prism . plugins . lineNumbers = { getLine : function ( n , t ) { if ( "PRE" === n . tagName && n . classList . contains ( e ) ) { var i = n . querySelector ( ".line-numbers-rows" ) ; if ( i ) { var r = parseInt ( n . getAttribute ( "data-start" ) , 10 ) || 1 , s = r + ( i . children . length - 1 ) ; t < r && ( t = r ) , t > s && ( t = s ) ; var l = t - r ; return i . children [ l ] } } } , resize : function ( e ) { r ( [ e ] ) } , assumeViewportIndependence : ! 0 } , i = void 0 ; window . addEventListener ( "resize" , ( function ( ) { t . assumeViewportIndependence && i === window . innerWidth || ( i = window . innerWidth , r ( Array . prototype . slice . call ( document . querySelectorAll ( "pre.line-numbers" ) ) ) ) } ) ) , Prism . hooks . add ( "complete" , ( function ( t ) { if ( t . code ) { var i = t . element , s = i . parentNode ; if ( s && /pre/i . test ( s . nodeName ) && ! i . querySelector ( ".line-numbers-rows" ) && Prism . util . isActive ( i , e ) ) { i . classList . remove ( e ) , s . classList . add ( e ) ; var l , o = t . code . match ( n ) , a = o ? o . length + 1 : 1 , u = new Array ( a + 1 ) . join ( "<span></span>" ) ; ( l = document . createElement ( "span" ) ) . setAttribute ( "aria-hidden" , "true" ) , l . className = "line-numbers-rows" , l . innerHTML = u , s . hasAttribute ( "data-start" ) && ( s . style . counterReset = "linenumber " + ( parseInt ( s . getAttribute ( "data-start" ) , 10 ) - 1 ) ) , t . element . appendChild ( l ) , r ( [ s ] ) , Prism . hooks . run ( "line-numbers" , t ) } } } ) ) , Prism . hooks . add ( "line-numbers" , ( function ( e ) { e . plugins = e . plugins || { } , e . plugins . lineNumbers = ! 0 } ) ) } function r ( e ) { if ( 0 != ( e = e . filter ( ( function ( e ) { var n , t = ( n = e , n ? window . getComputedStyle ? getComputedStyle ( n ) : n . currentStyle || null : null ) [ "white-space" ] ; return "pre-wrap" === t || "pre-line" === t } ) ) ) . length ) { var t = e . map ( ( function ( e ) { var t = e . querySelector ( "code" ) , i = e . querySelector ( ".line-numbers-rows" ) ; if ( t && i ) { var r = e . querySelector ( ".line-numbers-sizer" ) , s = t . textContent . split ( n ) ; r || ( ( r = document . createElement ( "span" ) ) . className = "line-numbers-sizer" , t . appendChild ( r ) ) , r . innerHTML = "0" , r . style . display = "block" ; var l = r . getBoundingClientRect ( ) . height ; return r . innerHTML = "" , { element : e , lines : s , lineHeights : [ ] , oneLinerHeight : l , sizer : r } } } ) ) . filter ( Boolean ) ; t . forEach ( ( function ( e ) { var n = e . sizer , t = e . lines , i = e . lineHeights , r = e . oneLinerHeight ; i [ t . length - 1 ] = void 0 , t . forEach ( ( function ( e , t ) { if ( e && e . length > 1 ) { var s = n . appendChild ( document . createElement ( "span" ) ) ; s . style . display = "block" , s . textContent = e } else i [ t ] = r } ) ) } ) ) , t . forEach ( ( function ( e ) { for ( var n = e . sizer , t = e . lineHeights , i = 0 , r = 0 ; r < t . length ; r ++ ) void 0 === t [ r ] && ( t [ r ] = n . children [ i ++ ] . getBoundingClientRect ( ) . height ) } ) ) , t . forEach ( ( function ( e ) { var n = e . sizer , t = e . element . querySelector ( ".line-numbers-rows" ) ; n . style . display = "none" , n . innerHTML = "" , e . lineHeights . forEach ( ( function ( e , n ) { t . children [ n ] . style . height = e + "px" } ) ) } ) ) } } } ( ) ;
"undefined" != typeof Prism && "undefined" != typeof document && ( Element . prototype . matches || ( Element . prototype . matches = Element . prototype . msMatchesSelector || Element . prototype . webkitMatchesSelector ) , Prism . plugins . UnescapedMarkup = ! 0 , Prism . hooks . add ( "before-highlightall" , ( function ( e ) { e . selector += ', [class*="lang-"] script[type="text/plain"], [class*="language-"] script[type="text/plain"], script[type="text/plain"][class*="lang-"], script[type="text/plain"][class*="language-"]' } ) ) , Prism . hooks . add ( "before-sanity-check" , ( function ( e ) { var t = e . element ; if ( t . matches ( 'script[type="text/plain"]' ) ) { var a = document . createElement ( "code" ) , c = document . createElement ( "pre" ) ; c . className = a . className = t . className ; var n = t . dataset ; return Object . keys ( n || { } ) . forEach ( ( function ( e ) { Object . prototype . hasOwnProperty . call ( n , e ) && ( c . dataset [ e ] = n [ e ] ) } ) ) , a . textContent = e . code = e . code . replace ( /<\/script(?:>|>)/gi , "<\/script>" ) , c . appendChild ( a ) , t . parentNode . replaceChild ( c , t ) , void ( e . element = a ) } if ( ! e . code ) { var o = t . childNodes ; 1 === o . length && "#comment" == o [ 0 ] . nodeName && ( t . textContent = e . code = o [ 0 ] . textContent ) } } ) ) ) ;