2021-08-24 15:29:19 +03:00
/ * P r i s m J S 1 . 2 4 . 1
https : //prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+bash+c+csharp+cpp+cmake+coffeescript+csp+css-extras+diff+django+docker+elixir+elm+erlang+fsharp+flow+git+go+graphql+haml+handlebars+haskell+http+java+json+kotlin+latex+less+llvm+makefile+markdown+markup-templating+nasm+objectivec+ocaml+perl+php+php-extras+powershell+processing+pug+python+r+jsx+tsx+reason+ruby+rust+sass+scss+scheme+sql+stylus+swift+textile+toml+twig+typescript+vim+visual-basic+wasm+yaml&plugins=line-highlight+line-numbers+jsonp-highlight+highlight-keywords+command-line+toolbar+copy-to-clipboard */
var _self = "undefined" != typeof window ? window : "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope ? self : { } , Prism = function ( u ) { var c = /\blang(?:uage)?-([\w-]+)\b/i , n = 0 , e = { } , M = { manual : u . Prism && u . Prism . manual , disableWorkerMessageHandler : u . Prism && u . Prism . disableWorkerMessageHandler , util : { encode : function e ( n ) { return n instanceof W ? new W ( 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 : ++ n } ) , e . _ _id } , clone : function t ( e , r ) { var a , n ; switch ( r = r || { } , M . util . type ( e ) ) { case "Object" : if ( n = M . util . objId ( e ) , r [ n ] ) return r [ n ] ; for ( var i in a = { } , r [ n ] = a , e ) e . hasOwnProperty ( i ) && ( a [ i ] = t ( e [ i ] , r ) ) ; return a ; case "Array" : return n = M . util . objId ( e ) , r [ n ] ? r [ n ] : ( a = [ ] , r [ n ] = a , e . forEach ( function ( e , n ) { a [ n ] = t ( e , r ) } ) , a ) ; default : return e } } , getLanguage : function ( e ) { for ( ; e && ! c . test ( e . className ) ; ) e = e . parentElement ; return e ? ( e . className . match ( c ) || [ , "none" ] ) [ 1 ] . toLowerCase ( ) : "none" } , currentScript : function ( ) { if ( "undefined" == typeof document ) return null ; if ( "currentScript" in document ) return document . currentScript ; try { throw new Error } catch ( e ) { var n = ( /at [^(\r\n]*\((.*):.+:.+\)$/i . exec ( e . stack ) || [ ] ) [ 1 ] ; if ( n ) { var t = document . getElementsByTagName ( "script" ) ; for ( var r in t ) if ( t [ r ] . src == n ) return t [ r ] } 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 : e , plaintext : e , text : e , txt : e , extend : function ( e , n ) { var t = M . util . clone ( M . languages [ e ] ) ; for ( var r in n ) t [ r ] = n [ r ] ; return t } , insertBefore : function ( t , e , n , r ) { var a = ( r = r || M . languages ) [ t ] , i = { } ; for ( var l in a ) if ( a . hasOwnProperty ( l ) ) { if ( l == e ) for ( var o in n ) n . hasOwnProperty ( o ) && ( i [ o ] = n [ o ] ) ; n . hasOwnProperty ( l ) || ( i [ l ] = a [ l ] ) } var s = r [ t ] ; return r [ t ] = i , M . languages . DFS ( M . languages , function ( e , n ) { n === s && e != t && ( this [ e ] = i ) } ) , i } , DFS : function e ( n , t , r , a ) { a = a || { } ; var i = M . util . objId ; for ( var l in n ) if ( n . hasOwnProperty ( l ) ) { t . call ( n , l , n [ l ] , r || l ) ; var o = n [ l ] , s = M . util . type ( o ) ; "Object" !== s || a [ i ( o ) ] ? "Array" !== s || a [ i ( o ) ] || ( a [ i ( o ) ] = ! 0 , e ( o , t , l , a ) ) : ( a [ i ( o ) ] = ! 0 , e ( o , t , null , a ) ) } } } , plugins : { } , highlightAll : function ( e , n ) { M . 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' } ; M . hooks . run ( "before-highlightall" , r ) , r . elements = Array . prototype . slice . apply ( r . container . querySelectorAll ( r . selector ) ) , M . hooks . run ( "before-all-elements-highlight" , r ) ; for ( var a , i = 0 ; a = r . elements [ i ++ ] ; ) M . highlightElement ( a , ! 0 === n , r . callback ) } , highlightElement : function ( e , n , t ) { var r = M . util . getLanguage ( e ) , a = M . languages [ r ] ; e . className = e . className . replace ( c , "" ) . replace ( /\s+/g , " " ) + " language-" + r ; var i = e . parentElement ; i && "pre" === i . nodeName . toLowerCase ( ) && ( i . className = i . className . replace ( c , "" ) . replace ( /\s+/g , " " ) + " language-" + r ) ; var l = { element : e , language : r , grammar : a , code : e . textContent } ; function o ( e ) { l . highlightedCode = e , M . hooks . run ( "before-insert" , l ) , l . element . innerHTML = l . highlightedCode , M . hooks . run ( "after-highlight" , l ) , M . hooks . run ( "complete" , l ) , t && t . call ( l . element ) } if ( M . hooks . run ( "before-sanity-check" , l ) , ( i = l . element . parentElement ) && "pre" === i . nodeName . toLowerCase ( ) && ! i . hasAttribute ( "tabindex" ) && i . setAttribute ( "tabindex" , "0" ) , ! l . code ) return M . hooks . run ( "complete" , l ) , void ( t && t . call ( l . element ) ) ; if ( M . hooks . run ( "before-highlight" , l ) , l . grammar ) if ( n && u . Worker ) { var s = new Worker ( M . filename ) ; s . onmessage = function ( e ) { o ( e . data ) } , s . postMessage ( JSON . stringify ( { language : l . language , code : l . code , immediateClose : ! 0 } ) ) } else o ( M . highlight ( l . code , l . grammar , l . language ) ) ; else o ( M . util . encode ( l . code ) ) } , highlight : function ( e , n , t ) { var r = { code : e , grammar : n , language : t } ; return M . hooks . run ( "before-tokenize" , r ) , r . tokens = M . tokenize ( r . code , r . grammar ) , M . hooks . run ( "after-tokenize" , r ) , W . stringify ( M . util . encode ( r . tokens ) , r . language ) } , tokenize : function ( e , n ) { var t = n . rest ; if ( t ) { for ( var r in t ) n [ r ] = t [ r ] ; delete n . rest } var a = new i ; return I ( a , a . head , e ) , function e ( n , t , r ,
Prism . languages . markup = { comment : /<!--[\s\S]*?-->/ , prolog : /<\?[\s\S]+?\?>/ , 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/ , name : /[^\s<>'"]+/ } } , cdata : /<!\[CDATA\[[\s\S]*?\]\]>/i , 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" } , /"|'/ ] } } , 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 : /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\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|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i , lookbehind : ! 0 , inside : { punctuation : /[.\\]/ } } , keyword : /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/ , boolean : /\b(?:true|false)\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])*(?=\.(?:prototype|constructor))/ , 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 : /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/ , operator : /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ } ) , Prism . languages . javascript [ "class-name" ] [ 0 ] . pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/ , Prism . languages . insertBefore ( "javascript" , "keyword" , { regex : { pattern : /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[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]+/ } } } ) , Prism . languages . markup && ( Prism . languages . markup . tag . addInlined ( "script" , "javascript" ) , Prism . languages . markup . tag . addAttribute ( "on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)" , "javascript" ) ) , Prism . languages . js = Prism . languages . javascript ;
Prism . languages . actionscript = Prism . languages . extend ( "javascript" , { keyword : /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|override|set|static)\b/ , operator : /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ } ) , Prism . languages . actionscript [ "class-name" ] . alias = "function" , Prism . languages . markup && Prism . languages . insertBefore ( "actionscript" , "string" , { xml : { pattern : /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/ , lookbehind : ! 0 , inside : Prism . languages . markup } } ) ;
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 | T y p e | U s e r F i l 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 | 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 S i z e | B u f f e r e d L o g s | 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 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 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 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 T r a c e P r i v i l e g e s | 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 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 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 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 | E x t e n d e d S t a t u 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 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 ) | 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 | 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 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 a n g u a g e P r i o r i t y | 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 i z e | F i e l d s | 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 M a p F i l e | M a x ( ? : C o n n e c t i o n s P e r C h i l d | K
Prism . languages . applescript = { comment : [ /\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/ , /--.+/ , /#.+/ ] , string : /"(?:\\.|[^"\\\r\n])*"/ , number : /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i , operator : [ /[&=≠≤≥*+\-\/÷^]|[<>]=?/ , /\b(?:(?:start|begin|end)s? with|(?:(?:does not|doesn't) contain|contains?)|(?:is|isn't|is not) (?:in|contained by)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:(?:does not|doesn't) come|comes) (?:before|after)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equals|equal to|isn't|is not)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|or|div|mod|as|not))\b/ ] , keyword : /\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/ , class : { pattern : /\b(?:alias|application|boolean|class|constant|date|file|integer|list|number|POSIX file|real|record|reference|RGB color|script|text|centimetres|centimeters|feet|inches|kilometres|kilometers|metres|meters|miles|yards|square feet|square kilometres|square kilometers|square metres|square meters|square miles|square yards|cubic centimetres|cubic centimeters|cubic feet|cubic inches|cubic metres|cubic meters|cubic yards|gallons|litres|liters|quarts|grams|kilograms|ounces|pounds|degrees Celsius|degrees Fahrenheit|degrees Kelvin)\b/ , alias : "builtin" } , punctuation : /[{}():,¬«»《》]/ } ;
! 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" , n = { pattern : /(^(["']?)\w+\2)[ \t]+\S.*/ , lookbehind : ! 0 , alias : "punctuation" , inside : null } , a = { bash : n , 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}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/ } ; 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+(?=\+?=)/ , inside : { environment : { pattern : RegExp ( "(^|[\\s;|&]|[<>]\\()" + t ) , lookbehind : ! 0 , alias : "constant" } } , alias : "variable" , lookbehind : ! 0 } , string : [ { pattern : /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/ , lookbehind : ! 0 , greedy : ! 0 , inside : a } , { pattern : /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/ , lookbehind : ! 0 , greedy : ! 0 , inside : { bash : n } } , { pattern : /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/ , lookbehind : ! 0 , greedy : ! 0 , inside : a } , { pattern : /(^|[^$\\])'[^']*'/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /\$'(?:[^'\\]|\\[\s\S])*'/ , greedy : ! 0 , inside : { entity : a . entity } } ] , environment : { pattern : RegExp ( "\\$?" + t ) , alias : "constant" } , variable : a . variable , function : { pattern : / ( ^ | [ \ s ; | & ] | [ < > ] \ ( ) ( ? : a d d | a p r o p o s | a p t | a p t i t u d e | a p t - c a c h e | a p t - g e t | 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 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 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 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 | m t r | m u t t | m v | n a n o | n c | n e t s t a t | n i c e | n l | n o h u p | n o t i f y - s e n d | n p m | n s l o o k u p | o p | o p e n | p a r t e d | p a s s w d | p a s t e | p a t h c h k | p i n g | p k i l l | p n p m | p o p d | p r | p r i n t c a p | p r i n t e n v | p
Prism . languages . c = Prism . languages . extend ( "clike" , { comment : { pattern : /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/ , 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(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|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" , { 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 ] , 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 } } } , constant : /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/ } ) , delete Prism . languages . c . boolean ;
! function ( s ) { function a ( e , s ) { return e . replace ( /<<(\d+)>>/g , function ( e , n ) { return "(?:" + s [ + n ] + ")" } ) } function t ( e , n , s ) { return RegExp ( a ( e , n ) , s || "" ) } function e ( e , n ) { for ( var s = 0 ; s < n ; s ++ ) e = e . replace ( /<<self>>/g , function ( ) { return "(?:" + e + ")" } ) ; return e . replace ( /<<self>>/g , "[^\\s\\S]" ) } var n = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void" , r = "class enum interface record struct" , i = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)" , o = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield" ; function l ( e ) { return "\\b(?:" + e . trim ( ) . replace ( / /g , "|" ) + ")\\b" } var d = l ( r ) , p = RegExp ( l ( n + " " + r + " " + i + " " + o ) ) , c = l ( r + " " + i + " " + o ) , u = l ( n + " " + r + " " + o ) , g = e ( "<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>" , 2 ) , b = e ( "\\((?:[^()]|<<self>>)*\\)" , 2 ) , h = "@?\\b[A-Za-z_]\\w*\\b" , f = a ( "<<0>>(?:\\s*<<1>>)?" , [ h , g ] ) , m = a ( "(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*" , [ c , f ] ) , k = "\\[\\s*(?:,\\s*)*\\]" , y = a ( "<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?" , [ m , k ] ) , w = a ( "(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?" , [ a ( "\\(<<0>>+(?:,<<0>>+)+\\)" , [ a ( "[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>" , [ g , b , k ] ) ] ) , m , k ] ) , v = { keyword : p , punctuation : /[<>()?,.:[\]]/ } , x = "'(?:[^\r\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'" , $ = '"(?:\\\\.|[^\\\\"\r\n])*"' ; s . languages . csharp = s . languages . extend ( "clike" , { string : [ { pattern : t ( "(^|[^$\\\\])<<0>>" , [ '@"(?:""|\\\\[^]|[^\\\\"])*"(?!")' ] ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : t ( "(^|[^@$\\\\])<<0>>" , [ $ ] ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : RegExp ( x ) , greedy : ! 0 , alias : "character" } ] , "class-name" : [ { pattern : t ( "(\\busing\\s+static\\s+)<<0>>(?=\\s*;)" , [ m ] ) , lookbehind : ! 0 , inside : v } , { pattern : t ( "(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)" , [ h , w ] ) , lookbehind : ! 0 , inside : v } , { pattern : t ( "(\\busing\\s+)<<0>>(?=\\s*=)" , [ h ] ) , lookbehind : ! 0 } , { pattern : t ( "(\\b<<0>>\\s+)<<1>>" , [ d , f ] ) , lookbehind : ! 0 , inside : v } , { pattern : t ( "(\\bcatch\\s*\\(\\s*)<<0>>" , [ m ] ) , lookbehind : ! 0 , inside : v } , { pattern : t ( "(\\bwhere\\s+)<<0>>" , [ h ] ) , lookbehind : ! 0 } , { pattern : t ( "(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>" , [ y ] ) , lookbehind : ! 0 , inside : v } , { pattern : t ( "\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))" , [ w , u , h ] ) , inside : v } ] , keyword : p , number : /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i , operator : />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/ , punctuation : /\?\.?|::|[{}[\];(),.:]/ } ) , s . languages . insertBefore ( "csharp" , "number" , { range : { pattern : /\.\./ , alias : "operator" } } ) , s . languages . insertBefore ( "csharp" , "punctuation" , { "named-parameter" : { pattern : t ( "([(,]\\s*)<<0>>(?=\\s*:)" , [ h ] ) , lookbehind : ! 0 , alias : "punctuation" } } ) , s . languages . insertBefore ( "csharp" , "class-name" , { namespace : { pattern : t ( "(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])" , [ h ] ) , lookbehind : ! 0 , inside : { punctuation : /\./ } } , "type-expression" : { pattern : t ( "(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))" , [ b ] ) , lookbehind : ! 0 , alias : "class-name" , inside : v } , "return-type" : { pattern : t ( "<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))" , [ w , m ] ) , inside : v , alias : "class-name" } , "constructor-invocation" : { pattern : t ( "(\\bnew\\s+)<<0>>(?=\\s*[[({])" , [ w ] ) , lookbehind : ! 0 , inside : v , alias : "class-name" } , "generic-method" : { pattern : t ( "<<0>>\\s*<<1>>(?=\\s*\\()" , [ h , g ] ) , inside : { function : t ( "^<<0>>" , [ h ] ) , generic : { pattern : RegExp ( g ) , alias : "class-name" , inside : v } } } , "type-list" : { pattern : t ( "\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))" , [ d , f , h , w , p . source , b , " \ \ bnew \ \ s * \ \ ( \ \ s * \ \
! function ( e ) { var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_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|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(?:true|false)\b/ } ) , e . languages . insertBefore ( "cpp" , "string" , { module : { pattern : RegExp ( '(\\b(?:module|import)\\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[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 . cmake = { comment : /#.*/ , string : { pattern : /"(?:[^\\"]|\\.)*"/ , greedy : ! 0 , inside : { interpolation : { pattern : /\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/ , inside : { punctuation : /\$\{|\}/ , variable : /\w+/ } } } } , variable : /\b(?:CMAKE_\w+|\w+_(?:VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?|(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT)|(?: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_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\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
! function ( e ) { var t = /#(?!\{).+/ , n = { pattern : /#\{[^}]+\}/ , alias : "variable" } ; e . languages . coffeescript = e . languages . extend ( "javascript" , { comment : t , string : [ { pattern : /'(?:\\[\s\S]|[^\\'])*'/ , greedy : ! 0 } , { pattern : /"(?:\\[\s\S]|[^\\"])*"/ , greedy : ! 0 , inside : { interpolation : n } } ] , keyword : /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/ , "class-member" : { pattern : /@(?!\d)\w+/ , alias : "variable" } } ) , e . languages . insertBefore ( "coffeescript" , "comment" , { "multiline-comment" : { pattern : /###[\s\S]+?###/ , alias : "comment" } , "block-regex" : { pattern : /\/{3}[\s\S]*?\/{3}/ , alias : "regex" , inside : { comment : t , interpolation : n } } } ) , e . languages . insertBefore ( "coffeescript" , "string" , { "inline-javascript" : { pattern : /`(?:\\[\s\S]|[^\\`])*`/ , inside : { delimiter : { pattern : /^`|`$/ , alias : "punctuation" } , script : { pattern : /[\s\S]+/ , alias : "language-javascript" , inside : e . languages . javascript } } } , "multiline-string" : [ { pattern : /'''[\s\S]*?'''/ , greedy : ! 0 , alias : "string" } , { pattern : /"""[\s\S]*?"""/ , greedy : ! 0 , alias : "string" , inside : { interpolation : n } } ] } ) , e . languages . insertBefore ( "coffeescript" , "keyword" , { property : /(?!\d)\w+(?=\s*:(?!:))/ } ) , delete e . languages . coffeescript [ "template-string" ] , e . languages . coffee = e . languages . coffeescript } ( Prism ) ;
Prism . languages . csp = { directive : { pattern : /(^|[^-\da-z])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[^-\da-z]|$)/i , lookbehind : ! 0 , alias : "keyword" } , safe : { pattern : /'(?:deny|none|report-sample|self|strict-dynamic|top-only|(?:nonce|sha(?:256|384|512))-[-+/\w=]+)'/i , alias : "selector" } , unsafe : { pattern : /(?:'unsafe-(?:allow-redirects|dynamic|eval|hash-attributes|hashed-attributes|hashes|inline)'|\*)/i , alias : "function" } } ;
! function ( e ) { var a , n = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ ; e . languages . css . selector = { pattern : e . languages . css . selector . pattern , lookbehind : ! 0 , inside : a = { "pseudo-element" : /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/ , "pseudo-class" : /:[-\w]+/ , class : /\.[-\w]+/ , id : /#[-\w]+/ , attribute : { pattern : RegExp ( "\\[(?:[^[\\]\"']|" + n . source + ")*\\]" ) , greedy : ! 0 , inside : { punctuation : /^\[|\]$/ , "case-sensitivity" : { pattern : /(\s)[si]$/i , lookbehind : ! 0 , alias : "keyword" } , namespace : { pattern : /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/ , lookbehind : ! 0 , inside : { punctuation : /\|$/ } } , "attr-name" : { pattern : /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/ , lookbehind : ! 0 } , "attr-value" : [ n , { pattern : /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/ , lookbehind : ! 0 } ] , operator : /[|~*^$]?=/ } } , "n-th" : [ { pattern : /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/ , lookbehind : ! 0 , inside : { number : /[\dn]+/ , operator : /[+-]/ } } , { pattern : /(\(\s*)(?:even|odd)(?=\s*\))/i , lookbehind : ! 0 } ] , combinator : />|\+|~|\|\|/ , punctuation : /[(),]/ } } , e . languages . css . atrule . inside [ "selector-function-argument" ] . inside = a , e . languages . insertBefore ( "css" , "property" , { variable : { pattern : /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i , lookbehind : ! 0 } } ) ; var r = { pattern : /(\b\d+)(?:%|[a-z]+(?![\w-]))/ , lookbehind : ! 0 } , i = { pattern : /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/ , lookbehind : ! 0 } ; e . languages . insertBefore ( "css" , "function" , { operator : { pattern : /(\s)[+\-*\/](?=\s)/ , lookbehind : ! 0 } , hexcode : { pattern : /\B#[\da-f]{3,8}\b/i , alias : "color" } , color : [ { pattern : /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i , lookbehind : ! 0 } , { pattern : /\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i , inside : { unit : r , number : i , function : /[\w-]+(?=\()/ , punctuation : /[(),]/ } } ] , entity : /\\[\da-f]{1,8}/i , unit : r , number : i } ) } ( Prism ) ;
! function ( i ) { i . languages . diff = { coord : [ /^(?:\*{3}|-{3}|\+{3}).*$/m , /^@@.*@@$/m , /^\d.*$/m ] } ; var r = { "deleted-sign" : "-" , "deleted-arrow" : "<" , "inserted-sign" : "+" , "inserted-arrow" : ">" , unchanged : " " , diff : "!" } ; Object . keys ( r ) . forEach ( function ( e ) { var n = r [ e ] , a = [ ] ; /^\w+$/ . test ( e ) || a . push ( /\w+/ . exec ( e ) [ 0 ] ) , "diff" === e && a . push ( "bold" ) , i . languages . diff [ e ] = { pattern : RegExp ( "^(?:[" + n + "].*(?:\r\n?|\n|(?![\\s\\S])))+" , "m" ) , alias : a , inside : { line : { pattern : /(.)(?=[\s\S]).*(?:\r\n?|\n)?/ , lookbehind : ! 0 } , prefix : { pattern : /[\s\S]/ , alias : /\w+/ . exec ( e ) [ 0 ] } } } } ) , Object . defineProperty ( i . languages . diff , "PREFIXES" , { value : r } ) } ( Prism ) ;
2019-03-31 20:18:08 +03:00
! function ( h ) { function v ( e , n ) { return "___" + e . toUpperCase ( ) + n + "___" } Object . defineProperties ( h . languages [ "markup-templating" ] = { } , { buildPlaceholders : { value : function ( a , r , e , o ) { if ( a . language === r ) { var c = a . tokenStack = [ ] ; a . code = a . code . replace ( e , function ( e ) { if ( "function" == typeof o && ! o ( e ) ) return e ; for ( var n , t = c . length ; - 1 !== a . code . indexOf ( n = v ( r , t ) ) ; ) ++ t ; return c [ t ] = e , n } ) , a . grammar = h . languages . markup } } } , tokenizePlaceholders : { value : function ( p , k ) { if ( p . language === k && p . tokenStack ) { p . grammar = h . languages [ k ] ; var m = 0 , d = Object . keys ( p . tokenStack ) ; ! function e ( n ) { for ( var t = 0 ; t < n . length && ! ( m >= d . length ) ; t ++ ) { var a = n [ t ] ; if ( "string" == typeof a || a . content && "string" == typeof a . content ) { var r = d [ m ] , o = p . tokenStack [ r ] , c = "string" == typeof a ? a : a . content , i = v ( k , r ) , u = c . indexOf ( i ) ; if ( - 1 < u ) { ++ m ; var g = c . substring ( 0 , u ) , l = new h . Token ( k , h . tokenize ( o , p . grammar ) , "language-" + k , o ) , s = c . substring ( u + i . length ) , f = [ ] ; g && f . push . apply ( f , e ( [ g ] ) ) , f . push ( l ) , s && f . push . apply ( f , e ( [ s ] ) ) , "string" == typeof a ? n . splice . apply ( n , [ t , 1 ] . concat ( f ) ) : a . content = f } } else a . content && e ( a . content ) } return n } ( p . tokens ) } } } } ) } ( Prism ) ;
2021-08-24 15:29:19 +03:00
! function ( e ) { e . languages . django = { comment : /^\{#[\s\S]*?#\}$/ , tag : { pattern : /(^\{%[+-]?\s*)\w+/ , lookbehind : ! 0 , alias : "keyword" } , delimiter : { pattern : /^\{[{%][+-]?|[+-]?[}%]\}$/ , alias : "punctuation" } , string : { pattern : /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/ , greedy : ! 0 } , filter : { pattern : /(\|)\w+/ , lookbehind : ! 0 , alias : "function" } , test : { pattern : /(\bis\s+(?:not\s+)?)(?!not\b)\w+/ , lookbehind : ! 0 , alias : "function" } , function : /\b[a-z_]\w+(?=\s*\()/i , keyword : /\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/ , operator : /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/ , number : /\b\d+(?:\.\d+)?\b/ , boolean : /[Tt]rue|[Ff]alse|[Nn]one/ , variable : /\b\w+?\b/ , punctuation : /[{}[\](),.:;]/ } ; var n = /\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g , o = e . languages [ "markup-templating" ] ; e . hooks . add ( "before-tokenize" , function ( e ) { o . buildPlaceholders ( e , "django" , n ) } ) , e . hooks . add ( "after-tokenize" , function ( e ) { o . tokenizePlaceholders ( e , "django" ) } ) , e . languages . jinja2 = e . languages . django , e . hooks . add ( "before-tokenize" , function ( e ) { o . buildPlaceholders ( e , "jinja2" , n ) } ) , e . hooks . add ( "after-tokenize" , function ( e ) { o . tokenizePlaceholders ( e , "jinja2" ) } ) } ( Prism ) ;
! function ( e ) { var r = "(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)" . replace ( /<SP_BS>/g , function ( ) { return "\\\\[\r\n](?:\\s|\\\\[\r\n]|#.*(?!.))*(?![\\s#]|\\\\[\r\n])" } ) , n = "\"(?:[^\"\\\\\r\n]|\\\\(?:\r\n|[^]))*\"|'(?:[^'\\\\\r\n]|\\\\(?:\r\n|[^]))*'" , t = "--[\\w-]+=(?:<STR>|(?![\"'])(?:[^\\s\\\\]|\\\\.)+)" . replace ( /<STR>/g , function ( ) { return n } ) , o = { pattern : RegExp ( n ) , greedy : ! 0 } , i = { pattern : /(^[ \t]*)#.*/m , lookbehind : ! 0 , greedy : ! 0 } ; function a ( e , n ) { return e = e . replace ( /<OPT>/g , function ( ) { return t } ) . replace ( /<SP>/g , function ( ) { return r } ) , RegExp ( e , n ) } 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 . elixir = { doc : { pattern : /@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/ , inside : { attribute : /^@\w+/ , string : /['"][\s\S]+/ } } , comment : { pattern : /#.*/m , greedy : ! 0 } , regex : { pattern : /~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/ , greedy : ! 0 } , string : [ { pattern : /~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/ , greedy : ! 0 , inside : { } } , { pattern : /("""|''')[\s\S]*?\1/ , greedy : ! 0 , inside : { } } , { pattern : /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy : ! 0 , inside : { } } ] , atom : { pattern : /(^|[^:]):\w+/ , lookbehind : ! 0 , alias : "symbol" } , module : { pattern : /\b[A-Z]\w*\b/ , alias : "class-name" } , "attr-name" : /\b\w+\??:(?!:)/ , argument : { pattern : /(^|[^&])&\d+/ , lookbehind : ! 0 , alias : "variable" } , attribute : { pattern : /@\w+/ , alias : "variable" } , function : /\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/ , number : /\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i , keyword : /\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/ , boolean : /\b(?:true|false|nil)\b/ , operator : [ /\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/ , { pattern : /([^<])<(?!<)/ , lookbehind : ! 0 } , { pattern : /([^>])>(?!>)/ , lookbehind : ! 0 } ] , punctuation : /<<|>>|[.,%\[\]{}()]/ } , Prism . languages . elixir . string . forEach ( function ( e ) { e . inside = { interpolation : { pattern : /#\{[^}]+\}/ , inside : { delimiter : { pattern : /^#\{|\}$/ , alias : "punctuation" } , rest : Prism . languages . elixir } } } } ) ;
Prism . languages . elm = { comment : /--.*|\{-[\s\S]*?-\}/ , char : { pattern : /'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+))'/ , greedy : ! 0 } , string : [ { pattern : /"""[\s\S]*?"""/ , greedy : ! 0 } , { pattern : /"(?:[^\\"\r\n]|\\.)*"/ , greedy : ! 0 } ] , "import-statement" : { pattern : /(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m , lookbehind : ! 0 , inside : { keyword : /\b(?:import|as|exposing)\b/ } } , keyword : /\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/ , builtin : /\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/ , number : /\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i , operator : /\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/ , hvariable : /\b(?:[A-Z]\w*\.)*[a-z]\w*\b/ , constant : /\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/ , punctuation : /[{}[\]|(),.:]/ } ;
Prism . languages . erlang = { comment : /%.+/ , string : { pattern : /"(?:\\.|[^\\"\r\n])*"/ , greedy : ! 0 } , "quoted-function" : { pattern : /'(?:\\.|[^\\'\r\n])+'(?=\()/ , alias : "function" } , "quoted-atom" : { pattern : /'(?:\\.|[^\\'\r\n])+'/ , alias : "atom" } , boolean : /\b(?:true|false)\b/ , keyword : /\b(?:fun|when|case|of|end|if|receive|after|try|catch)\b/ , number : [ /\$\\?./ , /\b\d+#[a-z0-9]+/i , /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i ] , function : /\b[a-z][\w@]*(?=\()/ , variable : { pattern : /(^|[^@])(?:\b|\?)[A-Z_][\w@]*/ , lookbehind : ! 0 } , operator : [ /[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:bnot|div|rem|band|bor|bxor|bsl|bsr|not|and|or|xor|orelse|andalso)\b/ , { pattern : /(^|[^<])<(?!<)/ , lookbehind : ! 0 } , { pattern : /(^|[^>])>(?!>)/ , lookbehind : ! 0 } ] , atom : /\b[a-z][\w@]*/ , punctuation : /[()[\]{}:;,.#|]|<<|>>/ } ;
Prism . languages . fsharp = Prism . languages . extend ( "clike" , { comment : [ { pattern : /(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/ , lookbehind : ! 0 } , { pattern : /(^|[^\\:])\/\/.*/ , lookbehind : ! 0 } ] , string : { pattern : /(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?|'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/ , greedy : ! 0 } , "class-name" : { pattern : /(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/ , lookbehind : ! 0 , inside : { operator : /->|\*/ , punctuation : /\./ } } , keyword : /\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|assert|base|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|global|if|in|inherit|inline|interface|internal|lazy|match|member|module|mutable|namespace|new|not|null|of|open|or|override|private|public|rec|select|static|struct|then|to|true|try|type|upcast|val|void|when|while|with|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|include|method|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait|virtual|volatile)\b/ , number : [ /\b0x[\da-fA-F]+(?:un|lf|LF)?\b/ , /\b0b[01]+(?:y|uy)?\b/ , /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i , /\b\d+(?:[IlLsy]|u[lsy]?|UL)?\b/ ] , operator : /([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/ } ) , Prism . languages . insertBefore ( "fsharp" , "keyword" , { preprocessor : { pattern : /(^[\t ]*)#.*/m , lookbehind : ! 0 , alias : "property" , inside : { directive : { pattern : /(^#)\b(?:else|endif|if|light|line|nowarn)\b/ , lookbehind : ! 0 , alias : "keyword" } } } } ) , Prism . languages . insertBefore ( "fsharp" , "punctuation" , { "computation-expression" : { pattern : /\b[_a-z]\w*(?=\s*\{)/i , alias : "keyword" } } ) , Prism . languages . insertBefore ( "fsharp" , "string" , { annotation : { pattern : /\[<.+?>\]/ , inside : { punctuation : /^\[<|>\]$/ , "class-name" : { pattern : /^\w+$|(^|;\s*)[A-Z]\w*(?=\()/ , lookbehind : ! 0 } , "annotation-content" : { pattern : /[\s\S]+/ , inside : Prism . languages . fsharp } } } } ) ;
! function ( a ) { a . languages . flow = a . languages . extend ( "javascript" , { } ) , a . languages . insertBefore ( "flow" , "keyword" , { type : [ { pattern : /\b(?:[Nn]umber|[Ss]tring|[Bb]oolean|Function|any|mixed|null|void)\b/ , alias : "tag" } ] } ) , a . languages . flow [ "function-variable" ] . pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i , delete a . languages . flow . parameter , a . languages . insertBefore ( "flow" , "operator" , { "flow-punctuation" : { pattern : /\{\||\|\}/ , alias : "punctuation" } } ) , Array . isArray ( a . languages . flow . keyword ) || ( a . languages . flow . keyword = [ a . languages . flow . keyword ] ) , a . languages . flow . keyword . unshift ( { pattern : /(^|[^$]\b)(?:type|opaque|declare|Class)\b(?!\$)/ , lookbehind : ! 0 } , { pattern : /(^|[^$]\B)\$(?:await|Diff|Exact|Keys|ObjMap|PropertyType|Shape|Record|Supertype|Subtype|Enum)\b(?!\$)/ , lookbehind : ! 0 } ) } ( Prism ) ;
Prism . languages . git = { comment : /^#.*/m , deleted : /^[-– ].*/m , inserted : /^\+.*/m , string : /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/m , command : { pattern : /^.*\$ git .*$/m , inside : { parameter : /\s--?\w+/m } } , coord : /^@@.*@@$/m , "commit-sha1" : /^commit \w{40}$/m } ;
Prism . languages . go = Prism . languages . extend ( "clike" , { string : { pattern : /(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/ , 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(?:_|iota|nil|true|false)\b/ , number : /(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i , operator : /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./ , builtin : /\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/ } ) , delete Prism . languages . go [ "class-name" ] ;
Prism . languages . graphql = { comment : /#.*/ , description : { pattern : /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i , greedy : ! 0 , alias : "string" , inside : { "language-markdown" : { pattern : /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/ , lookbehind : ! 0 , inside : Prism . languages . markdown } } } , string : { pattern : /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/ , greedy : ! 0 } , number : /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i , boolean : /\b(?:true|false)\b/ , variable : /\$[a-z_]\w*/i , directive : { pattern : /@[a-z_]\w*/i , alias : "function" } , "attr-name" : { pattern : /[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i , greedy : ! 0 } , "atom-input" : { pattern : /[A-Z]\w*Input(?=!?.*$)/m , alias : "class-name" } , scalar : /\b(?:Boolean|Float|ID|Int|String)\b/ , constant : /\b[A-Z][A-Z_\d]*\b/ , "class-name" : { pattern : /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/ , lookbehind : ! 0 } , fragment : { pattern : /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/ , lookbehind : ! 0 , alias : "function" } , "definition-mutation" : { pattern : /(\bmutation\s+)[a-zA-Z_]\w*/ , lookbehind : ! 0 , alias : "function" } , "definition-query" : { pattern : /(\bquery\s+)[a-zA-Z_]\w*/ , lookbehind : ! 0 , alias : "function" } , keyword : /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/ , operator : /[!=|&]|\.{3}/ , "property-query" : /\w+(?=\s*\()/ , object : /\w+(?=\s*\{)/ , punctuation : /[!(){}\[\]:=,]/ , property : /\w+/ } , Prism . hooks . add ( "after-tokenize" , function ( n ) { if ( "graphql" === n . language ) for ( var o = n . tokens . filter ( function ( n ) { return "string" != typeof n && "comment" !== n . type && "scalar" !== n . type } ) , s = 0 ; s < o . length ; ) { var t = o [ s ++ ] ; if ( "keyword" === t . type && "mutation" === t . content ) { var e = [ ] ; if ( c ( [ "definition-mutation" , "punctuation" ] ) && "(" === l ( 1 ) . content ) { s += 2 ; var a = f ( /^\($/ , /^\)$/ ) ; if ( - 1 === a ) continue ; for ( ; s < a ; s ++ ) { var r = l ( 0 ) ; "variable" === r . type && ( m ( r , "variable-input" ) , e . push ( r . content ) ) } s = a + 1 } if ( c ( [ "punctuation" , "property-query" ] ) && "{" === l ( 0 ) . content && ( s ++ , m ( l ( 0 ) , "property-mutation" ) , 0 < e . length ) ) { var i = f ( /^\{$/ , /^\}$/ ) ; if ( - 1 === i ) continue ; for ( var u = s ; u < i ; u ++ ) { var p = o [ u ] ; "variable" === p . type && 0 <= e . indexOf ( p . content ) && m ( p , "variable-input" ) } } } } function l ( n ) { return o [ s + n ] } function c ( n , t ) { t = t || 0 ; for ( var e = 0 ; e < n . length ; e ++ ) { var a = l ( e + t ) ; if ( ! a || a . type !== n [ e ] ) return ! 1 } return ! 0 } function f ( n , t ) { for ( var e = 1 , a = s ; a < o . length ; a ++ ) { var r = o [ a ] , i = r . content ; if ( "punctuation" === r . type && "string" == typeof i ) if ( n . test ( i ) ) e ++ ; else if ( t . test ( i ) && 0 === -- e ) return a } return - 1 } function m ( n , t ) { var e = n . alias ; e ? Array . isArray ( e ) || ( n . alias = e = [ e ] ) : n . alias = e = [ ] , e . push ( t ) } } ) ;
! function ( e ) { e . languages . ruby = e . languages . extend ( "clike" , { comment : [ /#.*/ , { pattern : /^=begin\s[\s\S]*?^=end/m , greedy : ! 0 } ] , "class-name" : { pattern : /(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i , lookbehind : ! 0 , inside : { punctuation : /[.\\]/ } } , keyword : /\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/ } ) ; var n = { pattern : /#\{[^}]+\}/ , inside : { delimiter : { pattern : /^#\{|\}$/ , alias : "tag" } , rest : e . languages . ruby } } ; delete e . languages . ruby . function , e . languages . insertBefore ( "ruby" , "keyword" , { regex : [ { pattern : RegExp ( "%r(?:" + [ "([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1" , "\\((?:[^()\\\\]|\\\\[^])*\\)" , "\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[^])*\\}" , "\\[(?:[^\\[\\]\\\\]|\\\\[^])*\\]" , "<(?:[^<>\\\\]|\\\\[^])*>" ] . join ( "|" ) + ")[egimnosux]{0,6}" ) , greedy : ! 0 , inside : { interpolation : n } } , { pattern : /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/ , lookbehind : ! 0 , greedy : ! 0 , inside : { interpolation : n } } ] , variable : /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/ , symbol : { pattern : /(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/ , lookbehind : ! 0 } , "method-definition" : { pattern : /(\bdef\s+)[\w.]+/ , lookbehind : ! 0 , inside : { function : /\w+$/ , rest : e . languages . ruby } } } ) , e . languages . insertBefore ( "ruby" , "number" , { builtin : /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/ , constant : /\b[A-Z]\w*(?:[?!]|\b)/ } ) , e . languages . ruby . string = [ { pattern : RegExp ( "%[qQiIwWxs]?(?:" + [ "([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1" , "\\((?:[^()\\\\]|\\\\[^])*\\)" , "\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[^])*\\}" , "\\[(?:[^\\[\\]\\\\]|\\\\[^])*\\]" , "<(?:[^<>\\\\]|\\\\[^])*>" ] . join ( "|" ) + ")" ) , greedy : ! 0 , inside : { interpolation : n } } , { pattern : /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/ , greedy : ! 0 , inside : { interpolation : n } } , { pattern : /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i , alias : "heredoc-string" , greedy : ! 0 , inside : { delimiter : { pattern : /^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i , alias : "symbol" , inside : { punctuation : /^<<[-~]?/ } } , interpolation : n } } , { pattern : /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i , alias : "heredoc-string" , greedy : ! 0 , inside : { delimiter : { pattern : /^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i , alias : "symbol" , inside : { punctuation : /^<<[-~]?'|'$/ } } } } ] , e . languages . rb = e . languages . ruby } ( Prism ) ;
! function ( e ) { e . languages . haml = { "multiline-comment" : { pattern : /((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/ , lookbehind : ! 0 , alias : "comment" } , "multiline-code" : [ { pattern : /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/ , lookbehind : ! 0 , inside : e . languages . ruby } , { pattern : /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/ , lookbehind : ! 0 , inside : e . languages . ruby } ] , filter : { pattern : /((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/ , lookbehind : ! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" } } } , markup : { pattern : /((?:^|\r?\n|\r)[\t ]*)<.+/ , lookbehind : ! 0 , inside : e . languages . markup } , doctype : { pattern : /((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/ , lookbehind : ! 0 } , tag : { pattern : /((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/ , lookbehind : ! 0 , inside : { attributes : [ { pattern : /(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/ , lookbehind : ! 0 , inside : e . languages . ruby } , { pattern : /\([^)]+\)/ , inside : { "attr-value" : { pattern : /(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/ , lookbehind : ! 0 } , "attr-name" : /[\w:-]+(?=\s*!?=|\s*[,)])/ , punctuation : /[=(),]/ } } , { pattern : /\[[^\]]+\]/ , inside : e . languages . ruby } ] , punctuation : /[<>]/ } } , code : { pattern : /((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/ , lookbehind : ! 0 , inside : e . languages . ruby } , interpolation : { pattern : /#\{[^}]+\}/ , inside : { delimiter : { pattern : /^#\{|\}$/ , alias : "punctuation" } , rest : e . languages . ruby } } , punctuation : { pattern : /((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/ , lookbehind : ! 0 } } ; for ( var t = [ "css" , { filter : "coffee" , language : "coffeescript" } , "erb" , "javascript" , "less" , "markdown" , "ruby" , "scss" , "textile" ] , n = { } , r = 0 , a = t . length ; r < a ; r ++ ) { var i = t [ r ] ; i = "string" == typeof i ? { filter : i , language : i } : i , e . languages [ i . language ] && ( n [ "filter-" + i . filter ] = { pattern : RegExp ( "((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+" . replace ( "{{filter_name}}" , function ( ) { return i . filter } ) ) , lookbehind : ! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" } , rest : e . languages [ i . language ] } } ) } e . languages . insertBefore ( "haml" , "filter" , n ) } ( Prism ) ;
! function ( e ) { e . languages . handlebars = { comment : /\{\{![\s\S]*?\}\}/ , delimiter : { pattern : /^\{\{\{?|\}\}\}?$/i , alias : "punctuation" } , string : /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/ , number : /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/ , boolean : /\b(?:true|false)\b/ , block : { pattern : /^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/i , lookbehind : ! 0 , alias : "keyword" } , brackets : { pattern : /\[[^\]]+\]/ , inside : { punctuation : /\[|\]/ , variable : /[\s\S]+/ } } , punctuation : /[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/ , variable : /[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/ } , e . hooks . add ( "before-tokenize" , function ( a ) { e . languages [ "markup-templating" ] . buildPlaceholders ( a , "handlebars" , /\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g ) } ) , e . hooks . add ( "after-tokenize" , function ( a ) { e . languages [ "markup-templating" ] . tokenizePlaceholders ( a , "handlebars" ) } ) , e . languages . hbs = e . languages . handlebars } ( Prism ) ;
Prism . languages . haskell = { comment : { pattern : /(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m , lookbehind : ! 0 } , char : { pattern : /'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+))'/ , alias : "string" } , string : { pattern : /"(?:[^\\"]|\\(?:\S|\s+\\))*"/ , greedy : ! 0 } , keyword : /\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/ , "import-statement" : { pattern : /(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m , lookbehind : ! 0 , inside : { keyword : /\b(?:import|qualified|as|hiding)\b/ , punctuation : /\./ } } , builtin : /\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/ , number : /\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i , operator : [ { pattern : /`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/ , greedy : ! 0 } , { pattern : /(\s)\.(?=\s)/ , lookbehind : ! 0 } , /[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/ ] , hvariable : { pattern : /\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/ , inside : { punctuation : /\./ } } , constant : { pattern : /\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/ , inside : { punctuation : /\./ } } , punctuation : /[{}[\];(),.:]/ } , Prism . languages . hs = Prism . languages . haskell ;
! function ( t ) { t . languages . http = { "request-line" : { pattern : /^(?:GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\s(?:https?:\/\/|\/)\S*\sHTTP\/[0-9.]+/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\/[0-9.]+/ , lookbehind : ! 0 , alias : "property" } } } , "response-status" : { pattern : /^HTTP\/[0-9.]+ \d+ .+/m , inside : { "http-version" : { pattern : /^HTTP\/[0-9.]+/ , alias : "property" } , "status-code" : { pattern : /^(\s)\d+(?=\s)/ , lookbehind : ! 0 , alias : "number" } , "reason-phrase" : { pattern : /^(\s).+/ , lookbehind : ! 0 , alias : "string" } } } , "header-name" : { pattern : /^[\w-]+:(?=.)/m , alias : "keyword" } } ; var a , e , s , n = t . languages , r = { "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 } , i = { "application/json" : ! 0 , "application/xml" : ! 0 } ; for ( var p in r ) if ( r [ p ] ) { a = a || { } ; var o = i [ p ] ? ( void 0 , s = ( e = p ) . replace ( /^[a-z]+\// , "" ) , "(?:" + e + "|\\w+/(?:[\\w.-]+\\+)+" + s + "(?![+\\w.-]))" ) : p ; a [ p . replace ( /\//g , "-" ) ] = { pattern : RegExp ( "(content-type:\\s*" + o + "(?:(?:\\r\\n?|\\n).+)*)(?:\\r?\\n|\\r){2}[\\s\\S]*" , "i" ) , lookbehind : ! 0 , inside : r [ p ] } } a && t . languages . insertBefore ( "http" , "header-name" , a ) } ( Prism ) ;
! function ( e ) { var t = /\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|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/ , n = "(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*" , a = { pattern : RegExp ( n + "[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" , { "class-name" : [ a , { pattern : RegExp ( n + "[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])" ) , lookbehind : ! 0 , inside : a . inside } ] , keyword : t , 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 } } ) , e . languages . insertBefore ( "java" , "string" , { "triple-quoted-string" : { pattern : /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/ , greedy : ! 0 , alias : "string" } } ) , 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" : a , keyword : t , punctuation : /[<>(),.:]/ , operator : /[?&|]/ } } , 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 t . 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(?:true|false)\b/ , null : { pattern : /\bnull\b/ , alias : "keyword" } } , Prism . languages . webmanifest = Prism . languages . json ;
! function ( e ) { e . languages . kotlin = e . languages . extend ( "clike" , { keyword : { pattern : /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/ , lookbehind : ! 0 } , function : [ { pattern : /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/ , greedy : ! 0 } , { pattern : /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/ , lookbehind : ! 0 , greedy : ! 0 } ] , number : /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/ , operator : /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ } ) , delete e . languages . kotlin [ "class-name" ] , e . languages . insertBefore ( "kotlin" , "string" , { "raw-string" : { pattern : /("""|''')[\s\S]*?\1/ , alias : "string" } } ) , e . languages . insertBefore ( "kotlin" , "keyword" , { annotation : { pattern : /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/ , alias : "builtin" } } ) , e . languages . insertBefore ( "kotlin" , "function" , { label : { pattern : /\b\w+@|@\w+\b/ , alias : "symbol" } } ) ; var n = [ { pattern : /\$\{[^}]+\}/ , inside : { delimiter : { pattern : /^\$\{|\}$/ , alias : "variable" } , rest : e . languages . kotlin } } , { pattern : /\$\w+/ , alias : "variable" } ] ; e . languages . kotlin . string . inside = e . languages . kotlin [ "raw-string" ] . inside = { interpolation : n } , e . languages . kt = e . languages . kotlin , e . languages . kts = e . languages . kotlin } ( Prism ) ;
! function ( a ) { var e = /\\(?:[^a-z()[\]]|[a-z*]+)/i , n = { "equation-command" : { pattern : e , alias : "regex" } } ; a . languages . latex = { comment : /%.*/m , cdata : { pattern : /(\\begin\{((?:verbatim|lstlisting)\*?)\})[\s\S]*?(?=\\end\{\2\})/ , lookbehind : ! 0 } , equation : [ { pattern : /\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/ , inside : n , alias : "string" } , { pattern : /(\\begin\{((?:equation|math|eqnarray|align|multline|gather)\*?)\})[\s\S]*?(?=\\end\{\2\})/ , lookbehind : ! 0 , inside : n , alias : "string" } ] , keyword : { pattern : /(\\(?:begin|end|ref|cite|label|usepackage|documentclass)(?:\[[^\]]+\])?\{)[^}]+(?=\})/ , lookbehind : ! 0 } , url : { pattern : /(\\url\{)[^}]+(?=\})/ , lookbehind : ! 0 } , headline : { pattern : /(\\(?:part|chapter|section|subsection|frametitle|subsubsection|paragraph|subparagraph|subsubparagraph|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/ , lookbehind : ! 0 , alias : "class-name" } , function : { pattern : e , alias : "selector" } , punctuation : /[[\]{}&]/ } , a . languages . tex = a . languages . latex , a . languages . context = a . languages . latex } ( Prism ) ;
Prism . languages . less = Prism . languages . extend ( "css" , { comment : [ /\/\*[\s\S]*?\*\// , { pattern : /(^|[^\\])\/\/.*/ , lookbehind : ! 0 } ] , atrule : { pattern : /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/ , inside : { punctuation : /[:()]/ } } , selector : { pattern : /(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/ , inside : { variable : /@+[\w-]+/ } } , property : /(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/i , operator : /[+\-*\/]/ } ) , Prism . languages . insertBefore ( "less" , "property" , { variable : [ { pattern : /@[\w-]+\s*:/ , inside : { punctuation : /:/ } } , /@@?[\w-]+/ ] , "mixin-usage" : { pattern : /([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/ , lookbehind : ! 0 , alias : "function" } } ) ;
Prism . languages . llvm = { comment : /;.*/ , string : { pattern : /"[^"]*"/ , greedy : ! 0 } , boolean : /\b(?:true|false)\b/ , variable : /[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i , label : /(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i , type : { pattern : /\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/ , alias : "class-name" } , keyword : /\b[a-z_][a-z_0-9]*\b/ , number : /[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/ , 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 : /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/ , symbol : { pattern : /^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m , 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/ , { pattern : /(\()(?:addsuffix|abspath|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(?:s|list)?)(?=[ \t])/ , lookbehind : ! 0 } ] , operator : /(?:::|[?:+!])?=|[|@]/ , punctuation : /[:;(){}]/ } ;
! function ( s ) { function n ( n ) { return n = n . replace ( /<inner>/g , function ( ) { return "(?:\\\\.|[^\\\\\n\r]|(?:\n|\r\n?)(?![\r\n]))" } ) , RegExp ( "((?:^|[^\\\\])(?:\\\\{2})*)(?:" + n + ")" ) } var e = "(?:\\\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\\\|\r\n`])+" , t = "\\|?__(?:\\|__)+\\|?(?:(?:\n|\r\n?)|(?![^]))" . replace ( /__/g , function ( ) { return e } ) , a = "\\|?[ \t]*:?-{3,}:?[ \t]*(?:\\|[ \t]*:?-{3,}:?[ \t]*)+\\|?(?:\n|\r\n?)" ; s . languages . markdown = s . languages . extend ( "markup" , { } ) , s . languages . insertBefore ( "markdown" , "prolog" , { "front-matter-block" : { pattern : /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/ , lookbehind : ! 0 , greedy : ! 0 , inside : { punctuation : /^---|---$/ , "font-matter" : { pattern : /\S+(?:\s+\S+)*/ , alias : [ "yaml" , "language-yaml" ] , inside : s . languages . yaml } } } , blockquote : { pattern : /^>(?:[\t ]*>)*/m , alias : "punctuation" } , table : { pattern : RegExp ( "^" + t + a + "(?:" + t + ")*" , "m" ) , inside : { "table-data-rows" : { pattern : RegExp ( "^(" + t + a + ")(?:" + t + ")*$" ) , lookbehind : ! 0 , inside : { "table-data" : { pattern : RegExp ( e ) , inside : s . languages . markdown } , punctuation : /\|/ } } , "table-line" : { pattern : RegExp ( "^(" + t + ")" + a + "$" ) , lookbehind : ! 0 , inside : { punctuation : /\||:?-{3,}:?/ } } , "table-header-row" : { pattern : RegExp ( "^" + t + "$" ) , inside : { "table-header" : { pattern : RegExp ( e ) , alias : "important" , inside : s . 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 : n ( "\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { content : { pattern : /(^..)[\s\S]+(?=..$)/ , lookbehind : ! 0 , inside : { } } , punctuation : /\*\*|__/ } } , italic : { pattern : n ( "\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*" ) , lookbehind : ! 0 , greedy : ! 0 , inside : { content : { pattern : /(^.)[\s\S]+(?=.$)/ , lookbehind : ! 0 , inside : { } } , punctuation : /[*_]/ } } , strike : { pattern : n ( "(~~?)(?:(?!~)<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 : n ( '!?\\[(?:(?!\\])<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 ( n ) { e !== n && ( s . languages . markdown [ e ] . inside . content . inside [ n ] = s . languages . markdown [ n ] ) } ) } ) , s . 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 r = e [ t ] ; if ( "code" === r . type ) { var i = r . content [ 1 ] , o = r . content [ 3 ] ; if ( i && o && "code-language" === i . type && "code-block" === o . type && "string" == typeof i . content ) { var l = i . content . replace ( /\b#/g , "sharp" ) . replace ( /\b\+\+/g , "pp" ) , s = "language-" + ( l = ( / [ a - z ]
Prism . languages . nasm = { comment : /;.*$/m , string : /(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/ , label : { pattern : /(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m , lookbehind : ! 0 , alias : "function" } , keyword : [ /\[?BITS (?:16|32|64)\]?/ , { pattern : /(^\s*)section\s*[a-z.]+:?/im , lookbehind : ! 0 } , /(?:extern|global)[^;\r\n]*/i , /(?:CPU|FLOAT|DEFAULT).*$/m ] , register : { pattern : /\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|sp|si|di)|[cdefgs]s)\b/i , alias : "variable" } , number : /(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i , operator : /[\[\]*+\-\/%<>=&|$!]/ } ;
Prism . languages . objectivec = Prism . languages . extend ( "c" , { string : /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/ , keyword : /\b(?:asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/ , operator : /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ } ) , delete Prism . languages . objectivec [ "class-name" ] , Prism . languages . objc = Prism . languages . objectivec ;
Prism . languages . ocaml = { comment : /\(\*[\s\S]*?\*\)/ , string : [ { pattern : /"(?:\\.|[^\\\r\n"])*"/ , greedy : ! 0 } , { pattern : /(['`])(?:\\(?:\d+|x[\da-f]+|.)|(?!\1)[^\\\r\n])\1/i , greedy : ! 0 } ] , number : /\b(?:0x[\da-f][\da-f_]+|(?:0[bo])?\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?[\d_]+)?)/i , directive : { pattern : /\B#\w+/ , alias : "important" } , label : { pattern : /\B~\w+/ , alias : "function" } , "type-variable" : { pattern : /\B'\w+/ , alias : "function" } , variant : { pattern : /`\w+/ , alias : "variable" } , module : { pattern : /\b[A-Z]\w+/ , alias : "variable" } , keyword : /\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/ , boolean : /\b(?:false|true)\b/ , operator : /:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/ , punctuation : /[(){}\[\]|.,:;]|\b_\b/ } ;
Prism . languages . perl = { comment : [ { pattern : /(^\s*)=\w[\s\S]*?=cut.*/m , lookbehind : ! 0 } , { pattern : /(^|[^\\$])#.*/ , lookbehind : ! 0 } ] , string : [ { pattern : /\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/ , greedy : ! 0 } , { pattern : /\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:(?!\1)[^\\]|\\[\s\S])*\1/ , greedy : ! 0 } , { pattern : /\b(?:q|qq|qx|qw)\s*\((?:[^()\\]|\\[\s\S])*\)/ , greedy : ! 0 } , { pattern : /\b(?:q|qq|qx|qw)\s*\{(?:[^{}\\]|\\[\s\S])*\}/ , greedy : ! 0 } , { pattern : /\b(?:q|qq|qx|qw)\s*\[(?:[^[\]\\]|\\[\s\S])*\]/ , greedy : ! 0 } , { pattern : /\b(?:q|qq|qx|qw)\s*<(?:[^<>\\]|\\[\s\S])*>/ , greedy : ! 0 } , { pattern : /("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/ , greedy : ! 0 } , { pattern : /'(?:[^'\\\r\n]|\\.)*'/ , greedy : ! 0 } ] , regex : [ { pattern : /\b(?:m|qr)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1[msixpodualngc]*/ , greedy : ! 0 } , { pattern : /\b(?:m|qr)\s+([a-zA-Z0-9])(?:(?!\1)[^\\]|\\[\s\S])*\1[msixpodualngc]*/ , greedy : ! 0 } , { pattern : /\b(?:m|qr)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngc]*/ , greedy : ! 0 } , { pattern : /\b(?:m|qr)\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngc]*/ , greedy : ! 0 } , { pattern : /\b(?:m|qr)\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngc]*/ , greedy : ! 0 } , { pattern : /\b(?:m|qr)\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngc]*/ , greedy : ! 0 } , { pattern : /(^|[^-]\b)(?:s|tr|y)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2[msixpodualngcer]*/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^-]\b)(?:s|tr|y)\s+([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2[msixpodualngcer]*/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^-]\b)(?:s|tr|y)\s*\((?:[^()\\]|\\[\s\S])*\)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngcer]*/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^-]\b)(?:s|tr|y)\s*\{(?:[^{}\\]|\\[\s\S])*\}\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngcer]*/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^-]\b)(?:s|tr|y)\s*\[(?:[^[\]\\]|\\[\s\S])*\]\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngcer]*/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^-]\b)(?:s|tr|y)\s*<(?:[^<>\\]|\\[\s\S])*>\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngcer]*/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\b))/ , greedy : ! 0 } ] , variable : [ /[&*$@%]\{\^[A-Z]+\}/ , /[&*$@%]\^[A-Z_]/ , /[&*$@%]#?(?=\{)/ , /[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/i , /[&*$@%]\d+/ , /(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/ ] , filehandle : { pattern : /<(?![<=])\S*>|\b_\b/ , alias : "symbol" } , vstring : { pattern : /v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/ , alias : "string" } , function : { pattern : /sub \w+/i , inside : { keyword : /sub/ } } , 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(?:lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\b/ , punctuation : /[{}[\];(),:]/ } ;
! function ( a ) { var e = /\/\*[\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 = /[{}\[\](),:;]/ ; a . languages . php = { delimiter : { pattern : /\?>$|^<\?(?:php(?=\s)|=)?/i , alias : "important" } , comment : e , variable : /\$+(?:\w+\b|(?=\{))/i , 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(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i , alias : "type-casting" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i , alias : "type-hint" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i , alias : "type-hint" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i , alias : "return-type" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i , alias : "return-type" , greedy : ! 0 , lookbehind : ! 0 } , { pattern : /\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i , alias : "type-declaration" , greedy : ! 0 } , { pattern : /(\|\s*)(?:null|false)\b/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(?:__halt_compiler|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|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\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 , lookbehin
2019-03-31 20:18:08 +03:00
Prism . languages . insertBefore ( "php" , "variable" , { this : /\$this\b/ , global : /\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/ , scope : { pattern : /\b[\w\\]+::/ , inside : { keyword : /static|self|parent/ , punctuation : /::|\\/ } } } ) ;
2021-08-24 15:29:19 +03:00
! function ( e ) { var i = Prism . languages . powershell = { comment : [ { pattern : /(^|[^`])<#[\s\S]*?#>/ , lookbehind : ! 0 } , { pattern : /(^|[^`])#.*/ , lookbehind : ! 0 } ] , string : [ { pattern : /"(?:`[\s\S]|[^`"])*"/ , greedy : ! 0 , inside : { function : { pattern : /(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/ , lookbehind : ! 0 , inside : { } } } } , { pattern : /'(?:[^']|'')*'/ , greedy : ! 0 } ] , namespace : /\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i , boolean : /\$(?:true|false)\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?)(?:!|-(?:eq|ne|gt|ge|lt|le|sh[lr]|not|b?(?:and|x?or)|(?:Not)?(?:Like|Match|Contains|In)|Replace|Join|is(?:Not)?|as)\b|-[-=]?|\+[+=]?|[*\/%]=?)/i , lookbehind : ! 0 } , punctuation : /[|{}[\];(),.]/ } , r = i . string [ 0 ] . inside ; r . boolean = i . boolean , r . variable = i . variable , r . function . inside = i } ( ) ;
Prism . languages . processing = Prism . languages . extend ( "clike" , { keyword : /\b(?:break|catch|case|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/ , operator : /<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/ } ) , Prism . languages . insertBefore ( "processing" , "number" , { constant : /\b(?!XML\b)[A-Z][A-Z\d_]+\b/ , type : { pattern : /\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/ , alias : "variable" } } ) , Prism . languages . processing . function = /\b\w+(?=\s*\()/ , Prism . languages . processing [ "class-name" ] . alias = "variable" ;
! function ( e ) { e . languages . pug = { comment : { pattern : /(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m , lookbehind : ! 0 } , "multiline-script" : { pattern : /(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m , lookbehind : ! 0 , inside : e . languages . javascript } , filter : { pattern : /(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m , lookbehind : ! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" } } } , "multiline-plain-text" : { pattern : /(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m , lookbehind : ! 0 } , markup : { pattern : /(^[\t ]*)<.+/m , lookbehind : ! 0 , inside : e . languages . markup } , doctype : { pattern : /((?:^|\n)[\t ]*)doctype(?: .+)?/ , lookbehind : ! 0 } , "flow-control" : { pattern : /(^[\t ]*)(?:if|unless|else|case|when|default|each|while)\b(?: .+)?/m , lookbehind : ! 0 , inside : { each : { pattern : /^each .+? in\b/ , inside : { keyword : /\b(?:each|in)\b/ , punctuation : /,/ } } , branch : { pattern : /^(?:if|unless|else|case|when|default|while)\b/ , alias : "keyword" } , rest : e . languages . javascript } } , keyword : { pattern : /(^[\t ]*)(?:block|extends|include|append|prepend)\b.+/m , lookbehind : ! 0 } , mixin : [ { pattern : /(^[\t ]*)mixin .+/m , lookbehind : ! 0 , inside : { keyword : /^mixin/ , function : /\w+(?=\s*\(|\s*$)/ , punctuation : /[(),.]/ } } , { pattern : /(^[\t ]*)\+.+/m , lookbehind : ! 0 , inside : { name : { pattern : /^\+\w+/ , alias : "function" } , rest : e . languages . javascript } } ] , script : { pattern : /(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m , lookbehind : ! 0 , inside : e . languages . javascript } , "plain-text" : { pattern : /(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m , lookbehind : ! 0 } , tag : { pattern : /(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m , lookbehind : ! 0 , inside : { attributes : [ { pattern : /&[^(]+\([^)]+\)/ , inside : e . languages . javascript } , { pattern : /\([^)]+\)/ , inside : { "attr-value" : { pattern : /(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/ , lookbehind : ! 0 , inside : e . languages . javascript } , "attr-name" : /[\w-]+(?=\s*!?=|\s*[,)])/ , punctuation : /[!=(),]+/ } } ] , punctuation : /:/ , "attr-id" : /#[\w\-]+/ , "attr-class" : /\.[\w\-]+/ } } , code : [ { pattern : /(^[\t ]*(?:-|!?=)).+/m , lookbehind : ! 0 , inside : e . languages . javascript } ] , punctuation : /[.\-!=|]+/ } ; for ( var t = [ { filter : "atpl" , language : "twig" } , { filter : "coffee" , language : "coffeescript" } , "ejs" , "handlebars" , "less" , "livescript" , "markdown" , { filter : "sass" , language : "scss" } , "stylus" ] , n = { } , a = 0 , i = t . length ; a < i ; a ++ ) { var r = t [ a ] ; r = "string" == typeof r ? { filter : r , language : r } : r , e . languages [ r . language ] && ( n [ "filter-" + r . filter ] = { pattern : RegExp ( "(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\\2[\t ].+|\\s*?(?=\r?\n|\r)))+" . replace ( "<filter_name>" , function ( ) { return r . filter } ) , "m" ) , lookbehind : ! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" } , rest : e . languages [ r . language ] } } ) } e . languages . insertBefore ( "pug" , "filter" , n ) } ( Prism ) ;
Prism . languages . python = { comment : { pattern : /(^|[^\\])#.*/ , lookbehind : ! 0 } , "string-interpolation" : { pattern : /(?:f|rf|fr)(?:("""|''')[\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]|rb|br)?("""|''')[\s\S]*?\1/i , greedy : ! 0 , alias : "string" } , string : { pattern : /(?:[rub]|rb|br)?("|')(?:\\.|(?!\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+)*/im , lookbehind : ! 0 , alias : [ "annotation" , "punctuation" ] , inside : { punctuation : /\./ } } , keyword : /\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|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(?:True|False|None)\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?\b/i , operator : /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/ , punctuation : /[{}[\];(),.:]/ } , Prism . languages . python [ "string-interpolation" ] . inside . interpolation . inside . rest = Prism . languages . python , Prism . languages . py = Prism . languages . python ;
Prism . languages . r = { comment : /#.*/ , string : { pattern : /(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/ , greedy : ! 0 } , "percent-operator" : { pattern : /%[^%\s]*%/ , alias : "operator" } , boolean : /\b(?:TRUE|FALSE)\b/ , ellipsis : /\.\.(?:\.|\d+)/ , number : [ /\b(?:NaN|Inf)\b/ , /(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/ ] , keyword : /\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/ , operator : /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/ , punctuation : /[(){}\[\],;]/ } ;
! function ( i ) { var t = i . util . clone ( i . languages . javascript ) , e = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})" ; function n ( t , n ) { return t = t . replace ( /<S>/g , function ( ) { return "(?:\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))\\*/)" } ) . replace ( /<BRACES>/g , function ( ) { return "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})" } ) . replace ( /<SPREAD>/g , function ( ) { return e } ) , RegExp ( t , n ) } e = n ( e ) . source , i . languages . jsx = i . languages . extend ( "markup" , t ) , i . languages . jsx . tag . pattern = n ( "</?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[^]|[^\\\\\"])*\"|'(?:\\\\[^]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*/?)?>" ) , i . languages . jsx . tag . inside . tag . pattern = /^<\/?[^\s>\/]*/i , i . languages . jsx . tag . inside [ "attr-value" ] . pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i , i . languages . jsx . tag . inside . tag . inside [ "class-name" ] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/ , i . languages . jsx . tag . inside . comment = t . comment , i . languages . insertBefore ( "inside" , "attr-name" , { spread : { pattern : n ( "<SPREAD>" ) , inside : i . languages . jsx } } , i . languages . jsx . tag ) , i . languages . insertBefore ( "inside" , "special-attr" , { script : { pattern : n ( "=<BRACES>" ) , inside : { "script-punctuation" : { pattern : /^=(?=\{)/ , alias : "punctuation" } , rest : i . languages . jsx } , alias : "language-javascript" } } , i . languages . jsx . tag ) ; var o = function ( t ) { return t ? "string" == typeof t ? t : "string" == typeof t . content ? t . content : t . content . map ( o ) . join ( "" ) : "" } , r = function ( t ) { for ( var n = [ ] , e = 0 ; e < t . length ; e ++ ) { var a = t [ e ] , s = ! 1 ; if ( "string" != typeof a && ( "tag" === a . type && a . content [ 0 ] && "tag" === a . content [ 0 ] . type ? "</" === a . content [ 0 ] . content [ 0 ] . content ? 0 < n . length && n [ n . length - 1 ] . tagName === o ( a . content [ 0 ] . content [ 1 ] ) && n . pop ( ) : "/>" === a . content [ a . content . length - 1 ] . content || n . push ( { tagName : o ( a . content [ 0 ] . content [ 1 ] ) , openedBraces : 0 } ) : 0 < n . length && "punctuation" === a . type && "{" === a . content ? n [ n . length - 1 ] . openedBraces ++ : 0 < n . length && 0 < n [ n . length - 1 ] . openedBraces && "punctuation" === a . type && "}" === a . content ? n [ n . length - 1 ] . openedBraces -- : s = ! 0 ) , ( s || "string" == typeof a ) && 0 < n . length && 0 === n [ n . length - 1 ] . openedBraces ) { var g = o ( a ) ; e < t . length - 1 && ( "string" == typeof t [ e + 1 ] || "plain-text" === t [ e + 1 ] . type ) && ( g += o ( t [ e + 1 ] ) , t . splice ( e + 1 , 1 ) ) , 0 < e && ( "string" == typeof t [ e - 1 ] || "plain-text" === t [ e - 1 ] . type ) && ( g = o ( t [ e - 1 ] ) + g , t . splice ( e - 1 , 1 ) , e -- ) , t [ e ] = new i . Token ( "plain-text" , g , null , g ) } a . content && "string" != typeof a . content && r ( a . content ) } } ; i . hooks . add ( "after-tokenize" , function ( t ) { "jsx" !== t . language && "tsx" !== t . language || r ( t . tokens ) } ) } ( Prism ) ;
! 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(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/ } ) , e . languages . typescript . keyword . push ( /\b(?:abstract|as|declare|implements|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 ; 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 ) ;
! function ( a ) { var e = a . util . clone ( a . languages . typescript ) ; a . languages . tsx = a . languages . extend ( "jsx" , e ) ; var t = a . languages . tsx . tag ; t . pattern = RegExp ( "(^|[^\\w$]|(?=</))(?:" + t . pattern . source + ")" , t . pattern . flags ) , t . lookbehind = ! 0 } ( Prism ) ;
2020-10-20 03:37:35 +03:00
Prism . languages . reason = Prism . languages . extend ( "clike" , { string : { pattern : /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/ , greedy : ! 0 } , "class-name" : /\b[A-Z]\w*/ , keyword : /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/ , operator : /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:mod|land|lor|lxor|lsl|lsr|asr)\b/ } ) , Prism . languages . insertBefore ( "reason" , "class-name" , { character : { pattern : /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/ , alias : "string" } , constructor : { pattern : /\b[A-Z]\w*\b(?!\s*\.)/ , alias : "variable" } , label : { pattern : /\b[a-z]\w*(?=::)/ , alias : "symbol" } } ) , delete Prism . languages . reason . function ;
2021-08-24 15:29:19 +03:00
! function ( e ) { for ( var a = "/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/" , t = 0 ; t < 2 ; t ++ ) a = a . replace ( /<self>/g , function ( ) { return a } ) ; a = a . replace ( /<self>/g , function ( ) { return "[^\\s\\S]" } ) , e . languages . rust = { comment : [ { pattern : RegExp ( "(^|[^\\\\])" + a ) , lookbehind : ! 0 , greedy : ! 0 } , { pattern : /(^|[^\\:])\/\/.*/ , lookbehind : ! 0 , greedy : ! 0 } ] , string : { pattern : /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/ , greedy : ! 0 } , char : { pattern : /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/ , greedy : ! 0 , alias : "string" } , attribute : { pattern : /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/ , greedy : ! 0 , alias : "attr-name" , inside : { string : null } } , "closure-params" : { pattern : /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/ , lookbehind : ! 0 , greedy : ! 0 , inside : { "closure-punctuation" : { pattern : /^\||\|$/ , alias : "punctuation" } , rest : null } } , "lifetime-annotation" : { pattern : /'\w+/ , alias : "symbol" } , "fragment-specifier" : { pattern : /(\$\w+:)[a-z]+/ , lookbehind : ! 0 , alias : "punctuation" } , variable : /\$\w+/ , "function-definition" : { pattern : /(\bfn\s+)\w+/ , lookbehind : ! 0 , alias : "function" } , "type-definition" : { pattern : /(\b(?:enum|struct|union)\s+)\w+/ , lookbehind : ! 0 , alias : "class-name" } , "module-declaration" : [ { pattern : /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/ , lookbehind : ! 0 , alias : "namespace" } , { pattern : /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/ , lookbehind : ! 0 , alias : "namespace" , inside : { punctuation : /::/ } } ] , keyword : [ /\b(?:abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|Self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/ , /\b(?:[ui](?:8|16|32|64|128|size)|f(?:32|64)|bool|char|str)\b/ ] , function : /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/ , macro : { pattern : /\b\w+!/ , alias : "property" } , constant : /\b[A-Z_][A-Z_\d]+\b/ , "class-name" : /\b[A-Z]\w*\b/ , namespace : { pattern : /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/ , inside : { punctuation : /::/ } } , number : /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:[iu](?:8|16|32|64|size)?|f32|f64))?\b/ , boolean : /\b(?:false|true)\b/ , punctuation : /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/ , operator : /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ } , e . languages . rust [ "closure-params" ] . inside . rest = e . languages . rust , e . languages . rust . attribute . inside . string = e . languages . rust . string } ( Prism ) ;
! function ( e ) { e . languages . sass = e . languages . extend ( "css" , { comment : { pattern : /^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m , lookbehind : ! 0 , greedy : ! 0 } } ) , e . languages . insertBefore ( "sass" , "atrule" , { "atrule-line" : { pattern : /^(?:[ \t]*)[@+=].+/m , greedy : ! 0 , inside : { atrule : /(?:@[\w-]+|[+=])/m } } } ) , delete e . languages . sass . atrule ; var r = /\$[-\w]+|#\{\$[-\w]+\}/ , t = [ /[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/ , { pattern : /(\s)-(?=\s)/ , lookbehind : ! 0 } ] ; e . languages . insertBefore ( "sass" , "property" , { "variable-line" : { pattern : /^[ \t]*\$.+/m , greedy : ! 0 , inside : { punctuation : /:/ , variable : r , operator : t } } , "property-line" : { pattern : /^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m , greedy : ! 0 , inside : { property : [ /[^:\s]+(?=\s*:)/ , { pattern : /(:)[^:\s]+/ , lookbehind : ! 0 } ] , punctuation : /:/ , variable : r , operator : t , important : e . languages . sass . important } } } ) , delete e . languages . sass . property , delete e . languages . sass . important , e . languages . insertBefore ( "sass" , "punctuation" , { selector : { pattern : /^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m , lookbehind : ! 0 , greedy : ! 0 } } ) } ( Prism ) ;
Prism . languages . scss = Prism . languages . extend ( "css" , { comment : { pattern : /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/ , lookbehind : ! 0 } , atrule : { pattern : /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/ , inside : { rule : /@[\w-]+/ } } , url : /(?:[-a-z]+-)?url(?=\()/i , selector : { pattern : /(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/m , inside : { parent : { pattern : /&/ , alias : "important" } , placeholder : /%[-\w]+/ , variable : /\$[-\w]+|#\{\$[-\w]+\}/ } } , property : { pattern : /(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/ , inside : { variable : /\$[-\w]+|#\{\$[-\w]+\}/ } } } ) , Prism . languages . insertBefore ( "scss" , "atrule" , { keyword : [ /@(?:if|else(?: if)?|forward|for|each|while|import|use|extend|debug|warn|mixin|include|function|return|content)\b/i , { pattern : /( )(?:from|through)(?= )/ , lookbehind : ! 0 } ] } ) , Prism . languages . insertBefore ( "scss" , "important" , { variable : /\$[-\w]+|#\{\$[-\w]+\}/ } ) , Prism . languages . insertBefore ( "scss" , "function" , { "module-modifier" : { pattern : /\b(?:as|with|show|hide)\b/i , alias : "keyword" } , placeholder : { pattern : /%[-\w]+/ , alias : "selector" } , statement : { pattern : /\B!(?:default|optional)\b/i , alias : "keyword" } , boolean : /\b(?:true|false)\b/ , null : { pattern : /\bnull\b/ , alias : "keyword" } , operator : { pattern : /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/ , lookbehind : ! 0 } } ) , Prism . languages . scss . atrule . inside . rest = Prism . languages . scss ;
Prism . languages . scheme = { comment : /;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/ , string : { pattern : /"(?:[^"\\]|\\.)*"/ , greedy : ! 0 } , symbol : { pattern : /'[^()\[\]#'\s]+/ , greedy : ! 0 } , character : { pattern : /#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/ , greedy : ! 0 , alias : "string" } , "lambda-parameter" : [ { pattern : /((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/ , lookbehind : ! 0 } , { pattern : /((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/ , lookbehind : ! 0 } ] , keyword : { pattern : /((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|export|except|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/ , lookbehind : ! 0 } , builtin : { pattern : /((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/ , lookbehind : ! 0 } , operator : { pattern : /((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/ , lookbehind : ! 0 } , number : { pattern : RegExp ( function ( r ) { for ( var e in r ) r [ e ] = r [ e ] . replace ( /<[\w\s]+>/g , function ( e ) { return "(?:" + r [ e ] . trim ( ) + ")" } ) ; return r [ e ] } ( { "<ureal dec>" : "\\d+(?:/\\d+)|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?" , "<real dec>" : "[+-]?<ureal dec>|[+-](?:inf|nan)\\.0" , "<imaginary dec>" : "[+-](?:<ureal dec>|(?:inf|nan)\\.0)?i" , "<complex dec>" : "<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>" , "<num dec>" : "(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>" , "<ureal box>" : "[0-9a-f]+(?:/[0-9a-f]+)?" , "<real box>" : "[+-]?<ureal box>|[+-](?:inf|nan)\\.0" , "<imaginary box>" : "[+-](?:<ureal box>|(?:inf|nan)\\.0)?i" , "<complex box>" : "<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>" , "<num box>" : "#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>" , "<number>" : "(^|[()\\[\\]\\s])(?:<num dec>|<num box>)(?=[()\\[\\]\\s]|$)" } ) , "i" ) , lookbehind : ! 0 } , boolean : { pattern : /(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/ , lookbehind : ! 0 } , function : { pattern : /((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/ , lookbehind : ! 0 } , identifier : { pattern : /(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/ , lookbehind : ! 0 , greedy : ! 0 } , punctuation : /[()\[\]']/ } ;
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 } , 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(?:_INSERT|COL)?|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(?:S|ING)?|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(?:TRUE|FALSE|NULL)\b/i , number : /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i , operator : /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i , punctuation : /[;[\]()`,.]/ } ;
! function ( e ) { var n = { pattern : /(\b\d+)(?:%|[a-z]+)/ , lookbehind : ! 0 } , r = { pattern : /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/ , lookbehind : ! 0 } , t = { comment : { pattern : /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/ , lookbehind : ! 0 } , url : { pattern : /\burl\((["']?).*?\1\)/i , greedy : ! 0 } , string : { pattern : /("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/ , greedy : ! 0 } , interpolation : null , func : null , important : /\B!(?:important|optional)\b/i , keyword : { pattern : /(^|\s+)(?:(?:if|else|for|return|unless)(?=\s|$)|@[\w-]+)/ , lookbehind : ! 0 } , hexcode : /#[\da-f]{3,6}/i , color : [ /\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i , { pattern : /\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i , inside : { unit : n , number : r , function : /[\w-]+(?=\()/ , punctuation : /[(),]/ } } ] , entity : /\\[\da-f]{1,8}/i , unit : n , boolean : /\b(?:true|false)\b/ , operator : [ /~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/ ] , number : r , punctuation : /[{}()\[\];:,]/ } ; t . interpolation = { pattern : /\{[^\r\n}:]+\}/ , alias : "variable" , inside : { delimiter : { pattern : /^\{|\}$/ , alias : "punctuation" } , rest : t } } , t . func = { pattern : /[\w-]+\([^)]*\).*/ , inside : { function : /^[^(]+/ , rest : t } } , e . languages . stylus = { "atrule-declaration" : { pattern : /(^[ \t]*)@.+/m , lookbehind : ! 0 , inside : { atrule : /^@[\w-]+/ , rest : t } } , "variable-declaration" : { pattern : /(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m , lookbehind : ! 0 , inside : { variable : /^\S+/ , rest : t } } , statement : { pattern : /(^[ \t]*)(?:if|else|for|return|unless)[ \t].+/m , lookbehind : ! 0 , inside : { keyword : /^\S+/ , rest : t } } , "property-declaration" : { pattern : /((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m , lookbehind : ! 0 , inside : { property : { pattern : /^[^\s:]+/ , inside : { interpolation : t . interpolation } } , rest : t } } , selector : { pattern : /(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m , lookbehind : ! 0 , inside : { interpolation : t . interpolation , comment : t . comment , punctuation : /[{},]/ } } , func : t . func , string : t . string , comment : { pattern : /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/ , lookbehind : ! 0 , greedy : ! 0 } , interpolation : t . interpolation , punctuation : /[{}()\[\];:.]/ } } ( Prism ) ;
Prism . languages . swift = { comment : { pattern : /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/ , lookbehind : ! 0 , greedy : ! 0 } , "string-literal" : [ { pattern : RegExp ( '(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\r\n|[^(])|[^\\\\\r\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])' ) , lookbehind : ! 0 , greedy : ! 0 , inside : { interpolation : { pattern : /(\\\()(?:[^()]|\([^()]*\))*(?=\))/ , lookbehind : ! 0 , inside : null } , "interpolation-punctuation" : { pattern : /^\)|\\\($/ , alias : "punctuation" } , punctuation : /\\(?=[\r\n])/ , string : /[\s\S]+/ } } , { pattern : RegExp ( '(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\r\n|[^#])|[^\\\\\r\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2' ) , lookbehind : ! 0 , greedy : ! 0 , inside : { interpolation : { pattern : /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/ , lookbehind : ! 0 , inside : null } , "interpolation-punctuation" : { pattern : /^\)|\\#+\($/ , alias : "punctuation" } , string : /[\s\S]+/ } } ] , directive : { pattern : RegExp ( "#(?:(?:elseif|if)\\b(?:[ \t]*(?:![ \t]*)?(?:\\b\\w+\\b(?:[ \t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)" ) , alias : "property" , inside : { "directive-name" : /^#\w+/ , boolean : /\b(?:true|false)\b/ , number : /\b\d+(?:\.\d+)*\b/ , operator : /!|&&|\|\||[<>]=?/ , punctuation : /[(),]/ } } , literal : { pattern : /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/ , alias : "constant" } , "other-directive" : { pattern : /#\w+\b/ , alias : "property" } , attribute : { pattern : /@\w+/ , alias : "atrule" } , "function-definition" : { pattern : /(\bfunc\s+)\w+/ , lookbehind : ! 0 , alias : "function" } , label : { pattern : /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/ , lookbehind : ! 0 , alias : "important" } , keyword : /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/ , boolean : /\b(?:true|false)\b/ , nil : { pattern : /\bnil\b/ , alias : "constant" } , "short-argument" : /\$\d+\b/ , omit : { pattern : /\b_\b/ , alias : "keyword" } , number : /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i , "class-name" : /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/ , function : /\b[a-z_]\w*(?=\s*\()/i , constant : /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/ , operator : /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/ , punctuation : /[{}[\]();,.:\\]/ } , Prism . languages . swift [ "string-literal" ] . forEach ( function ( e ) { e . inside . interpolation . inside = Prism . languages . swift } ) ;
! function ( n ) { function e ( n , e ) { return RegExp ( n . replace ( /<MOD>/g , function ( ) { return "(?:\\([^|()\n]+\\)|\\[[^\\]\n]+\\]|\\{[^}\n]+\\})" } ) . replace ( /<PAR>/g , function ( ) { return "(?:\\)|\\((?![^|()\n]+\\)))" } ) , e || "" ) } var i = { css : { pattern : /\{[^{}]+\}/ , inside : { rest : n . languages . css } } , "class-id" : { pattern : /(\()[^()]+(?=\))/ , lookbehind : ! 0 , alias : "attr-value" } , lang : { pattern : /(\[)[^\[\]]+(?=\])/ , lookbehind : ! 0 , alias : "attr-value" } , punctuation : /[\\\/]\d+|\S/ } , t = n . languages . textile = n . languages . extend ( "markup" , { phrase : { pattern : /(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/ , lookbehind : ! 0 , inside : { "block-tag" : { pattern : e ( "^[a-z]\\w*(?:<MOD>|<PAR>|[<>=])*\\." ) , inside : { modifier : { pattern : e ( "(^[a-z]\\w*)(?:<MOD>|<PAR>|[<>=])+(?=\\.)" ) , lookbehind : ! 0 , inside : i } , tag : /^[a-z]\w*/ , punctuation : /\.$/ } } , list : { pattern : e ( "^[*#]+<MOD>*\\s+\\S.*" , "m" ) , inside : { modifier : { pattern : e ( "(^[*#]+)<MOD>+" ) , lookbehind : ! 0 , inside : i } , punctuation : /^[*#]+/ } } , table : { pattern : e ( "^(?:(?:<MOD>|<PAR>|[<>=^~])+\\.\\s*)?(?:\\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\\\/]\\d+)+\\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\\\/]\\d+)+\\.))[^|]*)+\\|" , "m" ) , inside : { modifier : { pattern : e ( "(^|\\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\\\/]\\d+)+(?=\\.)" ) , lookbehind : ! 0 , inside : i } , punctuation : /\||^\./ } } , inline : { pattern : e ( "(^|[^a-zA-Z\\d])(\\*\\*|__|\\?\\?|[*_%@+\\-^~])<MOD>*.+?\\2(?![a-zA-Z\\d])" ) , lookbehind : ! 0 , inside : { bold : { pattern : e ( "(^(\\*\\*?)<MOD>*).+?(?=\\2)" ) , lookbehind : ! 0 } , italic : { pattern : e ( "(^(__?)<MOD>*).+?(?=\\2)" ) , lookbehind : ! 0 } , cite : { pattern : e ( "(^\\?\\?<MOD>*).+?(?=\\?\\?)" ) , lookbehind : ! 0 , alias : "string" } , code : { pattern : e ( "(^@<MOD>*).+?(?=@)" ) , lookbehind : ! 0 , alias : "keyword" } , inserted : { pattern : e ( "(^\\+<MOD>*).+?(?=\\+)" ) , lookbehind : ! 0 } , deleted : { pattern : e ( "(^-<MOD>*).+?(?=-)" ) , lookbehind : ! 0 } , span : { pattern : e ( "(^%<MOD>*).+?(?=%)" ) , lookbehind : ! 0 } , modifier : { pattern : e ( "(^\\*\\*|__|\\?\\?|[*_%@+\\-^~])<MOD>+" ) , lookbehind : ! 0 , inside : i } , punctuation : /[*_%?@+\-^~]+/ } } , "link-ref" : { pattern : /^\[[^\]]+\]\S+$/m , inside : { string : { pattern : /(^\[)[^\]]+(?=\])/ , lookbehind : ! 0 } , url : { pattern : /(^\])\S+$/ , lookbehind : ! 0 } , punctuation : /[\[\]]/ } } , link : { pattern : e ( '"<MOD>*[^"]+":.+?(?=[^\\w/]?(?:\\s|$))' ) , inside : { text : { pattern : e ( '(^"<MOD>*)[^"]+(?=")' ) , lookbehind : ! 0 } , modifier : { pattern : e ( '(^")<MOD>+' ) , lookbehind : ! 0 , inside : i } , url : { pattern : /(:).+/ , lookbehind : ! 0 } , punctuation : /[":]/ } } , image : { pattern : e ( "!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\\s()]+(?:\\([^)]+\\))?!(?::.+?(?=[^\\w/]?(?:\\s|$)))?" ) , inside : { source : { pattern : e ( "(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\\s()]+(?:\\([^)]+\\))?(?=!)" ) , lookbehind : ! 0 , alias : "url" } , modifier : { pattern : e ( "(^!)(?:<MOD>|<PAR>|[<>=])+" ) , lookbehind : ! 0 , inside : i } , url : { pattern : /(:).+/ , lookbehind : ! 0 } , punctuation : /[!:]/ } } , footnote : { pattern : /\b\[\d+\]/ , alias : "comment" , inside : { punctuation : /\[|\]/ } } , acronym : { pattern : /\b[A-Z\d]+\([^)]+\)/ , inside : { comment : { pattern : /(\()[^()]+(?=\))/ , lookbehind : ! 0 } , punctuation : /[()]/ } } , mark : { pattern : /\b\((?:TM|R|C)\)/ , alias : "comment" , inside : { punctuation : /[()]/ } } } } } ) , a = t . phrase . inside , o = { inline : a . inline , link : a . link , image : a . image , footnote : a . footnote , acronym : a . acronym , mark : a . mark } ; t . tag . pattern = /<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i ; var r = a . inline . inside ; r . bold . inside = o , r . italic . inside = o , r . inserted . inside = o , r . deleted . inside = o , r . span . inside = o ; var d = a . table . inside ; d . inline = o . inline , d . link = o . link , d . image = o . image , d . footnote = o . footnote , d . acronym = o . acronym , d . mark = o . mark } ( Prism ) ;
! function ( e ) { function n ( e ) { return e . replace ( /__/g , function ( ) { return "(?:[\\w-]+|'[^'\n\r]*'|\"(?:\\\\.|[^\\\\\"\r\n])*\")" } ) } e . languages . toml = { comment : { pattern : /#.*/ , greedy : ! 0 } , table : { pattern : RegExp ( n ( "(^[\t ]*\\[\\s*(?:\\[\\s*)?)__(?:\\s*\\.\\s*__)*(?=\\s*\\])" ) , "m" ) , lookbehind : ! 0 , greedy : ! 0 , alias : "class-name" } , key : { pattern : RegExp ( n ( "(^[\t ]*|[{,]\\s*)__(?:\\s*\\.\\s*__)*(?=\\s*=)" ) , "m" ) , lookbehind : ! 0 , greedy : ! 0 , alias : "property" } , string : { pattern : /"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/ , greedy : ! 0 } , date : [ { pattern : /\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i , alias : "number" } , { pattern : /\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/ , alias : "number" } ] , number : /(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/ , boolean : /\b(?:true|false)\b/ , punctuation : /[.,=[\]{}]/ } } ( Prism ) ;
Prism . languages . twig = { comment : /\{#[\s\S]*?#\}/ , tag : { pattern : /\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}/ , inside : { ld : { pattern : /^(?:\{\{-?|\{%-?\s*\w+)/ , inside : { punctuation : /^(?:\{\{|\{%)-?/ , keyword : /\w+/ } } , rd : { pattern : /-?(?:%\}|\}\})$/ , inside : { punctuation : /.+/ } } , string : { pattern : /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/ , inside : { punctuation : /^['"]|['"]$/ } } , keyword : /\b(?:even|if|odd)\b/ , boolean : /\b(?:true|false|null)\b/ , number : /\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/ , operator : [ { pattern : /(\s)(?:and|b-and|b-xor|b-or|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/ , lookbehind : ! 0 } , /[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/ ] , property : /\b[a-zA-Z_]\w*\b/ , punctuation : /[()\[\]{}:.,]/ } } , other : { pattern : /\S(?:[\s\S]*\S)?/ , inside : Prism . languages . markup } } ;
Prism . languages . vim = { string : /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/ , comment : /".*/ , function : /\b\w+(?=\()/ , keyword : / \ b ( ? : a b | a b b r e v i a t e | a b c | a b c l e a r | a b o | a b o v e l e f t | a l | a l l | a r g a | a r g a d d | a r g d | a r g d e l e t e | a r g d o | a r g e | a r g e d i t | a r g g | a r g g l o b a l | a r g l | a r g l o c a l | a r | a r g s | a r g u | a r g u m e n t | a s | a s c i i | b a d | b a d d | b a | b a l l | b d | b d e l e t e | b e | b e l | b e l o w r i g h t | b f | b f i r s t | b l | b l a s t | b m | b m o d i f i e d | b n | b n e x t | b N | b N e x t | b o | b o t r i g h t | b p | b p r e v i o u s | b r e a | b r e a k | b r e a k a | b r e a k a d d | b r e a k d | b r e a k d e l | b r e a k l | b r e a k l i s t | b r | b r e w i n d | b r o | b r o w s e | b u f d o | b | b u f f e r | b u f f e r s | b u n | b u n l o a d | b w | b w i p e o u t | c a | c a b b r e v | c a b c | c a b c l e a r | c a d d b | c a d d b u f f e r | c a d | c a d d e x p r | c a d d f | c a d d f i l e | c a l | c a l l | c a t | c a t c h | c b | c b u f f e r | c c | c c l | c c l o s e | c d | c e | c e n t e r | c e x | c e x p r | c f | c f i l e | c f i r | c f i r s t | c g e t b | c g e t b u f f e r | c g e t e | c g e t e x p r | c g | c g e t f i l e | c | c h a n g e | c h a n g e s | c h d | c h d i r | c h e | c h e c k p a t h | c h e c k t | c h e c k t i m e | c l a | c l a s t | c l | c l i s t | c l o | c l o s e | c m a p c | c m a p c l e a r | c n e w | c n e w e r | c n | c n e x t | c N | c N e x t | c n f | c n f i l e | c N f c N f i l e | c n o r e a | c n o r e a b b r e v | c o l | c o l d e r | c o l o | c o l o r s c h e m e | c o m c | c o m c l e a r | c o m p | c o m p i l e r | c o n f | c o n f i r m | c o n | c o n t i n u e | c o p e | c o p e n | c o | c o p y | c p f | c p f i l e | c p | c p r e v i o u s | c q | c q u i t | c r | c r e w i n d | c u n a | c u n a b b r e v | c u | c u n m a p | c w | c w i n d o w | d e b u g g | d e b u g g r e e d y | d e l c | d e l c o m m a n d | d | d e l e t e | d e l f | d e l f u n c t i o n | d e l m | d e l m a r k s | d i f f g | d i f f g e t | d i f f o f f | d i f f p a t c h | d i f f p u | d i f f p u t | d i f f s p l i t | d i f f t h i s | d i f f u | d i f f u p d a t e | d i g | d i g r a p h s | d i | d i s p l a y | d j | d j u m p | d l | d l i s t | d r | d r o p | d s | d s e a r c h | d s p | d s p l i t | e a r l i e r | e c h o e | e c h o e r r | e c h o m | e c h o m s g | e c h o n | e | e d i t | e l | e l s e | e l s e i | e l s e i f | e m | e m e n u | e n d f o | e n d f o r | e n d f | e n d f u n c t i o n | e n d f u n | e n | e n d i f | e n d t | e n d t r y | e n d w | e n d w h i l e | e n e | e n e w | e x | e x i | e x i t | e x u | e x u s a g e | f | f i l e | f i l e s | f i l e t y p e | f i n a | f i n a l l y | f i n | f i n d | f i n i | f i n i s h | f i r | f i r s t | f i x | f i x d e l | f o | f o l d | f o l d c | f o l d c l o s e | f o l d d o c | f o l d d o c l o s e d | f o l d d | f o l d d o o p e n | f o l d o | f o l d o p e n | f o r | f u | f u n | f u n c t i o n | g o | g o t o | g r | g r e p | g r e p a | g r e p a d d | h a | h a r d c o p y | h | h e l p | h e l p f | h e l p f i n d | h e l p g | h e l p g r e p | h e l p t | h e l p t a g s | h i d | h i d e | h i s | h i s t o r y | i a | i a b b r e v | i a b c | i a b c l e a r | i f | i j | i j u m p | i l | i l i s t | i m a p c | i m a p c l e a r | i n | i n o r e a | i n o r e a b b r e v | i s e a r c h | i s p | i s p l i t | i u n a | i u n a b b r e v | i u | i u n m a p | j | j o i n | j u | j u m p s | k | k e e p a l t | k e e p j | k e e p j u m p s | k e e | k e e p m a r k s | l a d d b | l a d d b u f f e r | l a d | l a d d e x p r | l a d d f | l a d d f i l e | l a n | l a n g u a g e | l a | l a s t | l a t e r | l b | l b u f f e r | l c | l c d | l c h | l c h d i r | l c l | l c l o s e | l e t | l e f t | l e f t a | l e f t a b o v e | l e x | l e x p r | l f | l f i l e | l f i r | l f i r s t | l g e t b | l g e t b u f f e r | l g e t e | l g e t e x p r | l g | l g e t f i l e | l g r | l g r e p | l g r e p a | l g r e p a d d | l h | l h e l p g r e p | l | l i s t | l l | l l a | l l a s t | l l i | l l i s t | l m a k | l m a k e | l m | l m a p | l m a p c | l m a p c l e a r | l n e w | l n e w e r | l n e | l n e x t | l N | l N e x t | l n f | l n f i l e | l N f | l N f i l e | l n | l n o r e m a p | l o | l o a d v i e w | l o c | l o c k m a r k s | l o c k v | l o c k v a r | l o l | l o l d e r | l o p | l o p e n | l p f | l p f i l e | l p | l p r e v i o u s | l r | l r e w i n d | l s | l t | l t a g | l u | l u n m a p | l v | l v i m g r e p | l v i m g r e p a | l v i m g r e p a d d | l w | l w i n d o w | m a k | m a k e | m a | m a r k | m a r k s | m a t | m a t c h | m e n u t | m e n u t r a n s l a t e | m k | m k e x r c | m k s | m k s e s s i o n | m k s p | m k s p e l l | m k v i e | m k v i e w | m k v | m k v i m r c | m o d | m o d e | m | m o v e | m z f | m z f i l e | m z | m z s c h e m e | n b k e y | n e w | n | n e x t | N | N e x t | n m a p c | n m a p c l e a r | n o h | n o h l s e a r c h | n o r e a | n o r e a b b r e v | n u | n u m b e r | n u n | n u n m a p | o m a p c | o m a p c l e a r | o n | o n l y | o | o p e n | o p t | o p t i o n s | o u | o u n m a p | p c | p c l o s e | p e d | p e d i t | p e | p e r l | p e r l d | p e r l d o | p o | p o p | p o p u | p o p u p | p p | p p o p | p r e | p r e s e r v e | p r e v | p r e v i o u s | p | p r i n t | P | P r i n t | p r o f d | p r o f d e l | p r o f | p r o f i l e | p r o m p t f | p r o m p t f i n d | p r o m p t r | p r o m p t r e p l | p s | p s e a r c h | p t a | p t a g | p t f | p t f i r s t | p t j | p t j u m p | p t l | p t l a s t | p t n | p t n e x t | p t N | p t N e x t | p t p | p t p r e v i o u s | p t r | p t r e w i n d | p t s | p t s e l e c t | p u | p u t | p w | p w d | p y f | p y f i l e | p y | p y t h o n | q a | q a l l | q | q u i t | q u i t a | q u i t a l l | r | r e a d | r e c | r e c o v e r | r e d i | r e d i r | r e d | r e d o | r e d r | r e d r a w | r e d r a w s | r e d r a w s t a t u s | r e g | r e g i s t e r s | r e s | r e s i z e | r e t | r e t a b | r e t u | r e t u r n | r e w | r e w i n d | r i | r i g h t | r i g h t b | r i g h t b e l o w | r u b | r u b y | r u b y d | r u b y d o | r u b y f | r u b y f i l e | r u | r u n t i m e | r v | r v i m i n f o | s a l | s a l l | s a n | s a n d b o x | s a | s a r g u m e n t | s a v | s a v e a s | s b a | s b a l l | s b f | s b f i r s t | s b l | s b l a s t | s b m | s b m o d i f i e d | s b n | s b n e x t | s b N | s b N e x t | s b p | s b p r e v i o u s | s b r | s b r e w i n d | s b | s b u f f e r | s c r i p t e | s c r i p t e n c o d i n g | s c r i p | s c r i p t n a m e s | s e | s e t | s e t f | s e t f i l e t y p e | s e t g | s e t g l o b a l | s e t l | s e t l o c a l | s f | s f i n d | s f i r | s f i r s t | s h | s h e l l | s i g n | s i l | s i l e n t | s i m | s i m a l t | s l a | s l a s t | s l | s l e e p | s m | s m a g i c | s m a p | s m a p c | s m a p c l e a r | s m e | s m e n u | s n | s n e x t | s N | s N e x t | s n i | s n i f f | s n o | s n o m a g i c | s n o r | s n o r e m a p | s n o r e m e | s n o r e m e n u | s o r | s o r t | s o | s o u r c e | s p e l l d | s p e l l d u m p | s p e | s p e l l g o o d | s p e l l i | s p e l l i n f o | s p e l l r | s p e l l r e p a l l | s p e l l u | s p e l l u n d o | s p e l l w | s p e l l w r o n g | s p | s p l i t | s p r | s p r e v i o u s | s r e | s r e w i n d | s t a | s t a g | s t a r t g | s t a r t g r e p l a c e | s t a r | s t a r t i n s e r t | s t a r t r | s t a r t r e p l a c e | s t j | s t j u m p | s t | s t o p | s t o p i | s t o p i n s e r t | s t s | s t s e l e c t | s
2020-10-20 03:37:35 +03: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)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i , alias : "comment" , greedy : ! 0 } , string : { pattern : /\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i , greedy : ! 0 } , date : { pattern : /#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i , alias : "builtin" } , number : /(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i , boolean : /\b(?:True|False|Nothing)\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)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i , operator : [ /[+\-*/\\^<=>&#@$%!]/ , { pattern : /([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/ , lookbehind : ! 0 } ] , punctuation : /[{}().,:?]/ } , Prism . languages . vb = Prism . languages [ "visual-basic" ] , Prism . languages . vba = Prism . languages [ "visual-basic" ] ;
2021-08-24 15:29:19 +03:00
Prism . languages . wasm = { comment : [ /\(;[\s\S]*?;\)/ , { pattern : /;;.*/ , greedy : ! 0 } ] , string : { pattern : /"(?:\\[\s\S]|[^"\\])*"/ , greedy : ! 0 } , keyword : [ { pattern : /\b(?:align|offset)=/ , inside : { operator : /=/ } } , { pattern : /\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/ , inside : { punctuation : /\./ } } , /\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/ ] , variable : /\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/i , number : /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/ , punctuation : /[()]/ } ;
! 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 ( "true|false" , "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 ) ;
! function ( ) { if ( "undefined" != typeof Prism && "undefined" != typeof document && document . querySelector ) { var t , o = "line-numbers" , s = "linkable-line-numbers" , a = function ( ) { if ( void 0 === t ) { var e = document . createElement ( "div" ) ; e . style . fontSize = "13px" , e . style . lineHeight = "1.5" , e . style . padding = "0" , e . style . border = "0" , e . innerHTML = " <br /> " , document . body . appendChild ( e ) , t = 38 === e . offsetHeight , document . body . removeChild ( e ) } return t } , l = ! 0 , u = 0 ; Prism . hooks . add ( "before-sanity-check" , function ( e ) { var t = e . element . parentElement ; if ( c ( t ) ) { var n = 0 ; v ( ".line-highlight" , t ) . forEach ( function ( e ) { n += e . textContent . length , e . parentNode . removeChild ( e ) } ) , n && /^(?: \n)+$/ . test ( e . code . slice ( - n ) ) && ( e . code = e . code . slice ( 0 , - n ) ) } } ) , Prism . hooks . add ( "complete" , function e ( t ) { var n = t . element . parentElement ; if ( c ( n ) ) { clearTimeout ( u ) ; var i = Prism . plugins . lineNumbers , r = t . plugins && t . plugins . lineNumbers ; if ( y ( n , o ) && i && ! r ) Prism . hooks . add ( "line-numbers" , e ) ; else d ( n ) ( ) , u = setTimeout ( f , 1 ) } } ) , window . addEventListener ( "hashchange" , f ) , window . addEventListener ( "resize" , function ( ) { v ( "pre" ) . filter ( c ) . map ( function ( e ) { return d ( e ) } ) . forEach ( b ) } ) } function v ( e , t ) { return Array . prototype . slice . call ( ( t || document ) . querySelectorAll ( e ) ) } function y ( e , t ) { return e . classList . contains ( t ) } function b ( e ) { e ( ) } function c ( e ) { return ! ( ! e || ! /pre/i . test ( e . nodeName ) ) && ( ! ! e . hasAttribute ( "data-line" ) || ! ( ! e . id || ! Prism . util . isActive ( e , s ) ) ) } function d ( u , e , c ) { var t = ( e = "string" == typeof e ? e : u . getAttribute ( "data-line" ) || "" ) . replace ( /\s+/g , "" ) . split ( "," ) . filter ( Boolean ) , d = + u . getAttribute ( "data-line-offset" ) || 0 , f = ( a ( ) ? parseInt : parseFloat ) ( getComputedStyle ( u ) . lineHeight ) , p = Prism . util . isActive ( u , o ) , n = u . querySelector ( "code" ) , h = p ? u : n || u , m = [ ] , g = n && h != n ? function ( e , t ) { var n = getComputedStyle ( e ) , i = getComputedStyle ( t ) ; function r ( e ) { return + e . substr ( 0 , e . length - 2 ) } return t . offsetTop + r ( i . borderTopWidth ) + r ( i . paddingTop ) - r ( n . paddingTop ) } ( u , n ) : 0 ; t . forEach ( function ( e ) { var t = e . split ( "-" ) , n = + t [ 0 ] , i = + t [ 1 ] || n , r = u . querySelector ( '.line-highlight[data-range="' + e + '"]' ) || document . createElement ( "div" ) ; if ( m . push ( function ( ) { r . setAttribute ( "aria-hidden" , "true" ) , r . setAttribute ( "data-range" , e ) , r . className = ( c || "" ) + " line-highlight" } ) , p && Prism . plugins . lineNumbers ) { var o = Prism . plugins . lineNumbers . getLine ( u , n ) , s = Prism . plugins . lineNumbers . getLine ( u , i ) ; if ( o ) { var a = o . offsetTop + g + "px" ; m . push ( function ( ) { r . style . top = a } ) } if ( s ) { var l = s . offsetTop - o . offsetTop + s . offsetHeight + "px" ; m . push ( function ( ) { r . style . height = l } ) } } else m . push ( function ( ) { r . setAttribute ( "data-start" , String ( n ) ) , n < i && r . setAttribute ( "data-end" , String ( i ) ) , r . style . top = ( n - d - 1 ) * f + g + "px" , r . textContent = new Array ( i - n + 2 ) . join ( " \n" ) } ) ; m . push ( function ( ) { r . style . width = u . scrollWidth + "px" } ) , m . push ( function ( ) { h . appendChild ( r ) } ) } ) ; var i = u . id ; if ( p && Prism . util . isActive ( u , s ) && i ) { y ( u , s ) || m . push ( function ( ) { u . classList . add ( s ) } ) ; var r = parseInt ( u . getAttribute ( "data-start" ) || "1" ) ; v ( ".line-numbers-rows > span" , u ) . forEach ( function ( e , t ) { var n = t + r ; e . onclick = function ( ) { var e = i + "." + n ; l = ! 1 , location . hash = e , setTimeout ( function ( ) { l = ! 0 } , 1 ) } } ) } return function ( ) { m . forEach ( b ) } } function f ( ) { var e = location . hash . slice ( 1 ) ; v ( ".temporary.line-highlight" ) . forEach ( function ( e ) { e . parentNode . removeChild ( e ) } ) ; var t = ( e . match ( /\.([\d,-]+)$/ ) || [ , "" ] ) [ 1 ] ; if ( t && ! document . getElementById ( e ) ) { var n = e . slice ( 0 , e . lastIndexOf ( "." ) ) , i = document . getElementById ( n ) ; if ( i ) i . hasAttribute ( "data-line" ) || i . setAttribute ( "data-line" , "" ) , d ( i , t , "temporary " ) ( ) , l && document . querySelector ( ".temporary.line-highlight" ) . scrollIntoView ( ) } } } ( ) ;
! function ( ) { if ( "undefined" != typeof Prism && "undefined" != typeof document ) { var o = "line-numbers" , a = /\n(?!$)/g , e = Prism . plugins . lineNumbers = { getLine : function ( e , n ) { if ( "PRE" === e . tagName && e . classList . contains ( o ) ) { var t = e . querySelector ( ".line-numbers-rows" ) ; if ( t ) { var i = parseInt ( e . getAttribute ( "data-start" ) , 10 ) || 1 , r = i + ( t . children . length - 1 ) ; n < i && ( n = i ) , r < n && ( n = r ) ; var s = n - i ; return t . children [ s ] } } } , resize : function ( e ) { u ( [ e ] ) } , assumeViewportIndependence : ! 0 } , n = void 0 ; window . addEventListener ( "resize" , function ( ) { e . assumeViewportIndependence && n === window . innerWidth || ( n = window . innerWidth , u ( Array . prototype . slice . call ( document . querySelectorAll ( "pre." + o ) ) ) ) } ) , Prism . hooks . add ( "complete" , function ( e ) { if ( e . code ) { var n = e . element , t = n . parentNode ; if ( t && /pre/i . test ( t . nodeName ) && ! n . querySelector ( ".line-numbers-rows" ) && Prism . util . isActive ( n , o ) ) { n . classList . remove ( o ) , t . classList . add ( o ) ; var i , r = e . code . match ( a ) , s = r ? r . length + 1 : 1 , l = new Array ( s + 1 ) . join ( "<span></span>" ) ; ( i = document . createElement ( "span" ) ) . setAttribute ( "aria-hidden" , "true" ) , i . className = "line-numbers-rows" , i . innerHTML = l , t . hasAttribute ( "data-start" ) && ( t . style . counterReset = "linenumber " + ( parseInt ( t . getAttribute ( "data-start" ) , 10 ) - 1 ) ) , e . element . appendChild ( i ) , u ( [ t ] ) , Prism . hooks . run ( "line-numbers" , e ) } } } ) , Prism . hooks . add ( "line-numbers" , function ( e ) { e . plugins = e . plugins || { } , e . plugins . lineNumbers = ! 0 } ) } function u ( e ) { if ( 0 != ( e = e . filter ( function ( e ) { var n = function ( e ) { return e ? window . getComputedStyle ? getComputedStyle ( e ) : e . currentStyle || null : null } ( e ) [ "white-space" ] ; return "pre-wrap" === n || "pre-line" === n } ) ) . length ) { var n = e . map ( function ( e ) { var n = e . querySelector ( "code" ) , t = e . querySelector ( ".line-numbers-rows" ) ; if ( n && t ) { var i = e . querySelector ( ".line-numbers-sizer" ) , r = n . textContent . split ( a ) ; i || ( ( i = document . createElement ( "span" ) ) . className = "line-numbers-sizer" , n . appendChild ( i ) ) , i . innerHTML = "0" , i . style . display = "block" ; var s = i . getBoundingClientRect ( ) . height ; return i . innerHTML = "" , { element : e , lines : r , lineHeights : [ ] , oneLinerHeight : s , sizer : i } } } ) . filter ( Boolean ) ; n . forEach ( function ( e ) { var i = e . sizer , n = e . lines , r = e . lineHeights , s = e . oneLinerHeight ; r [ n . length - 1 ] = void 0 , n . forEach ( function ( e , n ) { if ( e && 1 < e . length ) { var t = i . appendChild ( document . createElement ( "span" ) ) ; t . style . display = "block" , t . textContent = e } else r [ n ] = s } ) } ) , n . 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 ) } ) , n . 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" } ) } ) } } } ( ) ;
! function ( ) { if ( "undefined" != typeof Prism && "undefined" != typeof document ) { var s = [ ] ; t ( function ( t ) { if ( t && t . meta && t . data ) { if ( t . meta . status && 400 <= t . meta . status ) return "Error: " + ( t . data . message || t . meta . status ) ; if ( "string" == typeof t . data . content ) return "function" == typeof atob ? atob ( t . data . content . replace ( /\s/g , "" ) ) : "Your browser cannot decode base64" } return null } , "github" ) , t ( function ( t , e ) { if ( t && t . meta && t . data && t . data . files ) { if ( t . meta . status && 400 <= t . meta . status ) return "Error: " + ( t . data . message || t . meta . status ) ; var n = t . data . files , a = e . getAttribute ( "data-filename" ) ; if ( null == a ) for ( var r in n ) if ( n . hasOwnProperty ( r ) ) { a = r ; break } return void 0 !== n [ a ] ? n [ a ] . content : "Error: unknown or missing gist file " + a } return null } , "gist" ) , t ( function ( t ) { return t && t . node && "string" == typeof t . data ? t . data : null } , "bitbucket" ) ; var f = 0 , d = "data-jsonp-status" , l = "loading" , c = "loaded" , m = "failed" , p = "pre[data-jsonp]:not([" + d + '="' + c + '"]):not([' + d + '="' + l + '"])' ; Prism . hooks . add ( "before-highlightall" , function ( t ) { t . selector += ", " + p } ) , Prism . hooks . add ( "before-sanity-check" , function ( t ) { var r = t . element ; if ( r . matches ( p ) ) { t . code = "" , r . setAttribute ( d , l ) ; var i = r . appendChild ( document . createElement ( "CODE" ) ) ; i . textContent = "Loading…" ; var e = t . language ; i . className = "language-" + e ; var n = Prism . plugins . autoloader ; n && n . loadLanguages ( e ) ; var a = r . getAttribute ( "data-adapter" ) , o = null ; if ( a ) { if ( "function" != typeof window [ a ] ) return r . setAttribute ( d , m ) , void ( i . textContent = function ( t ) { return '✖ Error: JSONP adapter function "' + t + "\" doesn't exist" } ( a ) ) ; o = window [ a ] } var u = r . getAttribute ( "data-jsonp" ) ; ! function ( t , e , n , a ) { var r = "prismjsonp" + f ++ , i = document . createElement ( "a" ) ; i . href = t , i . href += ( i . search ? "&" : "?" ) + ( e || "callback" ) + "=" + r ; var o = document . createElement ( "script" ) ; o . src = i . href , o . onerror = function ( ) { s ( ) , a ( "network" ) } ; var u = setTimeout ( function ( ) { s ( ) , a ( "timeout" ) } , Prism . plugins . jsonphighlight . timeout ) ; function s ( ) { clearTimeout ( u ) , document . head . removeChild ( o ) , delete window [ r ] } window [ r ] = function ( t ) { s ( ) , n ( t ) } , document . head . appendChild ( o ) } ( u , r . getAttribute ( "data-callback" ) , function ( t ) { var e = null ; if ( o ) e = o ( t , r ) ; else for ( var n = 0 , a = s . length ; n < a && null === ( e = s [ n ] . adapter ( t , r ) ) ; n ++ ) ; null === e ? ( r . setAttribute ( d , m ) , i . textContent = "✖ Error: Cannot parse response (perhaps you need an adapter function?)" ) : ( r . setAttribute ( d , c ) , i . textContent = e , Prism . highlightElement ( i ) ) } , function ( ) { r . setAttribute ( d , m ) , i . textContent = function ( t ) { return "✖ Error: Timeout loading " + t } ( u ) } ) } } ) , Prism . plugins . jsonphighlight = { timeout : 5e3 , registerAdapter : t , removeAdapter : function ( e ) { if ( "string" == typeof e && ( e = n ( e ) ) , "function" == typeof e ) { var t = s . findIndex ( function ( t ) { return t . adapter === e } ) ; 0 <= t && s . splice ( t , 1 ) } } , highlight : function ( t ) { for ( var e , n = ( t || document ) . querySelectorAll ( p ) , a = 0 ; e = n [ a ++ ] ; ) Prism . highlightElement ( e ) } } } function t ( t , e ) { e = e || t . name , "function" != typeof t || n ( t ) || n ( e ) || s . push ( { adapter : t , name : e } ) } function n ( t ) { if ( "function" == typeof t ) { for ( var e = 0 ; n = s [ e ++ ] ; ) if ( n . adapter . valueOf ( ) === t . valueOf ( ) ) return n . adapter } else if ( "string" == typeof t ) { var n ; for ( e = 0 ; n = s [ e ++ ] ; ) if ( n . name === t ) return n . adapter } return null } } ( ) ;
"undefined" != typeof Prism && Prism . hooks . add ( "wrap" , function ( e ) { "keyword" === e . type && e . classes . push ( "keyword-" + e . content ) } ) ;
! function ( ) { if ( "undefined" != typeof Prism && "undefined" != typeof document ) { var d = /(?:^|\s)command-line(?:\s|$)/ , f = "command-line-prompt" , m = "" . startsWith ? function ( e , t ) { return e . startsWith ( t ) } : function ( e , t ) { return 0 === e . indexOf ( t ) } ; Prism . hooks . add ( "before-highlight" , function ( e ) { var t = h ( e ) ; if ( ! t . complete && e . code ) { var n = e . element . parentElement ; if ( n && /pre/i . test ( n . nodeName ) && ( d . test ( n . className ) || d . test ( e . element . className ) ) ) { var a = e . element . querySelector ( "." + f ) ; a && a . remove ( ) ; var s = e . code . split ( "\n" ) ; t . numberOfLines = s . length ; var o = t . outputLines = [ ] , r = n . getAttribute ( "data-output" ) , i = n . getAttribute ( "data-filter-output" ) ; if ( null !== r ) r . split ( "," ) . forEach ( function ( e ) { var t = e . split ( "-" ) , n = parseInt ( t [ 0 ] , 10 ) , a = 2 === t . length ? parseInt ( t [ 1 ] , 10 ) : n ; if ( ! isNaN ( n ) && ! isNaN ( a ) ) { n < 1 && ( n = 1 ) , a > s . length && ( a = s . length ) , a -- ; for ( var r = -- n ; r <= a ; r ++ ) o [ r ] = s [ r ] , s [ r ] = "" } } ) ; else if ( i ) for ( var l = 0 ; l < s . length ; l ++ ) m ( s [ l ] , i ) && ( o [ l ] = s [ l ] . slice ( i . length ) , s [ l ] = "" ) ; e . code = s . join ( "\n" ) } else t . complete = ! 0 } else t . complete = ! 0 } ) , Prism . hooks . add ( "before-insert" , function ( e ) { var t = h ( e ) ; if ( ! t . complete ) { for ( var n = e . highlightedCode . split ( "\n" ) , a = t . outputLines || [ ] , r = 0 , s = a . length ; r < s ; r ++ ) a . hasOwnProperty ( r ) && ( n [ r ] = a [ r ] ) ; e . highlightedCode = n . join ( "\n" ) } } ) , Prism . hooks . add ( "complete" , function ( e ) { if ( function ( e ) { return "command-line" in ( e . vars = e . vars || { } ) } ( e ) ) { var t = h ( e ) ; if ( ! t . complete ) { var n , a = e . element . parentElement ; d . test ( e . element . className ) && ( e . element . className = e . element . className . replace ( d , " " ) ) , d . test ( a . className ) || ( a . className += " command-line" ) ; var r = t . numberOfLines || 0 , s = c ( "data-prompt" , "" ) ; if ( "" !== s ) n = p ( '<span data-prompt="' + s + '"></span>' , r ) ; else n = p ( '<span data-user="' + c ( "data-user" , "user" ) + '" data-host="' + c ( "data-host" , "localhost" ) + '"></span>' , r ) ; var o = document . createElement ( "span" ) ; o . className = f , o . innerHTML = n ; for ( var i = t . outputLines || [ ] , l = 0 , m = i . length ; l < m ; l ++ ) if ( i . hasOwnProperty ( l ) ) { var u = o . children [ l ] ; u . removeAttribute ( "data-user" ) , u . removeAttribute ( "data-host" ) , u . removeAttribute ( "data-prompt" ) } e . element . insertBefore ( o , e . element . firstChild ) , t . complete = ! 0 } } function c ( e , t ) { return ( a . getAttribute ( e ) || t ) . replace ( /"/g , """ ) } } ) } function p ( e , t ) { for ( var n = "" , a = 0 ; a < t ; a ++ ) n += e ; return n } function h ( e ) { var t = e . vars = e . vars || { } ; return t [ "command-line" ] = t [ "command-line" ] || { } } } ( ) ;
! function ( ) { if ( "undefined" != typeof Prism && "undefined" != typeof document ) { var i = [ ] , l = { } , d = function ( ) { } ; Prism . plugins . toolbar = { } ; var e = Prism . plugins . toolbar . registerButton = function ( e , n ) { var t ; t = "function" == typeof n ? n : function ( e ) { var t ; return "function" == typeof n . onClick ? ( ( t = document . createElement ( "button" ) ) . type = "button" , t . addEventListener ( "click" , function ( ) { n . onClick . call ( this , e ) } ) ) : "string" == typeof n . url ? ( t = document . createElement ( "a" ) ) . href = n . url : t = document . createElement ( "span" ) , n . className && t . classList . add ( n . className ) , t . textContent = n . text , t } , e in l ? console . warn ( 'There is a button with the key "' + e + '" registered already.' ) : i . push ( l [ e ] = t ) } , t = Prism . plugins . toolbar . hook = function ( a ) { var e = a . element . parentNode ; if ( e && /pre/i . test ( e . nodeName ) && ! e . parentNode . classList . contains ( "code-toolbar" ) ) { var t = document . createElement ( "div" ) ; t . classList . add ( "code-toolbar" ) , e . parentNode . insertBefore ( t , e ) , t . appendChild ( e ) ; var r = document . createElement ( "div" ) ; r . classList . add ( "toolbar" ) ; var n = i , o = function ( e ) { for ( ; e ; ) { var t = e . getAttribute ( "data-toolbar-order" ) ; if ( null != t ) return ( t = t . trim ( ) ) . length ? t . split ( /\s*,\s*/g ) : [ ] ; e = e . parentElement } } ( a . element ) ; o && ( n = o . map ( function ( e ) { return l [ e ] || d } ) ) , n . forEach ( function ( e ) { var t = e ( a ) ; if ( t ) { var n = document . createElement ( "div" ) ; n . classList . add ( "toolbar-item" ) , n . appendChild ( t ) , r . appendChild ( n ) } } ) , t . appendChild ( r ) } } ; e ( "label" , function ( e ) { var t = e . element . parentNode ; if ( t && /pre/i . test ( t . nodeName ) && t . hasAttribute ( "data-label" ) ) { var n , a , r = t . getAttribute ( "data-label" ) ; try { a = document . querySelector ( "template#" + r ) } catch ( e ) { } return a ? n = a . content : ( t . hasAttribute ( "data-url" ) ? ( n = document . createElement ( "a" ) ) . href = t . getAttribute ( "data-url" ) : n = document . createElement ( "span" ) , n . textContent = r ) , n } } ) , Prism . hooks . add ( "complete" , t ) } } ( ) ;
! function ( ) { function u ( t , e ) { t . addEventListener ( "click" , function ( ) { ! function ( t ) { navigator . clipboard ? navigator . clipboard . writeText ( t . getText ( ) ) . then ( t . success , function ( ) { o ( t ) } ) : o ( t ) } ( e ) } ) } function o ( e ) { var t = document . createElement ( "textarea" ) ; t . value = e . getText ( ) , t . style . top = "0" , t . style . left = "0" , t . style . position = "fixed" , document . body . appendChild ( t ) , t . focus ( ) , t . select ( ) ; try { var o = document . execCommand ( "copy" ) ; setTimeout ( function ( ) { o ? e . success ( ) : e . error ( ) } , 1 ) } catch ( t ) { setTimeout ( function ( ) { e . error ( t ) } , 1 ) } document . body . removeChild ( t ) } "undefined" != typeof Prism && "undefined" != typeof document && ( Prism . plugins . toolbar ? Prism . plugins . toolbar . registerButton ( "copy-to-clipboard" , function ( t ) { var e = t . element , o = function ( t ) { var e = { copy : "Copy" , "copy-error" : "Press Ctrl+C to copy" , "copy-success" : "Copied!" , "copy-timeout" : 5e3 } ; for ( var o in e ) { for ( var n = "data-prismjs-" + o , c = t ; c && ! c . hasAttribute ( n ) ; ) c = c . parentElement ; c && ( e [ o ] = c . getAttribute ( n ) ) } return e } ( e ) , n = document . createElement ( "button" ) ; n . className = "copy-to-clipboard-button" , n . setAttribute ( "type" , "button" ) ; var c = document . createElement ( "span" ) ; return n . appendChild ( c ) , i ( "copy" ) , u ( n , { getText : function ( ) { return e . textContent } , success : function ( ) { i ( "copy-success" ) , r ( ) } , error : function ( ) { i ( "copy-error" ) , setTimeout ( function ( ) { ! function ( t ) { window . getSelection ( ) . selectAllChildren ( t ) } ( e ) } , 1 ) , r ( ) } } ) , n ; function r ( ) { setTimeout ( function ( ) { i ( "copy" ) } , o [ "copy-timeout" ] ) } function i ( t ) { c . textContent = o [ t ] , n . setAttribute ( "data-copy-state" , t ) } } ) : console . warn ( "Copy to Clipboard plugin loaded before Toolbar plugin." ) ) } ( ) ;