2020-09-18 15:06:48 +02:00
/ *
2020-11-19 10:59:02 +01:00
Highlight . js 10.2 . 1 ( 32 fb9a1d )
2020-09-18 15:06:48 +02:00
License : BSD - 3 - Clause
Copyright ( c ) 2006 - 2020 , Ivan Sagalaev
* /
2020-11-19 10:59:02 +01:00
var hljs = function ( ) { "use strict" ; function e ( n ) { Object . freeze ( n ) ; var t = "function" == typeof n ; return Object . getOwnPropertyNames ( n ) . forEach ( ( function ( r ) { ! Object . hasOwnProperty . call ( n , r ) || null === n [ r ] || "object" != typeof n [ r ] && "function" != typeof n [ r ] || t && ( "caller" === r || "callee" === r || "arguments" === r ) || Object . isFrozen ( n [ r ] ) || e ( n [ r ] ) } ) ) , n } class n { constructor ( e ) { void 0 === e . data && ( e . data = { } ) , this . data = e . data } ignoreMatch ( ) { this . ignore = ! 0 } } function t ( e ) { return e . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( />/g , ">" ) . replace ( /"/g , """ ) . replace ( /'/g , "'" ) } function r ( e , ... n ) { var t = { } ; for ( const n in e ) t [ n ] = e [ n ] ; return n . forEach ( ( function ( e ) { for ( const n in e ) t [ n ] = e [ n ] } ) ) , t } function a ( e ) { return e . nodeName . toLowerCase ( ) } var i = Object . freeze ( { _ _proto _ _ : null , escapeHTML : t , inherit : r , nodeStream : function ( e ) { var n = [ ] ; return function e ( t , r ) { for ( var i = t . firstChild ; i ; i = i . nextSibling ) 3 === i . nodeType ? r += i . nodeValue . length : 1 === i . nodeType && ( n . push ( { event : "start" , offset : r , node : i } ) , r = e ( i , r ) , a ( i ) . match ( /br|hr|img|input/ ) || n . push ( { event : "stop" , offset : r , node : i } ) ) ; return r } ( e , 0 ) , n } , mergeStreams : function ( e , n , r ) { var i = 0 , s = "" , o = [ ] ; function l ( ) { return e . length && n . length ? e [ 0 ] . offset !== n [ 0 ] . offset ? e [ 0 ] . offset < n [ 0 ] . offset ? e : n : "start" === n [ 0 ] . event ? e : n : e . length ? e : n } function c ( e ) { s += "<" + a ( e ) + [ ] . map . call ( e . attributes , ( function ( e ) { return " " + e . nodeName + '="' + t ( e . value ) + '"' } ) ) . join ( "" ) + ">" } function u ( e ) { s += "</" + a ( e ) + ">" } function g ( e ) { ( "start" === e . event ? c : u ) ( e . node ) } for ( ; e . length || n . length ; ) { var d = l ( ) ; if ( s += t ( r . substring ( i , d [ 0 ] . offset ) ) , i = d [ 0 ] . offset , d === e ) { o . reverse ( ) . forEach ( u ) ; do { g ( d . splice ( 0 , 1 ) [ 0 ] ) , d = l ( ) } while ( d === e && d . length && d [ 0 ] . offset === i ) ; o . reverse ( ) . forEach ( c ) } else "start" === d [ 0 ] . event ? o . push ( d [ 0 ] . node ) : o . pop ( ) , g ( d . splice ( 0 , 1 ) [ 0 ] ) } return s + t ( r . substr ( i ) ) } } ) ; const s = "</span>" , o = e => ! ! e . kind ; class l { constructor ( e , n ) { this . buffer = "" , this . classPrefix = n . classPrefix , e . walk ( this ) } addText ( e ) { this . buffer += t ( e ) } openNode ( e ) { if ( ! o ( e ) ) return ; let n = e . kind ; e . sublanguage || ( n = ` ${ this . classPrefix } ${ n } ` ) , this . span ( n ) } closeNode ( e ) { o ( e ) && ( this . buffer += s ) } value ( ) { return this . buffer } span ( e ) { this . buffer += ` <span class=" ${ e } "> ` } } class c { constructor ( ) { this . rootNode = { children : [ ] } , this . stack = [ this . rootNode ] } get top ( ) { return this . stack [ this . stack . length - 1 ] } get root ( ) { return this . rootNode } add ( e ) { this . top . children . push ( e ) } openNode ( e ) { const n = { kind : e , children : [ ] } ; this . add ( n ) , this . stack . push ( n ) } closeNode ( ) { if ( this . stack . length > 1 ) return this . stack . pop ( ) } closeAllNodes ( ) { for ( ; this . closeNode ( ) ; ) ; } toJSON ( ) { return JSON . stringify ( this . rootNode , null , 4 ) } walk ( e ) { return this . constructor . _walk ( e , this . rootNode ) } static _walk ( e , n ) { return "string" == typeof n ? e . addText ( n ) : n . children && ( e . openNode ( n ) , n . children . forEach ( n => this . _walk ( e , n ) ) , e . closeNode ( n ) ) , e } static _collapse ( e ) { "string" != typeof e && e . children && ( e . children . every ( e => "string" == typeof e ) ? e . children = [ e . children . join ( "" ) ] : e . children . forEach ( e => { c . _collapse ( e ) } ) ) } } class u extends c { constructor ( e ) { super ( ) , this . options = e } addKeyword ( e , n ) { "" !== e && ( this . openNode ( n ) , this . addText ( e ) , this . closeNode ( ) ) } addText ( e ) { "" !== e && this . add ( e ) } addSublanguage ( e , n ) { const t = e . root ; t . kind = n , t . sublanguage = ! 0 , this . add ( t ) } toHTML ( ) { return new l ( this , this . options ) . value ( ) } finalize ( ) { return ! 0 } } function g ( e ) { return e ? "string" == typeof e ? e : e . source : null } const d = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)" , h = { begin : "\\\\[\\s\\S]" , relevance : 0 } , f = { className : "string" , begin : "'" , end : "'" , illegal : "\\n" , contains : [ h ] } , p = { className : "string" , begin : '"' , end : '"' , illegal : "\\n" , contains : [ h ] } , m = { begin : /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ } , b = function ( e , n , t = { } ) { var a = r ( { className : "comment" , begin : e , end : n , contains : [ ] } , t ) ; return a . contains . push ( m ) , a . contains . push ( { className : "doctag" , begin : "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):" , relevance : 0 } ) , a } , v = b ( "//" , "$" ) , x = b ( "/\\*" , "\\*/" ) , E = b ( "#" , "$" ) ; var _ = Object . freeze ( { _ _proto _ _ : null , IDENT _RE : "[a-zA-Z]\\w*" , UNDERSCORE _IDENT _RE : "[a-zA-Z_]\\w*" , NUMBER _RE : "\\b\\d+(\\.\\d+)?" , C _NUMBER _RE : d , BINARY _NUMBER _RE : "\\b(0b[01]+)" , RE _STARTERS _RE
2020-09-18 15:06:48 +02:00
hljs . registerLanguage ( "apache" , function ( ) { "use strict" ; return function ( e ) { var n = { className : "number" , begin : "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?" } ; return { name : "Apache config" , aliases : [ "apacheconf" ] , case _insensitive : ! 0 , contains : [ e . HASH _COMMENT _MODE , { className : "section" , begin : "</?" , end : ">" , contains : [ n , { className : "number" , begin : ":\\d{1,5}" } , e . inherit ( e . QUOTE _STRING _MODE , { relevance : 0 } ) ] } , { className : "attribute" , begin : /\w+/ , relevance : 0 , keywords : { nomarkup : "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername" } , starts : { end : /$/ , relevance : 0 , keywords : { literal : "on off all deny allow" } , contains : [ { className : "meta" , begin : "\\s\\[" , end : "\\]$" } , { className : "variable" , begin : "[\\$%]\\{" , end : "\\}" , contains : [ "self" , { className : "number" , begin : "[\\$%]\\d+" } ] } , n , { className : "number" , begin : "\\d+" } , e . QUOTE _STRING _MODE ] } } ] , illegal : /\S/ } } } ( ) ) ;
hljs . registerLanguage ( "bash" , function ( ) { "use strict" ; return function ( e ) { const s = { } ; Object . assign ( s , { className : "variable" , variants : [ { begin : /\$[\w\d#@][\w\d_]*/ } , { begin : /\$\{/ , end : /\}/ , contains : [ { begin : /:-/ , contains : [ s ] } ] } ] } ) ; const t = { className : "subst" , begin : /\$\(/ , end : /\)/ , contains : [ e . BACKSLASH _ESCAPE ] } , n = { className : "string" , begin : /"/ , end : /"/ , contains : [ e . BACKSLASH _ESCAPE , s , t ] } ; t . contains . push ( n ) ; const a = { begin : /\$\(\(/ , end : /\)\)/ , contains : [ { begin : /\d+#[0-9a-f]+/ , className : "number" } , e . NUMBER _MODE , s ] } , i = e . SHEBANG ( { binary : "(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)" , relevance : 10 } ) , c = { className : "function" , begin : /\w[\w\d_]*\s*\(\s*\)\s*\{/ , returnBegin : ! 0 , contains : [ e . inherit ( e . TITLE _MODE , { begin : /\w[\w\d_]*/ } ) ] , relevance : 0 } ; return { name : "Bash" , aliases : [ "sh" , "zsh" ] , keywords : { $pattern : /\b-?[a-z\._-]+\b/ , keyword : "if then else elif fi for while in do done case esac function" , literal : "true false" , built _in : "break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp" , _ : "-ne -eq -lt -gt -f -d -e -s -l -a" } , contains : [ i , e . SHEBANG ( ) , c , a , e . HASH _COMMENT _MODE , n , { className : "" , begin : /\\"/ } , { className : "string" , begin : /'/ , end : /'/ } , s ] } } } ( ) ) ;
hljs . registerLanguage ( "c-like" , function ( ) { "use strict" ; return function ( e ) { function t ( e ) { return "(?:" + e + ")?" } var n = "(decltype\\(auto\\)|" + t ( "[a-zA-Z_]\\w*::" ) + "[a-zA-Z_]\\w*" + t ( "<.*?>" ) + ")" , r = { className : "keyword" , begin : "\\b[a-z\\d_]*_t\\b" } , a = { className : "string" , variants : [ { begin : '(u8?|U|L)?"' , end : '"' , illegal : "\\n" , contains : [ e . BACKSLASH _ESCAPE ] } , { begin : "(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)" , end : "'" , illegal : "." } , e . END _SAME _AS _BEGIN ( { begin : /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/ , end : /\)([^()\\ ]{0,16})"/ } ) ] } , i = { className : "number" , variants : [ { begin : "\\b(0b[01']+)" } , { begin : "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" } , { begin : "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" } ] , relevance : 0 } , s = { className : "meta" , begin : /#\s*[a-z]+\b/ , end : /$/ , keywords : { "meta-keyword" : "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" } , contains : [ { begin : /\\\n/ , relevance : 0 } , e . inherit ( a , { className : "meta-string" } ) , { className : "meta-string" , begin : /<.*?>/ , end : /$/ , illegal : "\\n" } , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , o = { className : "title" , begin : t ( "[a-zA-Z_]\\w*::" ) + e . IDENT _RE , relevance : 0 } , c = t ( "[a-zA-Z_]\\w*::" ) + e . IDENT _RE + "\\s*\\(" , l = { keyword : "int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq" , built _in : "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary" , literal : "true false nullptr NULL" } , d = [ r , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , i , a ] , _ = { variants : [ { begin : /=/ , end : /;/ } , { begin : /\(/ , end : /\)/ } , { beginKeywords : "new throw return else" , end : /;/ } ] , keywords : l , contains : d . concat ( [ { begin : /\(/ , end : /\)/ , keywords : l , contains : d . concat ( [ "self" ] ) , relevance : 0 } ] ) , relevance : 0 } , u = { className : "function" , begin : "(" + n + "[\\*&\\s]+)+" + c , returnBegin : ! 0 , end : /[{;=]/ , excludeEnd : ! 0 , keywords : l , illegal : /[^\w\s\*&:<>]/ , contains : [ { begin : "decltype\\(auto\\)" , keywords : l , relevance : 0 } , { begin : c , returnBegin : ! 0 , contains : [ o ] , relevance : 0 } , { className : "params" , begin : /\(/ , end : /\)/ , keywords : l , relevance : 0 , contains : [ e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , a , i , r , { begin : /\(/ , end : /\)/ , keywords : l , relevance : 0 , contains : [ "self" , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , a , i , r ] } ] } , r , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , s ] } ; return { aliases : [ "c" , "cc" , "h" , "c++" , "h++" , "hpp" , "hh" , "hxx" , "cxx" ] , keywords : l , disableAutodetect : ! 0 , illegal : "</" , contains : [ ] . concat ( _ , u , d , [ s , { begin : " \ \ b ( deque | list | queue | priority _queue | pair | stack | vector | map | set | bitset | multiset | multimap | unordered _map | unordered _set | unordered _multiset | unordered
hljs . registerLanguage ( "c" , function ( ) { "use strict" ; return function ( e ) { var n = e . requireLanguage ( "c-like" ) . rawDefinition ( ) ; return n . name = "C" , n . aliases = [ "c" , "h" ] , n } } ( ) ) ;
hljs . registerLanguage ( "coffeescript" , function ( ) { "use strict" ; const e = [ "as" , "in" , "of" , "if" , "for" , "while" , "finally" , "var" , "new" , "function" , "do" , "return" , "void" , "else" , "break" , "catch" , "instanceof" , "with" , "throw" , "case" , "default" , "try" , "switch" , "continue" , "typeof" , "delete" , "let" , "yield" , "const" , "class" , "debugger" , "async" , "await" , "static" , "import" , "from" , "export" , "extends" ] , n = [ "true" , "false" , "null" , "undefined" , "NaN" , "Infinity" ] , a = [ ] . concat ( [ "setInterval" , "setTimeout" , "clearInterval" , "clearTimeout" , "require" , "exports" , "eval" , "isFinite" , "isNaN" , "parseFloat" , "parseInt" , "decodeURI" , "decodeURIComponent" , "encodeURI" , "encodeURIComponent" , "escape" , "unescape" ] , [ "arguments" , "this" , "super" , "console" , "window" , "document" , "localStorage" , "module" , "global" ] , [ "Intl" , "DataView" , "Number" , "Math" , "Date" , "String" , "RegExp" , "Object" , "Function" , "Boolean" , "Error" , "Symbol" , "Set" , "Map" , "WeakSet" , "WeakMap" , "Proxy" , "Reflect" , "JSON" , "Promise" , "Float64Array" , "Int16Array" , "Int32Array" , "Int8Array" , "Uint16Array" , "Uint32Array" , "Float32Array" , "Array" , "Uint8Array" , "Uint8ClampedArray" , "ArrayBuffer" ] , [ "EvalError" , "InternalError" , "RangeError" , "ReferenceError" , "SyntaxError" , "TypeError" , "URIError" ] ) ; return function ( r ) { var t = { keyword : e . concat ( [ "then" , "unless" , "until" , "loop" , "by" , "when" , "and" , "or" , "is" , "isnt" , "not" ] ) . filter ( ( e => n => ! e . includes ( n ) ) ( [ "var" , "const" , "let" , "function" , "static" ] ) ) . join ( " " ) , literal : n . concat ( [ "yes" , "no" , "on" , "off" ] ) . join ( " " ) , built _in : a . concat ( [ "npm" , "print" ] ) . join ( " " ) } , i = "[A-Za-z$_][0-9A-Za-z$_]*" , s = { className : "subst" , begin : /#\{/ , end : /}/ , keywords : t } , o = [ r . BINARY _NUMBER _MODE , r . inherit ( r . C _NUMBER _MODE , { starts : { end : "(\\s*/)?" , relevance : 0 } } ) , { className : "string" , variants : [ { begin : /'''/ , end : /'''/ , contains : [ r . BACKSLASH _ESCAPE ] } , { begin : /'/ , end : /'/ , contains : [ r . BACKSLASH _ESCAPE ] } , { begin : /"""/ , end : /"""/ , contains : [ r . BACKSLASH _ESCAPE , s ] } , { begin : /"/ , end : /"/ , contains : [ r . BACKSLASH _ESCAPE , s ] } ] } , { className : "regexp" , variants : [ { begin : "///" , end : "///" , contains : [ s , r . HASH _COMMENT _MODE ] } , { begin : "//[gim]{0,3}(?=\\W)" , relevance : 0 } , { begin : /\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/ } ] } , { begin : "@" + i } , { subLanguage : "javascript" , excludeBegin : ! 0 , excludeEnd : ! 0 , variants : [ { begin : "```" , end : "```" } , { begin : "`" , end : "`" } ] } ] ; s . contains = o ; var c = r . inherit ( r . TITLE _MODE , { begin : i } ) , l = { className : "params" , begin : "\\([^\\(]" , returnBegin : ! 0 , contains : [ { begin : /\(/ , end : /\)/ , keywords : t , contains : [ "self" ] . concat ( o ) } ] } ; return { name : "CoffeeScript" , aliases : [ "coffee" , "cson" , "iced" ] , keywords : t , illegal : /\/\*/ , contains : o . concat ( [ r . COMMENT ( "###" , "###" ) , r . HASH _COMMENT _MODE , { className : "function" , begin : "^\\s*" + i + "\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>" , end : "[-=]>" , returnBegin : ! 0 , contains : [ c , l ] } , { begin : /[:\(,=]\s*/ , relevance : 0 , contains : [ { className : "function" , begin : "(\\(.*\\))?\\s*\\B[-=]>" , end : "[-=]>" , returnBegin : ! 0 , contains : [ l ] } ] } , { className : "class" , beginKeywords : "class" , end : "$" , illegal : /[:="\[\]]/ , contains : [ { beginKeywords : "extends" , endsWithParent : ! 0 , illegal : /[:="\[\]]/ , contains : [ c ] } , c ] } , { begin : i + ":" , end : ":" , returnBegin : ! 0 , returnEnd : ! 0 , relevance : 0 } ] ) } } } ( ) ) ;
hljs . registerLanguage ( "cpp" , function ( ) { "use strict" ; return function ( e ) { var i = e . requireLanguage ( "c-like" ) . rawDefinition ( ) ; return i . disableAutodetect = ! 1 , i . name = "C++" , i . aliases = [ "cc" , "c++" , "h++" , "hpp" , "hh" , "hxx" , "cxx" ] , i } } ( ) ) ;
hljs . registerLanguage ( "csharp" , function ( ) { "use strict" ; return function ( e ) { var n = { keyword : "abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in init int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield" , literal : "null false true" } , i = e . inherit ( e . TITLE _MODE , { begin : "[a-zA-Z](\\.?\\w)*" } ) , a = { className : "number" , variants : [ { begin : "\\b(0b[01']+)" } , { begin : "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" } , { begin : "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" } ] , relevance : 0 } , s = { className : "string" , begin : '@"' , end : '"' , contains : [ { begin : '""' } ] } , t = e . inherit ( s , { illegal : /\n/ } ) , l = { className : "subst" , begin : "{" , end : "}" , keywords : n } , r = e . inherit ( l , { illegal : /\n/ } ) , c = { className : "string" , begin : /\$"/ , end : '"' , illegal : /\n/ , contains : [ { begin : "{{" } , { begin : "}}" } , e . BACKSLASH _ESCAPE , r ] } , o = { className : "string" , begin : /\$@"/ , end : '"' , contains : [ { begin : "{{" } , { begin : "}}" } , { begin : '""' } , l ] } , g = e . inherit ( o , { illegal : /\n/ , contains : [ { begin : "{{" } , { begin : "}}" } , { begin : '""' } , r ] } ) ; l . contains = [ o , c , s , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , a , e . C _BLOCK _COMMENT _MODE ] , r . contains = [ g , c , t , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , a , e . inherit ( e . C _BLOCK _COMMENT _MODE , { illegal : /\n/ } ) ] ; var d = { variants : [ o , c , s , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE ] } , E = { begin : "<" , end : ">" , contains : [ { beginKeywords : "in out" } , i ] } , _ = e . IDENT _RE + "(<" + e . IDENT _RE + "(\\s*,\\s*" + e . IDENT _RE + ")*>)?(\\[\\])?" , b = { begin : "@" + e . IDENT _RE , relevance : 0 } ; return { name : "C#" , aliases : [ "cs" , "c#" ] , keywords : n , illegal : /::/ , contains : [ e . COMMENT ( "///" , "$" , { returnBegin : ! 0 , contains : [ { className : "doctag" , variants : [ { begin : "///" , relevance : 0 } , { begin : "\x3c!--|--\x3e" } , { begin : "</?" , end : ">" } ] } ] } ) , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , { className : "meta" , begin : "#" , end : "$" , keywords : { "meta-keyword" : "if else elif endif define undef warning error line region endregion pragma checksum" } } , d , a , { beginKeywords : "class interface" , end : /[{;=]/ , illegal : /[^\s:,]/ , contains : [ { beginKeywords : "where class" } , i , E , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , { beginKeywords : "namespace" , end : /[{;=]/ , illegal : /[^\s:]/ , contains : [ i , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , { beginKeywords : "record" , end : /[{;=]/ , illegal : /[^\s:]/ , contains : [ i , E , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , { className : "meta" , begin : "^\\s*\\[" , excludeBegin : ! 0 , end : "\\]" , excludeEnd : ! 0 , contains : [ { className : "meta-string" , begin : /"/ , end : /"/ } ] } , { beginKeywords : "new return throw await else" , relevance : 0 } , { className : "function" , begin : "(" + _ + "\\s+)+" + e . IDENT _RE + "\\s*(\\<.+\\>)?\\s*\\(" , returnBegin : ! 0 , end : /\s*[{;=]/ , excludeEnd : ! 0 , keywords : n , contains : [ { begin : e . IDENT _RE + "\\s*(\\<.+\\>)?\\s*\\(" , returnBegin : ! 0 , contains : [ e . TITLE _MODE , E ] , relevance : 0 } , { className : "params" , begin : /\(/ , end : /\)/ , excludeBegin : ! 0 , excludeEnd : ! 0 , keywords : n , relevance : 0 , contains : [ d , a , e . C _BLOCK _COMMENT _MODE ] } , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , b ] } } } ( ) ) ;
hljs . registerLanguage ( "css" , function ( ) { "use strict" ; return function ( e ) { var n = { begin : /(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/ , returnBegin : ! 0 , end : ";" , endsWithParent : ! 0 , contains : [ { className : "attribute" , begin : /\S/ , end : ":" , excludeEnd : ! 0 , starts : { endsWithParent : ! 0 , excludeEnd : ! 0 , contains : [ { begin : /[\w-]+\(/ , returnBegin : ! 0 , contains : [ { className : "built_in" , begin : /[\w-]+/ } , { begin : /\(/ , end : /\)/ , contains : [ e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , e . CSS _NUMBER _MODE ] } ] } , e . CSS _NUMBER _MODE , e . QUOTE _STRING _MODE , e . APOS _STRING _MODE , e . C _BLOCK _COMMENT _MODE , { className : "number" , begin : "#[0-9A-Fa-f]+" } , { className : "meta" , begin : "!important" } ] } } ] } ; return { name : "CSS" , case _insensitive : ! 0 , illegal : /[=\/|'\$]/ , contains : [ e . C _BLOCK _COMMENT _MODE , { className : "selector-id" , begin : /#[A-Za-z0-9_-]+/ } , { className : "selector-class" , begin : /\.[A-Za-z0-9_-]+/ } , { className : "selector-attr" , begin : /\[/ , end : /\]/ , illegal : "$" , contains : [ e . APOS _STRING _MODE , e . QUOTE _STRING _MODE ] } , { className : "selector-pseudo" , begin : /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/ } , { begin : "@(page|font-face)" , lexemes : "@[a-z-]+" , keywords : "@page @font-face" } , { begin : "@" , end : "[{;]" , illegal : /:/ , returnBegin : ! 0 , contains : [ { className : "keyword" , begin : /@\-?\w[\w]*(\-\w+)*/ } , { begin : /\s/ , endsWithParent : ! 0 , excludeEnd : ! 0 , relevance : 0 , keywords : "and or not only" , contains : [ { begin : /[a-z-]+:/ , className : "attribute" } , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , e . CSS _NUMBER _MODE ] } ] } , { className : "selector-tag" , begin : "[a-zA-Z-][a-zA-Z0-9_-]*" , relevance : 0 } , { begin : "{" , end : "}" , illegal : /\S/ , contains : [ e . C _BLOCK _COMMENT _MODE , n ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "diff" , function ( ) { "use strict" ; return function ( e ) { return { name : "Diff" , aliases : [ "patch" ] , contains : [ { className : "meta" , relevance : 10 , variants : [ { begin : /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/ } , { begin : /^\*\*\* +\d+,\d+ +\*\*\*\*$/ } , { begin : /^\-\-\- +\d+,\d+ +\-\-\-\-$/ } ] } , { className : "comment" , variants : [ { begin : /Index: / , end : /$/ } , { begin : /={3,}/ , end : /$/ } , { begin : /^\-{3}/ , end : /$/ } , { begin : /^\*{3} / , end : /$/ } , { begin : /^\+{3}/ , end : /$/ } , { begin : /^\*{15}$/ } ] } , { className : "addition" , begin : "^\\+" , end : "$" } , { className : "deletion" , begin : "^\\-" , end : "$" } , { className : "addition" , begin : "^\\!" , end : "$" } ] } } } ( ) ) ;
hljs . registerLanguage ( "go" , function ( ) { "use strict" ; return function ( e ) { var n = { keyword : "break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune" , literal : "true false iota nil" , built _in : "append cap close complex copy imag len make new panic print println real recover delete" } ; return { name : "Go" , aliases : [ "golang" ] , keywords : n , illegal : "</" , contains : [ e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , { className : "string" , variants : [ e . QUOTE _STRING _MODE , e . APOS _STRING _MODE , { begin : "`" , end : "`" } ] } , { className : "number" , variants : [ { begin : e . C _NUMBER _RE + "[i]" , relevance : 1 } , e . C _NUMBER _MODE ] } , { begin : /:=/ } , { className : "function" , beginKeywords : "func" , end : "\\s*(\\{|$)" , excludeEnd : ! 0 , contains : [ e . TITLE _MODE , { className : "params" , begin : /\(/ , end : /\)/ , keywords : n , illegal : /["']/ } ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "http" , function ( ) { "use strict" ; return function ( e ) { var n = "HTTP/[0-9\\.]+" ; return { name : "HTTP" , aliases : [ "https" ] , illegal : "\\S" , contains : [ { begin : "^" + n , end : "$" , contains : [ { className : "number" , begin : "\\b\\d{3}\\b" } ] } , { begin : "^[A-Z]+ (.*?) " + n + "$" , returnBegin : ! 0 , end : "$" , contains : [ { className : "string" , begin : " " , end : " " , excludeBegin : ! 0 , excludeEnd : ! 0 } , { begin : n } , { className : "keyword" , begin : "[A-Z]+" } ] } , { className : "attribute" , begin : "^\\w" , end : ": " , excludeEnd : ! 0 , illegal : "\\n|\\s|=" , starts : { end : "$" , relevance : 0 } } , { begin : "\\n\\n" , starts : { subLanguage : [ ] , endsWithParent : ! 0 } } ] } } } ( ) ) ;
hljs . registerLanguage ( "ini" , function ( ) { "use strict" ; function e ( e ) { return e ? "string" == typeof e ? e : e . source : null } function n ( ... n ) { return n . map ( n => e ( n ) ) . join ( "" ) } return function ( a ) { var s = { className : "number" , relevance : 0 , variants : [ { begin : /([\+\-]+)?[\d]+_[\d_]+/ } , { begin : a . NUMBER _RE } ] } , i = a . COMMENT ( ) ; i . variants = [ { begin : /;/ , end : /$/ } , { begin : /#/ , end : /$/ } ] ; var t = { className : "variable" , variants : [ { begin : /\$[\w\d"][\w\d_]*/ } , { begin : /\$\{(.*?)}/ } ] } , r = { className : "literal" , begin : /\bon|off|true|false|yes|no\b/ } , l = { className : "string" , contains : [ a . BACKSLASH _ESCAPE ] , variants : [ { begin : "'''" , end : "'''" , relevance : 10 } , { begin : '"""' , end : '"""' , relevance : 10 } , { begin : '"' , end : '"' } , { begin : "'" , end : "'" } ] } , c = { begin : /\[/ , end : /\]/ , contains : [ i , r , t , l , s , "self" ] , relevance : 0 } , g = "(" + [ /[A-Za-z0-9_-]+/ , /"(\\"|[^"])*"/ , /'[^']*'/ ] . map ( n => e ( n ) ) . join ( "|" ) + ")" ; return { name : "TOML, also INI" , aliases : [ "toml" ] , case _insensitive : ! 0 , illegal : /\S/ , contains : [ i , { className : "section" , begin : /\[+/ , end : /\]+/ } , { begin : n ( g , "(\\s*\\.\\s*" , g , ")*" , n ( "(?=" , /\s*=\s*[^#\s]/ , ")" ) ) , className : "attr" , starts : { end : /$/ , contains : [ i , c , r , t , l , s ] } } ] } } } ( ) ) ;
hljs . registerLanguage ( "java" , function ( ) { "use strict" ; function e ( e ) { return e ? "string" == typeof e ? e : e . source : null } function n ( e ) { return a ( "(" , e , ")?" ) } function a ( ... n ) { return n . map ( n => e ( n ) ) . join ( "" ) } function s ( ... n ) { return "(" + n . map ( n => e ( n ) ) . join ( "|" ) + ")" } return function ( e ) { var t = "false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do" , i = { className : "meta" , begin : "@[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*" , contains : [ { begin : /\(/ , end : /\)/ , contains : [ "self" ] } ] } , r = e => a ( "[" , e , "]+([" , e , "_]*[" , e , "]+)?" ) , c = { className : "number" , variants : [ { begin : ` \\ b(0[bB] ${ r ( "01" ) } )[lL]? ` } , { begin : ` \\ b(0 ${ r ( "0-7" ) } )[dDfFlL]? ` } , { begin : a ( /\b0[xX]/ , s ( a ( r ( "a-fA-F0-9" ) , /\./ , r ( "a-fA-F0-9" ) ) , a ( r ( "a-fA-F0-9" ) , /\.?/ ) , a ( /\./ , r ( "a-fA-F0-9" ) ) ) , /([pP][+-]?(\d+))?/ , /[fFdDlL]?/ ) } , { begin : a ( /\b/ , s ( a ( /\d*\./ , r ( "\\d" ) ) , r ( "\\d" ) ) , /[eE][+-]?[\d]+[dDfF]?/ ) } , { begin : a ( /\b/ , r ( /\d/ ) , n ( /\.?/ ) , n ( r ( /\d/ ) ) , /[dDfFlL]?/ ) } ] , relevance : 0 } ; return { name : "Java" , aliases : [ "jsp" ] , keywords : t , illegal : /<\/|#/ , contains : [ e . COMMENT ( "/\\*\\*" , "\\*/" , { relevance : 0 , contains : [ { begin : /\w+@/ , relevance : 0 } , { className : "doctag" , begin : "@[A-Za-z]+" } ] } ) , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , { className : "class" , beginKeywords : "class interface enum" , end : /[{;=]/ , excludeEnd : ! 0 , keywords : "class interface enum" , illegal : /[:"\[\]]/ , contains : [ { beginKeywords : "extends implements" } , e . UNDERSCORE _TITLE _MODE ] } , { beginKeywords : "new throw return else" , relevance : 0 } , { className : "function" , begin : "([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+" + e . UNDERSCORE _IDENT _RE + "\\s*\\(" , returnBegin : ! 0 , end : /[{;=]/ , excludeEnd : ! 0 , keywords : t , contains : [ { begin : e . UNDERSCORE _IDENT _RE + "\\s*\\(" , returnBegin : ! 0 , relevance : 0 , contains : [ e . UNDERSCORE _TITLE _MODE ] } , { className : "params" , begin : /\(/ , end : /\)/ , keywords : t , relevance : 0 , contains : [ i , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , e . C _NUMBER _MODE , e . C _BLOCK _COMMENT _MODE ] } , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , c , i ] } } } ( ) ) ;
hljs . registerLanguage ( "javascript" , function ( ) { "use strict" ; const e = [ "as" , "in" , "of" , "if" , "for" , "while" , "finally" , "var" , "new" , "function" , "do" , "return" , "void" , "else" , "break" , "catch" , "instanceof" , "with" , "throw" , "case" , "default" , "try" , "switch" , "continue" , "typeof" , "delete" , "let" , "yield" , "const" , "class" , "debugger" , "async" , "await" , "static" , "import" , "from" , "export" , "extends" ] , n = [ "true" , "false" , "null" , "undefined" , "NaN" , "Infinity" ] , a = [ ] . concat ( [ "setInterval" , "setTimeout" , "clearInterval" , "clearTimeout" , "require" , "exports" , "eval" , "isFinite" , "isNaN" , "parseFloat" , "parseInt" , "decodeURI" , "decodeURIComponent" , "encodeURI" , "encodeURIComponent" , "escape" , "unescape" ] , [ "arguments" , "this" , "super" , "console" , "window" , "document" , "localStorage" , "module" , "global" ] , [ "Intl" , "DataView" , "Number" , "Math" , "Date" , "String" , "RegExp" , "Object" , "Function" , "Boolean" , "Error" , "Symbol" , "Set" , "Map" , "WeakSet" , "WeakMap" , "Proxy" , "Reflect" , "JSON" , "Promise" , "Float64Array" , "Int16Array" , "Int32Array" , "Int8Array" , "Uint16Array" , "Uint32Array" , "Float32Array" , "Array" , "Uint8Array" , "Uint8ClampedArray" , "ArrayBuffer" ] , [ "EvalError" , "InternalError" , "RangeError" , "ReferenceError" , "SyntaxError" , "TypeError" , "URIError" ] ) ; function s ( e ) { return r ( "(?=" , e , ")" ) } function r ( ... e ) { return e . map ( e => ( function ( e ) { return e ? "string" == typeof e ? e : e . source : null } ) ( e ) ) . join ( "" ) } return function ( t ) { var i = "[A-Za-z$_][0-9A-Za-z$_]*" , c = { begin : /<[A-Za-z0-9\\._:-]+/ , end : /\/[A-Za-z0-9\\._:-]+>|\/>/ } , o = { $pattern : "[A-Za-z$_][0-9A-Za-z$_]*" , keyword : e . join ( " " ) , literal : n . join ( " " ) , built _in : a . join ( " " ) } , l = { className : "number" , variants : [ { begin : "\\b(0[bB][01]+)n?" } , { begin : "\\b(0[oO][0-7]+)n?" } , { begin : t . C _NUMBER _RE + "n?" } ] , relevance : 0 } , E = { className : "subst" , begin : "\\$\\{" , end : "\\}" , keywords : o , contains : [ ] } , d = { begin : "html`" , end : "" , starts : { end : "`" , returnEnd : ! 1 , contains : [ t . BACKSLASH _ESCAPE , E ] , subLanguage : "xml" } } , g = { begin : "css`" , end : "" , starts : { end : "`" , returnEnd : ! 1 , contains : [ t . BACKSLASH _ESCAPE , E ] , subLanguage : "css" } } , u = { className : "string" , begin : "`" , end : "`" , contains : [ t . BACKSLASH _ESCAPE , E ] } ; E . contains = [ t . APOS _STRING _MODE , t . QUOTE _STRING _MODE , d , g , u , l , t . REGEXP _MODE ] ; var b = E . contains . concat ( [ { begin : /\(/ , end : /\)/ , contains : [ "self" ] . concat ( E . contains , [ t . C _BLOCK _COMMENT _MODE , t . C _LINE _COMMENT _MODE ] ) } , t . C _BLOCK _COMMENT _MODE , t . C _LINE _COMMENT _MODE ] ) , _ = { className : "params" , begin : /\(/ , end : /\)/ , excludeBegin : ! 0 , excludeEnd : ! 0 , contains : b } ; return { name : "JavaScript" , aliases : [ "js" , "jsx" , "mjs" , "cjs" ] , keywords : o , contains : [ t . SHEBANG ( { binary : "node" , relevance : 5 } ) , { className : "meta" , relevance : 10 , begin : /^\s*['"]use (strict|asm)['"]/ } , t . APOS _STRING _MODE , t . QUOTE _STRING _MODE , d , g , u , t . C _LINE _COMMENT _MODE , t . COMMENT ( "/\\*\\*" , "\\*/" , { relevance : 0 , contains : [ { className : "doctag" , begin : "@[A-Za-z]+" , contains : [ { className : "type" , begin : "\\{" , end : "\\}" , relevance : 0 } , { className : "variable" , begin : i + "(?=\\s*(-)|$)" , endsParent : ! 0 , relevance : 0 } , { begin : /(?=[^\n])\s/ , relevance : 0 } ] } ] } ) , t . C _BLOCK _COMMENT _MODE , l , { begin : r ( /[{,\n]\s*/ , s ( r ( /(((\/\/.*$)|(\/\*(.|\n)*\*\/))\s*)*/ , i + "\\s*:" ) ) ) , relevance : 0 , contains : [ { className : "attr" , begin : i + s ( "\\s*:" ) , relevance : 0 } ] } , { begin : "(" + t . RE _STARTERS _RE + "|\\b(case|return|throw)\\b)\\s*" , keywords : "return throw case" , contains : [ t . C _LINE _COMMENT _MODE , t . C _BLOCK _COMMENT _MODE , t . REGEXP _MODE , { className : "function" , begin : "(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|" + t . UNDERSCORE _IDENT _RE + ")\\s*=>" , returnBegin : ! 0 , end : "\\s*=>" , contains : [ { className : "params" , variants : [ { begin : t . UNDERSCORE _IDENT _RE } , { className : null , begin : /\(\s*\)/ , skip : ! 0 } , { begin : /\(/ , end : /\)/ , excludeBegin : ! 0 , excludeEnd : ! 0 , keywords : o , contains : b } ] } ] } , { begin : /,/ , relevance : 0 } , { className : "" , begin : /\s/ , end : /\s*/ , skip : ! 0 } , { variants : [ { begin : "<>" , end : "</>" } , { begin : c . begin , end : c . end } ] , subLanguage : "xml" , contains : [ { begin : c . begin , end : c . end , skip : ! 0 , contains : [ "self" ] } ] } ] , relevance : 0 } , { className : "function" , beginKeywords : "function" , end : /\{/ , excludeEnd : ! 0 , contains : [ t . inherit ( t . TITLE _MODE , { begin : i } ) , _ ] , illegal : /\[|%/ } , { begin : /\$[(.]/ } , t . METHOD _GUARD , { className : "class" , beginKeywords : "class" , end : /[{;=]/ , excludeEnd : ! 0 , illegal : /[:"\[\]]/ , contains : [ { beginKeywords : "extends" } , t . UNDERSCORE _TITLE _MODE ] } , { beginKeywords : "constructor" , end : /\{/ ,
hljs . registerLanguage ( "json" , function ( ) { "use strict" ; return function ( n ) { var e = { literal : "true false null" } , i = [ n . C _LINE _COMMENT _MODE , n . C _BLOCK _COMMENT _MODE ] , t = [ n . QUOTE _STRING _MODE , n . C _NUMBER _MODE ] , a = { end : "," , endsWithParent : ! 0 , excludeEnd : ! 0 , contains : t , keywords : e } , l = { begin : "{" , end : "}" , contains : [ { className : "attr" , begin : /"/ , end : /"/ , contains : [ n . BACKSLASH _ESCAPE ] , illegal : "\\n" } , n . inherit ( a , { begin : /:/ } ) ] . concat ( i ) , illegal : "\\S" } , s = { begin : "\\[" , end : "\\]" , contains : [ n . inherit ( a ) ] , illegal : "\\S" } ; return t . push ( l , s ) , i . forEach ( ( function ( n ) { t . push ( n ) } ) ) , { name : "JSON" , contains : t , keywords : e , illegal : "\\S" } } } ( ) ) ;
hljs . registerLanguage ( "kotlin" , function ( ) { "use strict" ; return function ( e ) { var n = { keyword : "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual" , built _in : "Byte Short Char Int Long Boolean Float Double Void Unit Nothing" , literal : "true false null" } , a = { className : "symbol" , begin : e . UNDERSCORE _IDENT _RE + "@" } , i = { className : "subst" , begin : "\\${" , end : "}" , contains : [ e . C _NUMBER _MODE ] } , s = { className : "variable" , begin : "\\$" + e . UNDERSCORE _IDENT _RE } , t = { className : "string" , variants : [ { begin : '"""' , end : '"""(?=[^"])' , contains : [ s , i ] } , { begin : "'" , end : "'" , illegal : /\n/ , contains : [ e . BACKSLASH _ESCAPE ] } , { begin : '"' , end : '"' , illegal : /\n/ , contains : [ e . BACKSLASH _ESCAPE , s , i ] } ] } ; i . contains . push ( t ) ; var r = { className : "meta" , begin : "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + e . UNDERSCORE _IDENT _RE + ")?" } , l = { className : "meta" , begin : "@" + e . UNDERSCORE _IDENT _RE , contains : [ { begin : /\(/ , end : /\)/ , contains : [ e . inherit ( t , { className : "meta-string" } ) ] } ] } , c = e . COMMENT ( "/\\*" , "\\*/" , { contains : [ e . C _BLOCK _COMMENT _MODE ] } ) , o = { variants : [ { className : "type" , begin : e . UNDERSCORE _IDENT _RE } , { begin : /\(/ , end : /\)/ , contains : [ ] } ] } , d = o ; return d . variants [ 1 ] . contains = [ o ] , o . variants [ 1 ] . contains = [ d ] , { name : "Kotlin" , aliases : [ "kt" ] , keywords : n , contains : [ e . COMMENT ( "/\\*\\*" , "\\*/" , { relevance : 0 , contains : [ { className : "doctag" , begin : "@[A-Za-z]+" } ] } ) , e . C _LINE _COMMENT _MODE , c , { className : "keyword" , begin : /\b(break|continue|return|this)\b/ , starts : { contains : [ { className : "symbol" , begin : /@\w+/ } ] } } , a , r , l , { className : "function" , beginKeywords : "fun" , end : "[(]|$" , returnBegin : ! 0 , excludeEnd : ! 0 , keywords : n , illegal : /fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/ , relevance : 5 , contains : [ { begin : e . UNDERSCORE _IDENT _RE + "\\s*\\(" , returnBegin : ! 0 , relevance : 0 , contains : [ e . UNDERSCORE _TITLE _MODE ] } , { className : "type" , begin : /</ , end : />/ , keywords : "reified" , relevance : 0 } , { className : "params" , begin : /\(/ , end : /\)/ , endsParent : ! 0 , keywords : n , relevance : 0 , contains : [ { begin : /:/ , end : /[=,\/]/ , endsWithParent : ! 0 , contains : [ o , e . C _LINE _COMMENT _MODE , c ] , relevance : 0 } , e . C _LINE _COMMENT _MODE , c , r , l , t , e . C _NUMBER _MODE ] } , c ] } , { className : "class" , beginKeywords : "class interface trait" , end : /[:\{(]|$/ , excludeEnd : ! 0 , illegal : "extends implements" , contains : [ { beginKeywords : "public protected internal private constructor" } , e . UNDERSCORE _TITLE _MODE , { className : "type" , begin : /</ , end : />/ , excludeBegin : ! 0 , excludeEnd : ! 0 , relevance : 0 } , { className : "type" , begin : /[,:]\s*/ , end : /[<\(,]|$/ , excludeBegin : ! 0 , returnEnd : ! 0 } , r , l ] } , t , { className : "meta" , begin : "^#!/usr/bin/env" , end : "$" , illegal : "\n" } , { className : "number" , begin : "\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?" , relevance : 0 } ] } } } ( ) ) ;
hljs . registerLanguage ( "less" , function ( ) { "use strict" ; return function ( e ) { var n = "([\\w-]+|@{[\\w-]+})" , a = [ ] , s = [ ] , t = function ( e ) { return { className : "string" , begin : "~?" + e + ".*?" + e } } , r = function ( e , n , a ) { return { className : e , begin : n , relevance : a } } , i = { begin : "\\(" , end : "\\)" , contains : s , relevance : 0 } ; s . push ( e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , t ( "'" ) , t ( '"' ) , e . CSS _NUMBER _MODE , { begin : "(url|data-uri)\\(" , starts : { className : "string" , end : "[\\)\\n]" , excludeEnd : ! 0 } } , r ( "number" , "#[0-9A-Fa-f]+\\b" ) , i , r ( "variable" , "@@?[\\w-]+" , 10 ) , r ( "variable" , "@{[\\w-]+}" ) , r ( "built_in" , "~?`[^`]*?`" ) , { className : "attribute" , begin : "[\\w-]+\\s*:" , end : ":" , returnBegin : ! 0 , excludeEnd : ! 0 } , { className : "meta" , begin : "!important" } ) ; var c = s . concat ( { begin : "{" , end : "}" , contains : a } ) , l = { beginKeywords : "when" , endsWithParent : ! 0 , contains : [ { beginKeywords : "and not" } ] . concat ( s ) } , o = { begin : n + "\\s*:" , returnBegin : ! 0 , end : "[;}]" , relevance : 0 , contains : [ { className : "attribute" , begin : n , end : ":" , excludeEnd : ! 0 , starts : { endsWithParent : ! 0 , illegal : "[<=$]" , relevance : 0 , contains : s } } ] } , g = { className : "keyword" , begin : "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b" , starts : { end : "[;{}]" , returnEnd : ! 0 , contains : s , relevance : 0 } } , d = { className : "variable" , variants : [ { begin : "@[\\w-]+\\s*:" , relevance : 15 } , { begin : "@[\\w-]+" } ] , starts : { end : "[;}]" , returnEnd : ! 0 , contains : c } } , b = { variants : [ { begin : "[\\.#:&\\[>]" , end : "[;{}]" } , { begin : n , end : "{" } ] , returnBegin : ! 0 , returnEnd : ! 0 , illegal : "[<='$\"]" , relevance : 0 , contains : [ e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , l , r ( "keyword" , "all\\b" ) , r ( "variable" , "@{[\\w-]+}" ) , r ( "selector-tag" , n + "%?" , 0 ) , r ( "selector-id" , "#" + n ) , r ( "selector-class" , "\\." + n , 0 ) , r ( "selector-tag" , "&" , 0 ) , { className : "selector-attr" , begin : "\\[" , end : "\\]" } , { className : "selector-pseudo" , begin : /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/ } , { begin : "\\(" , end : "\\)" , contains : c } , { begin : "!important" } ] } ; return a . push ( e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , g , d , o , b ) , { name : "Less" , case _insensitive : ! 0 , illegal : "[=>'/<($\"]" , contains : a } } } ( ) ) ;
hljs . registerLanguage ( "lua" , function ( ) { "use strict" ; return function ( e ) { var t = { begin : "\\[=*\\[" , end : "\\]=*\\]" , contains : [ "self" ] } , a = [ e . COMMENT ( "--(?!\\[=*\\[)" , "$" ) , e . COMMENT ( "--\\[=*\\[" , "\\]=*\\]" , { contains : [ t ] , relevance : 10 } ) ] ; return { name : "Lua" , keywords : { $pattern : e . UNDERSCORE _IDENT _RE , literal : "true false nil" , keyword : "and break do else elseif end for goto if in local not or repeat return then until while" , built _in : "_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" } , contains : a . concat ( [ { className : "function" , beginKeywords : "function" , end : "\\)" , contains : [ e . inherit ( e . TITLE _MODE , { begin : "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" } ) , { className : "params" , begin : "\\(" , endsWithParent : ! 0 , contains : a } ] . concat ( a ) } , e . C _NUMBER _MODE , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE , { className : "string" , begin : "\\[=*\\[" , end : "\\]=*\\]" , contains : [ t ] , relevance : 5 } ] ) } } } ( ) ) ;
hljs . registerLanguage ( "makefile" , function ( ) { "use strict" ; return function ( e ) { var i = { className : "variable" , variants : [ { begin : "\\$\\(" + e . UNDERSCORE _IDENT _RE + "\\)" , contains : [ e . BACKSLASH _ESCAPE ] } , { begin : /\$[@%<?\^\+\*]/ } ] } , n = { className : "string" , begin : /"/ , end : /"/ , contains : [ e . BACKSLASH _ESCAPE , i ] } , a = { className : "variable" , begin : /\$\([\w-]+\s/ , end : /\)/ , keywords : { built _in : "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value" } , contains : [ i ] } , r = { begin : "^" + e . UNDERSCORE _IDENT _RE + "\\s*(?=[:+?]?=)" } , s = { className : "section" , begin : /^[^\s]+:/ , end : /$/ , contains : [ i ] } ; return { name : "Makefile" , aliases : [ "mk" , "mak" ] , keywords : { $pattern : /[\w-]+/ , keyword : "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath" } , contains : [ e . HASH _COMMENT _MODE , i , n , a , r , { className : "meta" , begin : /^\.PHONY:/ , end : /$/ , keywords : { $pattern : /[\.\w]+/ , "meta-keyword" : ".PHONY" } } , s ] } } } ( ) ) ;
hljs . registerLanguage ( "xml" , function ( ) { "use strict" ; return function ( e ) { var n = { className : "symbol" , begin : "&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;" } , a = { begin : "\\s" , contains : [ { className : "meta-keyword" , begin : "#?[a-z_][a-z1-9_-]+" , illegal : "\\n" } ] } , s = e . inherit ( a , { begin : "\\(" , end : "\\)" } ) , t = e . inherit ( e . APOS _STRING _MODE , { className : "meta-string" } ) , i = e . inherit ( e . QUOTE _STRING _MODE , { className : "meta-string" } ) , c = { endsWithParent : ! 0 , illegal : /</ , relevance : 0 , contains : [ { className : "attr" , begin : "[A-Za-z0-9\\._:-]+" , relevance : 0 } , { begin : /=\s*/ , relevance : 0 , contains : [ { className : "string" , endsParent : ! 0 , variants : [ { begin : /"/ , end : /"/ , contains : [ n ] } , { begin : /'/ , end : /'/ , contains : [ n ] } , { begin : /[^\s"'=<>`]+/ } ] } ] } ] } ; return { name : "HTML, XML" , aliases : [ "html" , "xhtml" , "rss" , "atom" , "xjb" , "xsd" , "xsl" , "plist" , "wsf" , "svg" ] , case _insensitive : ! 0 , contains : [ { className : "meta" , begin : "<![a-z]" , end : ">" , relevance : 10 , contains : [ a , i , t , s , { begin : "\\[" , end : "\\]" , contains : [ { className : "meta" , begin : "<![a-z]" , end : ">" , contains : [ a , s , i , t ] } ] } ] } , e . COMMENT ( "\x3c!--" , "--\x3e" , { relevance : 10 } ) , { begin : "<\\!\\[CDATA\\[" , end : "\\]\\]>" , relevance : 10 } , n , { className : "meta" , begin : /<\?xml/ , end : /\?>/ , relevance : 10 } , { className : "tag" , begin : "<style(?=\\s|>)" , end : ">" , keywords : { name : "style" } , contains : [ c ] , starts : { end : "</style>" , returnEnd : ! 0 , subLanguage : [ "css" , "xml" ] } } , { className : "tag" , begin : "<script(?=\\s|>)" , end : ">" , keywords : { name : "script" } , contains : [ c ] , starts : { end : "<\/script>" , returnEnd : ! 0 , subLanguage : [ "javascript" , "handlebars" , "xml" ] } } , { className : "tag" , begin : "</?" , end : "/?>" , contains : [ { className : "name" , begin : /[^\/><\s]+/ , relevance : 0 } , c ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "markdown" , function ( ) { "use strict" ; return function ( n ) { const e = { begin : "<" , end : ">" , subLanguage : "xml" , relevance : 0 } , a = { begin : "\\[.+?\\][\\(\\[].*?[\\)\\]]" , returnBegin : ! 0 , contains : [ { className : "string" , begin : "\\[" , end : "\\]" , excludeBegin : ! 0 , returnEnd : ! 0 , relevance : 0 } , { className : "link" , begin : "\\]\\(" , end : "\\)" , excludeBegin : ! 0 , excludeEnd : ! 0 } , { className : "symbol" , begin : "\\]\\[" , end : "\\]" , excludeBegin : ! 0 , excludeEnd : ! 0 } ] , relevance : 10 } , i = { className : "strong" , contains : [ ] , variants : [ { begin : /_{2}/ , end : /_{2}/ } , { begin : /\*{2}/ , end : /\*{2}/ } ] } , s = { className : "emphasis" , contains : [ ] , variants : [ { begin : /\*(?!\*)/ , end : /\*/ } , { begin : /_(?!_)/ , end : /_/ , relevance : 0 } ] } ; i . contains . push ( s ) , s . contains . push ( i ) ; var c = [ e , a ] ; return i . contains = i . contains . concat ( c ) , s . contains = s . contains . concat ( c ) , { name : "Markdown" , aliases : [ "md" , "mkdown" , "mkd" ] , contains : [ { className : "section" , variants : [ { begin : "^#{1,6}" , end : "$" , contains : c = c . concat ( i , s ) } , { begin : "(?=^.+?\\n[=-]{2,}$)" , contains : [ { begin : "^[=-]*$" } , { begin : "^" , end : "\\n" , contains : c } ] } ] } , e , { className : "bullet" , begin : "^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)" , end : "\\s+" , excludeEnd : ! 0 } , i , s , { className : "quote" , begin : "^>\\s+" , contains : c , end : "$" } , { className : "code" , variants : [ { begin : "(`{3,})(.|\\n)*?\\1`*[ ]*" } , { begin : "(~{3,})(.|\\n)*?\\1~*[ ]*" } , { begin : "```" , end : "```+[ ]*$" } , { begin : "~~~" , end : "~~~+[ ]*$" } , { begin : "`.+?`" } , { begin : "(?=^( {4}|\\t))" , contains : [ { begin : "^( {4}|\\t)" , end : "(\\n)$" } ] , relevance : 0 } ] } , { begin : "^[-\\*]{3,}" , end : "$" } , a , { begin : /^\[[^\n]+\]:/ , returnBegin : ! 0 , contains : [ { className : "symbol" , begin : /\[/ , end : /\]/ , excludeBegin : ! 0 , excludeEnd : ! 0 } , { className : "link" , begin : /:\s*/ , end : /$/ , excludeBegin : ! 0 } ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "nginx" , function ( ) { "use strict" ; return function ( e ) { var n = { className : "variable" , variants : [ { begin : /\$\d+/ } , { begin : /\$\{/ , end : /}/ } , { begin : "[\\$\\@]" + e . UNDERSCORE _IDENT _RE } ] } , a = { endsWithParent : ! 0 , keywords : { $pattern : "[a-z/_]+" , literal : "on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll" } , relevance : 0 , illegal : "=>" , contains : [ e . HASH _COMMENT _MODE , { className : "string" , contains : [ e . BACKSLASH _ESCAPE , n ] , variants : [ { begin : /"/ , end : /"/ } , { begin : /'/ , end : /'/ } ] } , { begin : "([a-z]+):/" , end : "\\s" , endsWithParent : ! 0 , excludeEnd : ! 0 , contains : [ n ] } , { className : "regexp" , contains : [ e . BACKSLASH _ESCAPE , n ] , variants : [ { begin : "\\s\\^" , end : "\\s|{|;" , returnEnd : ! 0 } , { begin : "~\\*?\\s+" , end : "\\s|{|;" , returnEnd : ! 0 } , { begin : "\\*(\\.[a-z\\-]+)+" } , { begin : "([a-z\\-]+\\.)+\\*" } ] } , { className : "number" , begin : "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b" } , { className : "number" , begin : "\\b\\d+[kKmMgGdshdwy]*\\b" , relevance : 0 } , n ] } ; return { name : "Nginx config" , aliases : [ "nginxconf" ] , contains : [ e . HASH _COMMENT _MODE , { begin : e . UNDERSCORE _IDENT _RE + "\\s+{" , returnBegin : ! 0 , end : "{" , contains : [ { className : "section" , begin : e . UNDERSCORE _IDENT _RE } ] , relevance : 0 } , { begin : e . UNDERSCORE _IDENT _RE + "\\s" , end : ";|{" , returnBegin : ! 0 , contains : [ { className : "attribute" , begin : e . UNDERSCORE _IDENT _RE , starts : a } ] , relevance : 0 } ] , illegal : "[^\\s\\}]" } } } ( ) ) ;
hljs . registerLanguage ( "objectivec" , function ( ) { "use strict" ; return function ( e ) { var n = /[a-zA-Z@][a-zA-Z0-9_]*/ , _ = { $pattern : n , keyword : "@interface @class @protocol @implementation" } ; return { name : "Objective-C" , aliases : [ "mm" , "objc" , "obj-c" ] , keywords : { $pattern : n , keyword : "int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN" , literal : "false true FALSE TRUE nil YES NO NULL" , built _in : "BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once" } , illegal : "</" , contains : [ { className : "built_in" , begin : "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+" } , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , e . C _NUMBER _MODE , e . QUOTE _STRING _MODE , e . APOS _STRING _MODE , { className : "string" , variants : [ { begin : '@"' , end : '"' , illegal : "\\n" , contains : [ e . BACKSLASH _ESCAPE ] } ] } , { className : "meta" , begin : /#\s*[a-z]+\b/ , end : /$/ , keywords : { "meta-keyword" : "if else elif endif define undef warning error line pragma ifdef ifndef include" } , contains : [ { begin : /\\\n/ , relevance : 0 } , e . inherit ( e . QUOTE _STRING _MODE , { className : "meta-string" } ) , { className : "meta-string" , begin : /<.*?>/ , end : /$/ , illegal : "\\n" } , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE ] } , { className : "class" , begin : "(" + _ . keyword . split ( " " ) . join ( "|" ) + ")\\b" , end : "({|$)" , excludeEnd : ! 0 , keywords : _ , contains : [ e . UNDERSCORE _TITLE _MODE ] } , { begin : "\\." + e . UNDERSCORE _IDENT _RE , relevance : 0 } ] } } } ( ) ) ;
hljs . registerLanguage ( "perl" , function ( ) { "use strict" ; return function ( e ) { var n = { $pattern : /[\w.]+/ , keyword : "getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmget sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when" } , t = { className : "subst" , begin : "[$@]\\{" , end : "\\}" , keywords : n } , s = { begin : "->{" , end : "}" } , r = { variants : [ { begin : /\$\d/ } , { begin : /[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/ } , { begin : /[\$%@][^\s\w{]/ , relevance : 0 } ] } , i = [ e . BACKSLASH _ESCAPE , t , r ] , a = [ r , e . HASH _COMMENT _MODE , e . COMMENT ( "^\\=\\w" , "\\=cut" , { endsWithParent : ! 0 } ) , s , { className : "string" , contains : i , variants : [ { begin : "q[qwxr]?\\s*\\(" , end : "\\)" , relevance : 5 } , { begin : "q[qwxr]?\\s*\\[" , end : "\\]" , relevance : 5 } , { begin : "q[qwxr]?\\s*\\{" , end : "\\}" , relevance : 5 } , { begin : "q[qwxr]?\\s*\\|" , end : "\\|" , relevance : 5 } , { begin : "q[qwxr]?\\s*\\<" , end : "\\>" , relevance : 5 } , { begin : "qw\\s+q" , end : "q" , relevance : 5 } , { begin : "'" , end : "'" , contains : [ e . BACKSLASH _ESCAPE ] } , { begin : '"' , end : '"' } , { begin : "`" , end : "`" , contains : [ e . BACKSLASH _ESCAPE ] } , { begin : "{\\w+}" , contains : [ ] , relevance : 0 } , { begin : "-?\\w+\\s*\\=\\>" , contains : [ ] , relevance : 0 } ] } , { className : "number" , begin : "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b" , relevance : 0 } , { begin : "(\\/\\/|" + e . RE _STARTERS _RE + "|\\b(split|return|print|reverse|grep)\\b)\\s*" , keywords : "split return print reverse grep" , relevance : 0 , contains : [ e . HASH _COMMENT _MODE , { className : "regexp" , begin : "(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*" , relevance : 10 } , { className : "regexp" , begin : "(m|qr)?/" , end : "/[a-z]*" , contains : [ e . BACKSLASH _ESCAPE ] , relevance : 0 } ] } , { className : "function" , beginKeywords : "sub" , end : "(\\s*\\(.*?\\))?[;{]" , excludeEnd : ! 0 , relevance : 5 , contains : [ e . TITLE _MODE ] } , { begin : "-\\w\\b" , relevance : 0 } , { begin : "^__DATA__$" , end : "^__END__$" , subLanguage : "mojolicious" , contains : [ { begin : "^@@.*" , end : "$" , className : "comment" } ] } ] ; return t . contains = a , s . contains = a , { name : "Perl" , aliases : [ "pl" , "pm" ] , keywords : n , contains : a } } } ( ) ) ;
hljs . registerLanguage ( "php" , function ( ) { "use strict" ; return function ( e ) { var r = { begin : "\\$+[a-zA-Z_ -ÿ][a-zA-Z0-9_ -ÿ]*" } , t = { className : "meta" , variants : [ { begin : /<\?php/ , relevance : 10 } , { begin : /<\?[=]?/ } , { begin : /\?>/ } ] } , a = { className : "subst" , variants : [ { begin : /\$\w+/ } , { begin : /\{\$/ , end : /\}/ } ] } , n = e . inherit ( e . APOS _STRING _MODE , { illegal : null } ) , i = e . inherit ( e . QUOTE _STRING _MODE , { illegal : null , contains : e . QUOTE _STRING _MODE . contains . concat ( a ) } ) , o = e . END _SAME _AS _BEGIN ( { begin : /<<<[ \t]*(\w+)\n/ , end : /[ \t]*(\w+)\b/ , contains : e . QUOTE _STRING _MODE . contains . concat ( a ) } ) , l = { className : "string" , contains : [ e . BACKSLASH _ESCAPE , t ] , variants : [ e . inherit ( n , { begin : "b'" , end : "'" } ) , e . inherit ( i , { begin : 'b"' , end : '"' } ) , i , n , o ] } , s = { variants : [ e . BINARY _NUMBER _MODE , e . C _NUMBER _MODE ] } , c = { keyword : "__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list new object or private protected public real return string switch throw trait try unset use var void while xor yield" , literal : "false null true" , built _in : "Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass" } ; return { aliases : [ "php" , "php3" , "php4" , "php5" , "php6" , "php7" ] , case _insensitive : ! 0 , keywords : c , contains : [ e . HASH _COMMENT _MODE , e . COMMENT ( "//" , "$" , { contains : [ t ] } ) , e . COMMENT ( "/\\*" , "\\*/" , { contains : [ { className : "doctag" , begin : "@[A-Za-z]+" } ] } ) , e . COMMENT ( "__halt_compiler.+?;" , ! 1 , { endsWithParent : ! 0 , keywords : "__halt_compiler" } ) , t , { className : "keyword" , begin : /\$this\b/ } , r , { begin : /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/ } , { className : "function" , beginKeywords : "fn function" , end : /[;{]/ , excludeEnd : ! 0 , illegal : "[$%\\[]" , contains : [ e . UNDERSCORE _TITLE _MODE , { className : "params" , begin : "\\(" , end : "\\)" , excludeBegin : ! 0 , excludeEnd : ! 0 , keywords : c , contains : [ "self" , r , e . C _BLOCK _COMMENT _MODE , l , s ] } ] } , { className : "class" , beginKeywords : "class interface" , end : "{" , excludeEnd : ! 0 , illegal : /[:\(\$"]/ , contains : [ { beginKeywords : "extends implements" } , e . UNDERSCORE _TITLE _MODE ] } , { beginKeywords : "namespace" , end : ";" , illegal : /[\.']/ , contains : [ e . UNDERSCORE _TITLE _MODE ] } , { beginKeywords : "use" , end : ";" , contains : [ e . UNDERSCORE _TITLE _MODE ] } , { begin : "=>" } , l , s ] } } } ( ) ) ;
hljs . registerLanguage ( "php-template" , function ( ) { "use strict" ; return function ( n ) { return { name : "PHP template" , subLanguage : "xml" , contains : [ { begin : /<\?(php|=)?/ , end : /\?>/ , subLanguage : "php" , contains : [ { begin : "/\\*" , end : "\\*/" , skip : ! 0 } , { begin : 'b"' , end : '"' , skip : ! 0 } , { begin : "b'" , end : "'" , skip : ! 0 } , n . inherit ( n . APOS _STRING _MODE , { illegal : null , className : null , contains : null , skip : ! 0 } ) , n . inherit ( n . QUOTE _STRING _MODE , { illegal : null , className : null , contains : null , skip : ! 0 } ) ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "plaintext" , function ( ) { "use strict" ; return function ( t ) { return { name : "Plain text" , aliases : [ "text" , "txt" ] , disableAutodetect : ! 0 } } } ( ) ) ;
hljs . registerLanguage ( "properties" , function ( ) { "use strict" ; return function ( e ) { var n = "[ \\t\\f]*" , t = "(" + n + "[:=]" + n + "|[ \\t\\f]+)" , a = "([^\\\\:= \\t\\f\\n]|\\\\.)+" , s = { end : t , relevance : 0 , starts : { className : "string" , end : /$/ , relevance : 0 , contains : [ { begin : "\\\\\\n" } ] } } ; return { name : ".properties" , case _insensitive : ! 0 , illegal : /\S/ , contains : [ e . COMMENT ( "^\\s*[!#]" , "$" ) , { begin : "([^\\\\\\W:= \\t\\f\\n]|\\\\.)+" + t , returnBegin : ! 0 , contains : [ { className : "attr" , begin : "([^\\\\\\W:= \\t\\f\\n]|\\\\.)+" , endsParent : ! 0 , relevance : 0 } ] , starts : s } , { begin : a + t , returnBegin : ! 0 , relevance : 0 , contains : [ { className : "meta" , begin : a , endsParent : ! 0 , relevance : 0 } ] , starts : s } , { className : "attr" , relevance : 0 , begin : a + n + "$" } ] } } } ( ) ) ;
hljs . registerLanguage ( "python" , function ( ) { "use strict" ; return function ( e ) { var n = { keyword : "and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10" , built _in : "Ellipsis NotImplemented" , literal : "False None True" } , a = { className : "meta" , begin : /^(>>>|\.\.\.) / } , i = { className : "subst" , begin : /\{/ , end : /\}/ , keywords : n , illegal : /#/ } , s = { begin : /\{\{/ , relevance : 0 } , r = { className : "string" , contains : [ e . BACKSLASH _ESCAPE ] , variants : [ { begin : /(u|b)?r?'''/ , end : /'''/ , contains : [ e . BACKSLASH _ESCAPE , a ] , relevance : 10 } , { begin : /(u|b)?r?"""/ , end : /"""/ , contains : [ e . BACKSLASH _ESCAPE , a ] , relevance : 10 } , { begin : /(fr|rf|f)'''/ , end : /'''/ , contains : [ e . BACKSLASH _ESCAPE , a , s , i ] } , { begin : /(fr|rf|f)"""/ , end : /"""/ , contains : [ e . BACKSLASH _ESCAPE , a , s , i ] } , { begin : /(u|r|ur)'/ , end : /'/ , relevance : 10 } , { begin : /(u|r|ur)"/ , end : /"/ , relevance : 10 } , { begin : /(b|br)'/ , end : /'/ } , { begin : /(b|br)"/ , end : /"/ } , { begin : /(fr|rf|f)'/ , end : /'/ , contains : [ e . BACKSLASH _ESCAPE , s , i ] } , { begin : /(fr|rf|f)"/ , end : /"/ , contains : [ e . BACKSLASH _ESCAPE , s , i ] } , e . APOS _STRING _MODE , e . QUOTE _STRING _MODE ] } , l = { className : "number" , relevance : 0 , variants : [ { begin : e . BINARY _NUMBER _RE + "[lLjJ]?" } , { begin : "\\b(0o[0-7]+)[lLjJ]?" } , { begin : e . C _NUMBER _RE + "[lLjJ]?" } ] } , t = { className : "params" , variants : [ { begin : /\(\s*\)/ , skip : ! 0 , className : null } , { begin : /\(/ , end : /\)/ , excludeBegin : ! 0 , excludeEnd : ! 0 , contains : [ "self" , a , l , r , e . HASH _COMMENT _MODE ] } ] } ; return i . contains = [ r , l , a ] , { name : "Python" , aliases : [ "py" , "gyp" , "ipython" ] , keywords : n , illegal : /(<\/|->|\?)|=>/ , contains : [ a , l , { beginKeywords : "if" , relevance : 0 } , r , e . HASH _COMMENT _MODE , { variants : [ { className : "function" , beginKeywords : "def" } , { className : "class" , beginKeywords : "class" } ] , end : /:/ , illegal : /[${=;\n,]/ , contains : [ e . UNDERSCORE _TITLE _MODE , t , { begin : /->/ , endsWithParent : ! 0 , keywords : "None" } ] } , { className : "meta" , begin : /^[\t ]*@/ , end : /$/ } , { begin : /\b(print|exec)\(/ } ] } } } ( ) ) ;
hljs . registerLanguage ( "python-repl" , function ( ) { "use strict" ; return function ( n ) { return { aliases : [ "pycon" ] , contains : [ { className : "meta" , starts : { end : / |$/ , starts : { end : "$" , subLanguage : "python" } } , variants : [ { begin : /^>>>(?=[ ]|$)/ } , { begin : /^\.\.\.(?=[ ]|$)/ } ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "ruby" , function ( ) { "use strict" ; return function ( e ) { var n = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?" , a = { keyword : "and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor" , literal : "true false nil" } , s = { className : "doctag" , begin : "@[A-Za-z]+" } , i = { begin : "#<" , end : ">" } , r = [ e . COMMENT ( "#" , "$" , { contains : [ s ] } ) , e . COMMENT ( "^\\=begin" , "^\\=end" , { contains : [ s ] , relevance : 10 } ) , e . COMMENT ( "^__END__" , "\\n$" ) ] , c = { className : "subst" , begin : "#\\{" , end : "}" , keywords : a } , t = { className : "string" , contains : [ e . BACKSLASH _ESCAPE , c ] , variants : [ { begin : /'/ , end : /'/ } , { begin : /"/ , end : /"/ } , { begin : /`/ , end : /`/ } , { begin : "%[qQwWx]?\\(" , end : "\\)" } , { begin : "%[qQwWx]?\\[" , end : "\\]" } , { begin : "%[qQwWx]?{" , end : "}" } , { begin : "%[qQwWx]?<" , end : ">" } , { begin : "%[qQwWx]?/" , end : "/" } , { begin : "%[qQwWx]?%" , end : "%" } , { begin : "%[qQwWx]?-" , end : "-" } , { begin : "%[qQwWx]?\\|" , end : "\\|" } , { begin : /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ } , { begin : /<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/ , returnBegin : ! 0 , contains : [ { begin : /<<[-~]?'?/ } , e . END _SAME _AS _BEGIN ( { begin : /(\w+)/ , end : /(\w+)/ , contains : [ e . BACKSLASH _ESCAPE , c ] } ) ] } ] } , b = { className : "params" , begin : "\\(" , end : "\\)" , endsParent : ! 0 , keywords : a } , d = [ t , i , { className : "class" , beginKeywords : "class module" , end : "$|;" , illegal : /=/ , contains : [ e . inherit ( e . TITLE _MODE , { begin : "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?" } ) , { begin : "<\\s*" , contains : [ { begin : "(" + e . IDENT _RE + "::)?" + e . IDENT _RE } ] } ] . concat ( r ) } , { className : "function" , beginKeywords : "def" , end : "$|;" , contains : [ e . inherit ( e . TITLE _MODE , { begin : n } ) , b ] . concat ( r ) } , { begin : e . IDENT _RE + "::" } , { className : "symbol" , begin : e . UNDERSCORE _IDENT _RE + "(\\!|\\?)?:" , relevance : 0 } , { className : "symbol" , begin : ":(?!\\s)" , contains : [ t , { begin : n } ] , relevance : 0 } , { className : "number" , begin : "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b" , relevance : 0 } , { begin : "(\\$\\W)|((\\$|\\@\\@?)(\\w+))" } , { className : "params" , begin : /\|/ , end : /\|/ , keywords : a } , { begin : "(" + e . RE _STARTERS _RE + "|unless)\\s*" , keywords : "unless" , contains : [ i , { className : "regexp" , contains : [ e . BACKSLASH _ESCAPE , c ] , illegal : /\n/ , variants : [ { begin : "/" , end : "/[a-z]*" } , { begin : "%r{" , end : "}[a-z]*" } , { begin : "%r\\(" , end : "\\)[a-z]*" } , { begin : "%r!" , end : "![a-z]*" } , { begin : "%r\\[" , end : "\\][a-z]*" } ] } ] . concat ( r ) , relevance : 0 } ] . concat ( r ) ; c . contains = d , b . contains = d ; var g = [ { begin : /^\s*=>/ , starts : { end : "$" , contains : d } } , { className : "meta" , begin : "^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)" , starts : { end : "$" , contains : d } } ] ; return { name : "Ruby" , aliases : [ "rb" , "gemspec" , "podspec" , "thor" , "irb" ] , keywords : a , illegal : /\/\*/ , contains : r . concat ( g ) . concat ( d ) } } } ( ) ) ;
hljs . registerLanguage ( "rust" , function ( ) { "use strict" ; return function ( e ) { var n = "([ui](8|16|32|64|128|size)|f(32|64))?" , t = "drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!" ; return { name : "Rust" , aliases : [ "rs" ] , keywords : { $pattern : e . IDENT _RE + "!?" , keyword : "abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield" , literal : "true false Some None Ok Err" , built _in : t } , illegal : "</" , contains : [ e . C _LINE _COMMENT _MODE , e . COMMENT ( "/\\*" , "\\*/" , { contains : [ "self" ] } ) , e . inherit ( e . QUOTE _STRING _MODE , { begin : /b?"/ , illegal : null } ) , { className : "string" , variants : [ { begin : /r(#*)"(.|\n)*?"\1(?!#)/ } , { begin : /b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/ } ] } , { className : "symbol" , begin : /'[a-zA-Z_][a-zA-Z0-9_]*/ } , { className : "number" , variants : [ { begin : "\\b0b([01_]+)" + n } , { begin : "\\b0o([0-7_]+)" + n } , { begin : "\\b0x([A-Fa-f0-9_]+)" + n } , { begin : "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + n } ] , relevance : 0 } , { className : "function" , beginKeywords : "fn" , end : "(\\(|<)" , excludeEnd : ! 0 , contains : [ e . UNDERSCORE _TITLE _MODE ] } , { className : "meta" , begin : "#\\!?\\[" , end : "\\]" , contains : [ { className : "meta-string" , begin : /"/ , end : /"/ } ] } , { className : "class" , beginKeywords : "type" , end : ";" , contains : [ e . inherit ( e . UNDERSCORE _TITLE _MODE , { endsParent : ! 0 } ) ] , illegal : "\\S" } , { className : "class" , beginKeywords : "trait enum struct union" , end : "{" , contains : [ e . inherit ( e . UNDERSCORE _TITLE _MODE , { endsParent : ! 0 } ) ] , illegal : "[\\w\\d]" } , { begin : e . IDENT _RE + "::" , keywords : { built _in : t } } , { begin : "->" } ] } } } ( ) ) ;
hljs . registerLanguage ( "scss" , function ( ) { "use strict" ; return function ( e ) { var t = { className : "variable" , begin : "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b" } , i = { className : "number" , begin : "#[0-9A-Fa-f]+" } ; return e . CSS _NUMBER _MODE , e . QUOTE _STRING _MODE , e . APOS _STRING _MODE , e . C _BLOCK _COMMENT _MODE , { name : "SCSS" , case _insensitive : ! 0 , illegal : "[=/|']" , contains : [ e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , { className : "selector-id" , begin : "\\#[A-Za-z0-9_-]+" , relevance : 0 } , { className : "selector-class" , begin : "\\.[A-Za-z0-9_-]+" , relevance : 0 } , { className : "selector-attr" , begin : "\\[" , end : "\\]" , illegal : "$" } , { className : "selector-tag" , begin : "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b" , relevance : 0 } , { className : "selector-pseudo" , begin : ":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)" } , { className : "selector-pseudo" , begin : "::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)" } , t , { className : "attribute" , begin : " \ \ b ( src | z - index | word - wrap | word - spacing | word - break | width | widows | white - space | visibility | vertical - align | unicode - bidi | transition - timing - function | transition - property | transition - duration | transition - delay | transition | transform - style | transform - origin | transform | top | text - underline - position | text - transform | text - shadow | text - rendering | text - overflow | text - indent | text - decoration - style | text - decoration - line | text - decoration - color | text - decoration | text - align - last | text - align | tab - size | table - layout | right | resize | quotes | position | pointer - events | perspective - origin | perspective | page - break - inside | page - break - before | page - break - after | padding - top | padding - right | padding - left | padding - bottom | padding | overflow - y | overflow - x | overflow - wrap | overflow | outline - width | outline - style | outline - offset | outline - color | outline | orphans | order | opacity | object - position | object - fit | normal | none | nav - up | nav - right | nav - left | nav - index | nav - down | min - width | min - height | max - width | max - height | mask | marks | margin - top | margin - right | margin - left | margin - bottom | margin | list - style - type | list - style - position | list - style - image | list - style | line - height | letter - spacing | left | justify - content | initial | inherit | ime - mode | image - orientation | image - resolution | image - rendering | icon | hyphens | height | font - weight | font - variant - ligatures | font - variant | font - style | font - stretch | font - size - adjust | font - size | font - language - override | font - kerning | font - feature - settings | font - family | font | float | flex - wrap | flex - shrink | flex - grow | flex - flow | flex - direction | flex - basis | flex | filter | empty - cells | display | direction | cursor | counter - reset | counter - increment | content | column - width | column - span | column - rule - width | column - rule - style | column - rule - color | column - rule | column - gap | column - fill | column - count | columns | color | clip - path | clip | clear | caption - side | break - inside | break - before | break - after | box - sizing | box - shadow | box - decoration - break | bottom | border - width | border - top - width | border - top - style | border - top - right - radius | border - top - left - radius | border - top - color | border - top | border - style | border - spacing | border - right - width | border - right - style | border - right - color | border - right | border - radius | border - left - width | border - left - style | border - left - color | border - left | border - image - width | border - image - source | border - image - slice | border - image - repeat | border - image - outset | border - image | border - color | border - collapse | border - bottom - width | border - bottom - style | border - bottom - right - radius | border - bottom - left - radius | border - bottom
hljs . registerLanguage ( "shell" , function ( ) { "use strict" ; return function ( s ) { return { name : "Shell Session" , aliases : [ "console" ] , contains : [ { className : "meta" , begin : "^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]" , starts : { end : "$" , subLanguage : "bash" } } ] } } } ( ) ) ;
hljs . registerLanguage ( "sql" , function ( ) { "use strict" ; return function ( e ) { var t = e . COMMENT ( "--" , "$" ) ; return { name : "SQL" , case _insensitive : ! 0 , illegal : /[<>{}*]/ , contains : [ { beginKeywords : "begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with" , end : /;/ , endsWithParent : ! 0 , keywords : { $pattern : /[\w\.]+/ , keyword : " as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes _decrypt aes _encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile _base big bigfile bin binary _double binary _float binlog bit _and bit _count bit _length bit _or bit _xor bitmap blob _base block blocksize body both bound bucket buffer _cache buffer _pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char _base char _length character _length characters characterset charindex charset charsetform charsetid check checksum checksum _agg child choose chr chunk class cleanup clear client clob clob _base clone close cluster _id cluster _probability cluster _set clustering coalesce coercibility col collate collation collect colu colum column column _value columns columns _updated comment commit compact compatibility compiled complete composite _limit compound compress compute concat concat _ws concurrent confirm conn connec connect connect _by _iscycle connect _by _isleaf connect _by _root connect _time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert _tz corr corr _k corr _s corresponding corruption cos cost count count _big counted covar _pop covar _samp cpu _per _call cpu _per _session crc32 create creation critical cross cube cume _dist curdate current current _date current _time current _timestamp current _user cursor curtime customdatum cycle data database databases datafile datafiles datalength date _add date _cache date _format date _sub dateadd datediff datefromparts datename datepart datetime2fromparts day day _to _second dayname dayofmonth dayofweek dayofyear days db _role _change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete _all delimited demand dense _rank depth dequeue des _decrypt des _encrypt des _key _file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct _load directory disable disable _all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable _all enclosed encode encoding encrypt end end - exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export _set extended extent external external _1 external _2 externally extract failed failed _login _attempts failover failure far fast feature _set feature _value fetch field fields file file _name _convert filesy
hljs . registerLanguage ( "swift" , function ( ) { "use strict" ; return function ( e ) { var i = { keyword : "#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet" , literal : "true false nil" , built _in : "abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c compactMap contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip" } , n = e . COMMENT ( "/\\*" , "\\*/" , { contains : [ "self" ] } ) , t = { className : "subst" , begin : /\\\(/ , end : "\\)" , keywords : i , contains : [ ] } , a = { className : "string" , contains : [ e . BACKSLASH _ESCAPE , t ] , variants : [ { begin : /"""/ , end : /"""/ } , { begin : /"/ , end : /"/ } ] } , r = { className : "number" , begin : "\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b" , relevance : 0 } ; return t . contains = [ r ] , { name : "Swift" , keywords : i , contains : [ a , e . C _LINE _COMMENT _MODE , n , { className : "type" , begin : "\\b[A-Z][\\wÀ-ʸ']*[!?]" } , { className : "type" , begin : "\\b[A-Z][\\wÀ-ʸ']*" , relevance : 0 } , r , { className : "function" , beginKeywords : "func" , end : "{" , excludeEnd : ! 0 , contains : [ e . inherit ( e . TITLE _MODE , { begin : /[A-Za-z$_][0-9A-Za-z$_]*/ } ) , { begin : /</ , end : />/ } , { className : "params" , begin : /\(/ , end : /\)/ , endsParent : ! 0 , keywords : i , contains : [ "self" , r , a , e . C _BLOCK _COMMENT _MODE , { begin : ":" } ] , illegal : /["']/ } ] , illegal : /\[|%/ } , { className : "class" , beginKeywords : "struct protocol class extension enum" , keywords : i , end : "\\{" , excludeEnd : ! 0 , contains : [ e . inherit ( e . TITLE _MODE , { begin : /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/ } ) ] } , { className : "meta" , begin : "(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)\\b" } , { beginKeywords : "import" , end : /$/ , contains : [ e . C _LINE _COMMENT _MODE , n ] } ] } } } ( ) ) ;
hljs . registerLanguage ( "typescript" , function ( ) { "use strict" ; const e = [ "as" , "in" , "of" , "if" , "for" , "while" , "finally" , "var" , "new" , "function" , "do" , "return" , "void" , "else" , "break" , "catch" , "instanceof" , "with" , "throw" , "case" , "default" , "try" , "switch" , "continue" , "typeof" , "delete" , "let" , "yield" , "const" , "class" , "debugger" , "async" , "await" , "static" , "import" , "from" , "export" , "extends" ] , n = [ "true" , "false" , "null" , "undefined" , "NaN" , "Infinity" ] , a = [ ] . concat ( [ "setInterval" , "setTimeout" , "clearInterval" , "clearTimeout" , "require" , "exports" , "eval" , "isFinite" , "isNaN" , "parseFloat" , "parseInt" , "decodeURI" , "decodeURIComponent" , "encodeURI" , "encodeURIComponent" , "escape" , "unescape" ] , [ "arguments" , "this" , "super" , "console" , "window" , "document" , "localStorage" , "module" , "global" ] , [ "Intl" , "DataView" , "Number" , "Math" , "Date" , "String" , "RegExp" , "Object" , "Function" , "Boolean" , "Error" , "Symbol" , "Set" , "Map" , "WeakSet" , "WeakMap" , "Proxy" , "Reflect" , "JSON" , "Promise" , "Float64Array" , "Int16Array" , "Int32Array" , "Int8Array" , "Uint16Array" , "Uint32Array" , "Float32Array" , "Array" , "Uint8Array" , "Uint8ClampedArray" , "ArrayBuffer" ] , [ "EvalError" , "InternalError" , "RangeError" , "ReferenceError" , "SyntaxError" , "TypeError" , "URIError" ] ) ; return function ( r ) { var t = { $pattern : "[A-Za-z$_][0-9A-Za-z$_]*" , keyword : e . concat ( [ "type" , "namespace" , "typedef" , "interface" , "public" , "private" , "protected" , "implements" , "declare" , "abstract" , "readonly" ] ) . join ( " " ) , literal : n . join ( " " ) , built _in : a . concat ( [ "any" , "void" , "number" , "boolean" , "string" , "object" , "never" , "enum" ] ) . join ( " " ) } , s = { className : "meta" , begin : "@[A-Za-z$_][0-9A-Za-z$_]*" } , i = { className : "number" , variants : [ { begin : "\\b(0[bB][01]+)n?" } , { begin : "\\b(0[oO][0-7]+)n?" } , { begin : r . C _NUMBER _RE + "n?" } ] , relevance : 0 } , o = { className : "subst" , begin : "\\$\\{" , end : "\\}" , keywords : t , contains : [ ] } , c = { begin : "html`" , end : "" , starts : { end : "`" , returnEnd : ! 1 , contains : [ r . BACKSLASH _ESCAPE , o ] , subLanguage : "xml" } } , l = { begin : "css`" , end : "" , starts : { end : "`" , returnEnd : ! 1 , contains : [ r . BACKSLASH _ESCAPE , o ] , subLanguage : "css" } } , E = { className : "string" , begin : "`" , end : "`" , contains : [ r . BACKSLASH _ESCAPE , o ] } ; o . contains = [ r . APOS _STRING _MODE , r . QUOTE _STRING _MODE , c , l , E , i , r . REGEXP _MODE ] ; var d = { begin : "\\(" , end : /\)/ , keywords : t , contains : [ "self" , r . QUOTE _STRING _MODE , r . APOS _STRING _MODE , r . NUMBER _MODE ] } , u = { className : "params" , begin : /\(/ , end : /\)/ , excludeBegin : ! 0 , excludeEnd : ! 0 , keywords : t , contains : [ r . C _LINE _COMMENT _MODE , r . C _BLOCK _COMMENT _MODE , s , d ] } ; return { name : "TypeScript" , aliases : [ "ts" ] , keywords : t , contains : [ r . SHEBANG ( ) , { className : "meta" , begin : /^\s*['"]use strict['"]/ } , r . APOS _STRING _MODE , r . QUOTE _STRING _MODE , c , l , E , r . C _LINE _COMMENT _MODE , r . C _BLOCK _COMMENT _MODE , i , { begin : "(" + r . RE _STARTERS _RE + "|\\b(case|return|throw)\\b)\\s*" , keywords : "return throw case" , contains : [ r . C _LINE _COMMENT _MODE , r . C _BLOCK _COMMENT _MODE , r . REGEXP _MODE , { className : "function" , begin : "(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|" + r . UNDERSCORE _IDENT _RE + ")\\s*=>" , returnBegin : ! 0 , end : "\\s*=>" , contains : [ { className : "params" , variants : [ { begin : r . UNDERSCORE _IDENT _RE } , { className : null , begin : /\(\s*\)/ , skip : ! 0 } , { begin : /\(/ , end : /\)/ , excludeBegin : ! 0 , excludeEnd : ! 0 , keywords : t , contains : d . contains } ] } ] } ] , relevance : 0 } , { className : "function" , beginKeywords : "function" , end : /[\{;]/ , excludeEnd : ! 0 , keywords : t , contains : [ "self" , r . inherit ( r . TITLE _MODE , { begin : "[A-Za-z$_][0-9A-Za-z$_]*" } ) , u ] , illegal : /%/ , relevance : 0 } , { beginKeywords : "constructor" , end : /[\{;]/ , excludeEnd : ! 0 , contains : [ "self" , u ] } , { begin : /module\./ , keywords : { built _in : "module" } , relevance : 0 } , { beginKeywords : "module" , end : /\{/ , excludeEnd : ! 0 } , { beginKeywords : "interface" , end : /\{/ , excludeEnd : ! 0 , keywords : "interface extends" } , { begin : /\$[(.]/ } , { begin : "\\." + r . IDENT _RE , relevance : 0 } , s , d ] } } } ( ) ) ;
hljs . registerLanguage ( "yaml" , function ( ) { "use strict" ; return function ( e ) { var n = "true false yes no null" , a = "[\\w#;/?:@&=+$,.~*\\'()[\\]]+" , s = { className : "string" , relevance : 0 , variants : [ { begin : /'/ , end : /'/ } , { begin : /"/ , end : /"/ } , { begin : /\S+/ } ] , contains : [ e . BACKSLASH _ESCAPE , { className : "template-variable" , variants : [ { begin : "{{" , end : "}}" } , { begin : "%{" , end : "}" } ] } ] } , i = e . inherit ( s , { variants : [ { begin : /'/ , end : /'/ } , { begin : /"/ , end : /"/ } , { begin : /[^\s,{}[\]]+/ } ] } ) , l = { end : "," , endsWithParent : ! 0 , excludeEnd : ! 0 , contains : [ ] , keywords : n , relevance : 0 } , t = { begin : "{" , end : "}" , contains : [ l ] , illegal : "\\n" , relevance : 0 } , g = { begin : "\\[" , end : "\\]" , contains : [ l ] , illegal : "\\n" , relevance : 0 } , b = [ { className : "attr" , variants : [ { begin : "\\w[\\w :\\/.-]*:(?=[ \t]|$)" } , { begin : '"\\w[\\w :\\/.-]*":(?=[ \t]|$)' } , { begin : "'\\w[\\w :\\/.-]*':(?=[ \t]|$)" } ] } , { className : "meta" , begin : "^---s*$" , relevance : 10 } , { className : "string" , begin : "[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*" } , { begin : "<%[%=-]?" , end : "[%-]?%>" , subLanguage : "ruby" , excludeBegin : ! 0 , excludeEnd : ! 0 , relevance : 0 } , { className : "type" , begin : "!\\w+!" + a } , { className : "type" , begin : "!<" + a + ">" } , { className : "type" , begin : "!" + a } , { className : "type" , begin : "!!" + a } , { className : "meta" , begin : "&" + e . UNDERSCORE _IDENT _RE + "$" } , { className : "meta" , begin : "\\*" + e . UNDERSCORE _IDENT _RE + "$" } , { className : "bullet" , begin : "\\-(?=[ ]|$)" , relevance : 0 } , e . HASH _COMMENT _MODE , { beginKeywords : n , keywords : { literal : n } } , { className : "number" , begin : "\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" } , { className : "number" , begin : e . C _NUMBER _RE + "\\b" } , t , g , s ] , c = [ ... b ] ; return c . pop ( ) , c . push ( i ) , l . contains = c , { name : "YAML" , case _insensitive : ! 0 , aliases : [ "yml" , "YAML" ] , contains : b } } } ( ) ) ;