2017-02-20 15:30:47 +01:00
/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+abap+actionscript+ada+apacheconf+apl+applescript+asciidoc+aspnet+autoit+autohotkey+bash+basic+batch+c+brainfuck+bro+bison+csharp+cpp+coffeescript+ruby+css-extras+d+dart+django+diff+docker+eiffel+elixir+erlang+fsharp+fortran+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+http+icon+inform7+ini+j+jade+java+jolie+json+julia+keyman+kotlin+latex+less+livescript+lolcode+lua+makefile+markdown+matlab+mel+mizar+monkey+nasm+nginx+nim+nix+nsis+objectivec+ocaml+oz+parigp+parser+pascal+perl+php+php-extras+powershell+processing+prolog+properties+protobuf+puppet+pure+python+q+qore+r+jsx+reason+rest+rip+roboconf+crystal+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+sql+stylus+swift+tcl+textile+twig+typescript+verilog+vhdl+vim+wiki+xojo+yaml&plugins=autolinker+file-highlight+toolbar+highlight-keywords+previewer-base+previewer-color+command-line+data-uri-highlight+show-language+copy-to-clipboard */
var _self = "undefined" != typeof window ? window : "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope ? self : {}, Prism = function (){ var e = /\blang(?:uage)?-(\w+)\b/i , t = 0 , n = _self . Prism = { manual : _self . Prism && _self . Prism . manual , util : { encode : function ( e ){ return e instanceof a ? new a ( e . type , n . util . encode ( e . content ), e . alias ) : "Array" === n . util . type ( e ) ? e . map ( n . util . encode ) : e . replace ( /&/g , "&" ). replace ( /</g , "<" ). replace ( /\u00a0/g , " " )}, type : function ( e ){ return Object . prototype . toString . call ( e ). match ( /\[object (\w+)\]/ )[ 1 ]}, objId : function ( e ){ return e . __id || Object . defineProperty ( e , "__id" ,{ value :++ t }), e . __id }, clone : function ( e ){ var t = n . util . type ( e ); switch ( t ){ case "Object" : var a = {}; for ( var r in e ) e . hasOwnProperty ( r ) && ( a [ r ] = n . util . clone ( e [ r ])); return a ; case "Array" : return e . map && e . map ( function ( e ){ return n . util . clone ( e )})} return e }}, languages : { extend : function ( e , t ){ var a = n . util . clone ( n . languages [ e ]); for ( var r in t ) a [ r ] = t [ r ]; return a }, insertBefore : function ( e , t , a , r ){ r = r || n . languages ; var l = r [ e ]; if ( 2 == arguments . length ){ a = arguments [ 1 ]; for ( var i in a ) a . hasOwnProperty ( i ) && ( l [ i ] = a [ i ]); return l } var o = {}; for ( var s in l ) if ( l . hasOwnProperty ( s )){ if ( s == t ) for ( var i in a ) a . hasOwnProperty ( i ) && ( o [ i ] = a [ i ]); o [ s ] = l [ s ]} return n . languages . DFS ( n . languages , function ( t , n ){ n === r [ e ] && t != e && ( this [ t ] = o )}), r [ e ] = o }, DFS : function ( e , t , a , r ){ r = r || {}; for ( var l in e ) e . hasOwnProperty ( l ) && ( t . call ( e , l , e [ l ], a || l ), "Object" !== n . util . type ( e [ l ]) || r [ n . util . objId ( e [ l ])] ? "Array" !== n . util . type ( e [ l ]) || r [ n . util . objId ( e [ l ])] || ( r [ n . util . objId ( e [ l ])] =! 0 , n . languages . DFS ( e [ l ], t , l , r )) : ( r [ n . util . objId ( e [ l ])] =! 0 , n . languages . DFS ( e [ l ], t , null , r )))}}, plugins : {}, highlightAll : function ( e , t ){ var a = { callback : t , selector : 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' }; n . hooks . run ( "before-highlightall" , a ); for ( var r , l = a . elements || document . querySelectorAll ( a . selector ), i = 0 ; r = l [ i ++ ];) n . highlightElement ( r , e ===! 0 , a . callback )}, highlightElement : function ( t , a , r ){ for ( var l , i , o = t ; o &&! e . test ( o . className );) o = o . parentNode ; o && ( l = ( o . className . match ( e ) || [, "" ])[ 1 ]. toLowerCase (), i = n . languages [ l ]), t . className = t . className . replace ( e , "" ). replace ( /\s+/g , " " ) + " language-" + l , o = t . parentNode , /pre/i . test ( o . nodeName ) && ( o . className = o . className . replace ( e , "" ). replace ( /\s+/g , " " ) + " language-" + l ); var s = t . textContent , u = { element : t , language : l , grammar : i , code : s }; if ( n . hooks . run ( "before-sanity-check" , u ), ! u . code ||! u . grammar ) return u . code && ( u . element . textContent = u . code ), n . hooks . run ( "complete" , u ), void 0 ; if ( n . hooks . run ( "before-highlight" , u ), a && _self . Worker ){ var g = new Worker ( n . filename ); g . onmessage = function ( e ){ u . highlightedCode = e . data , n . hooks . run ( "before-insert" , u ), u . element . innerHTML = u . highlightedCode , r && r . call ( u . element ), n . hooks . run ( "after-highlight" , u ), n . hooks . run ( "complete" , u )}, g . postMessage ( JSON . stringify ({ language : u . language , code : u . code , immediateClose :! 0 }))} else u . highlightedCode = n . highlight ( u . code , u . grammar , u . language ), n . hooks . run ( "before-insert" , u ), u . element . innerHTML = u . highlightedCode , r && r . call ( t ), n . hooks . run ( "after-highlight" , u ), n . hooks . run ( "complete" , u )}, highlight : function ( e , t , r ){ var l = n . tokenize ( e , t ); return a . stringify ( n . util . encode ( l ), r )}, tokenize : function ( e , t ){ var a = n . Token , r = [ e ], l = t . rest ; if ( l ){ for ( var i in l ) t [ i ] = l [ i ]; delete t . rest } e : for ( var i in t ) if ( t . hasOwnProperty ( i ) && t [ i ]){ var o = t [ i ]; o = "Array" === n . util . type ( o ) ? o : [ o ]; for ( var s = 0 ; s < o . length ; ++ s ){ var u = o [ s ], g = u . inside , c =!! u . lookbehind , h =!! u . greedy , f = 0 , d = u . alias ; if ( h &&! u . pattern . global ){ var p = u . pattern . toString (). match ( /[imuy]*$/ )[ 0 ]; u . pattern = RegExp ( u . pattern . source , p + "g" )} u = u . pattern || u ; for ( var m = 0 , y = 0 ; m < r . length ; y += r [ m ]. length , ++ m ){ var v = r [ m ]; if ( r . length > e . length ) break e ; if ( ! ( v instanceof a )){ u . lastIndex = 0 ; var b = u . exec ( v ), k = 1 ; if ( ! b && h && m != r . length - 1 ){ if ( u . lastIndex = y , b = u . exec ( e ), ! b ) break ; for ( var w = b . index + ( c ? b [ 1 ]. length : 0 ), _ = b . index + b [ 0 ]. length , P = m , A = y , j = r . length ; j > P && _ > A ; ++ P ) A += r [ P ]. length , w >= A && ( ++ m , y = A ); if ( r [ m ] instanceof a || r [ P - 1 ]. greedy ) continue ; k = P - m , v = e . slice ( y , A ), b . index -= y } if ( b ){ c && ( f = b [ 1 ]. length ); var w = b . index + f , b = b [ 0 ]. slice ( f ), _ = w + b . length , x = v . slice ( 0 , w ), O = v . slice ( _ ), S = [ m , k ]; x && S . push ( x ); var N = new a ( i , g ? n . tokenize ( b , g )
Prism . languages . markup = { comment : /<!--[\w\W]*?-->/ , prolog : /<\?[\w\W]+?\?>/ , doctype : /<!DOCTYPE[\w\W]+?>/i , cdata : /<!\[CDATA\[[\w\W]*?]]>/i , tag : { pattern : /<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i , inside : { tag : { pattern : /^<\/?[^\s>\/]+/i , inside : { punctuation : /^<\/?/ , namespace : /^[^\s>\/:]+:/ }}, "attr-value" : { pattern : /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i , inside : { punctuation : /[=>"']/ }}, punctuation : /\/?>/ , "attr-name" : { pattern : /[^\s>\/]+/ , inside : { namespace : /^[^\s>\/:]+:/ }}}}, entity : /&#?[\da-z]{1,8};/i }, Prism . hooks . add ( "wrap" , function ( a ){ "entity" === a . type && ( a . attributes . title = a . content . replace ( /&/ , "&" ))}), Prism . languages . xml = Prism . languages . markup , Prism . languages . html = Prism . languages . markup , Prism . languages . mathml = Prism . languages . markup , Prism . languages . svg = Prism . languages . markup ;
Prism . languages . css = { comment : /\/\*[\w\W]*?\*\// , atrule : { pattern : /@[\w-]+?.*?(;|(?=\s*\{))/i , inside : { rule : /@[\w-]+/ }}, url : /url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i , selector : /[^\{\}\s][^\{\};]*?(?=\s*\{)/ , string : { pattern : /("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 }, property : /(\b|\B)[\w-]+(?=\s*:)/i , important : /\B!important\b/i , "function" : /[-a-z0-9]+(?=\()/i , punctuation : /[(){};:]/ }, Prism . languages . css . atrule . inside . rest = Prism . util . clone ( Prism . languages . css ), Prism . languages . markup && ( Prism . languages . insertBefore ( "markup" , "tag" ,{ style : { pattern : /(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i , lookbehind :! 0 , inside : Prism . languages . css , alias : "language-css" }}), Prism . languages . insertBefore ( "inside" , "attr-value" ,{ "style-attr" : { pattern : /\s*style=("|').*?\1/i , inside : { "attr-name" : { pattern : /^\s*style/i , inside : Prism . languages . markup . tag . inside }, punctuation : /^\s*=\s*['"]|['"]\s*$/ , "attr-value" : { pattern : /.+/i , inside : Prism . languages . css }}, alias : "language-css" }}, Prism . languages . markup . tag ));
2016-06-09 17:01:42 +02:00
Prism . languages . clike = { comment : [{ pattern : /(^|[^\\])\/\*[\w\W]*?\*\// , lookbehind :! 0 },{ pattern : /(^|[^\\:])\/\/.*/ , lookbehind :! 0 }], string : { pattern : /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 }, "class-name" : { pattern : /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i , lookbehind :! 0 , inside : { punctuation : /(\.|\\)/ }}, keyword : /\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/ , "boolean" : /\b(true|false)\b/ , "function" : /[a-z0-9_]+(?=\()/i , number : /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i , operator : /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/ , punctuation : /[{}[\];(),.:]/ };
2017-02-20 15:30:47 +01:00
Prism . languages . javascript = Prism . languages . extend ( "clike" ,{ keyword : /\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/ , number : /\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/ , "function" : /[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i , operator : /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*\*?|\/|~|\^|%|\.{3}/ }), Prism . languages . insertBefore ( "javascript" , "keyword" ,{ regex : { pattern : /(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/ , lookbehind :! 0 , greedy :! 0 }}), Prism . languages . insertBefore ( "javascript" , "string" ,{ "template-string" : { pattern : /`(?:\\\\|\\?[^\\])*?`/ , greedy :! 0 , inside : { interpolation : { pattern : /\$\{[^}]+\}/ , inside : { "interpolation-punctuation" : { pattern : /^\$\{|\}$/ , alias : "punctuation" }, rest : Prism . languages . javascript }}, string : /[\s\S]+/ }}}), Prism . languages . markup && Prism . languages . insertBefore ( "markup" , "tag" ,{ script : { pattern : /(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i , lookbehind :! 0 , inside : Prism . languages . javascript , alias : "language-javascript" }}), Prism . languages . js = Prism . languages . javascript ;
Prism . languages . abap = { comment : /^\*.*/m , string : /(`|')(\\?.)*?\1/m , "string-template" : { pattern : /(\||\})(\\?.)*?(?=\||\{)/ , lookbehind :! 0 , alias : "string" }, "eol-comment" : { pattern : /(^|\s)".*/m , lookbehind :! 0 , alias : "comment" }, keyword : { pattern : /(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DI
Prism . languages . actionscript = Prism . languages . extend ( "javascript" ,{ keyword : /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/ , operator : /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), Prism . languages . actionscript [ "class-name" ]. alias = "function" , Prism . languages . markup && Prism . languages . insertBefore ( "actionscript" , "string" ,{ xml : { pattern : /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\\1|\\?(?!\1)[\w\W])*\2)*\s*\/?>/ , lookbehind :! 0 , inside : { rest : Prism . languages . markup }}});
Prism . languages . ada = { comment : /--.*/ , string : /"(?:""|[^"\r\f\n])*"/i , number : [{ pattern : /\b[0-9](?:_?[0-9])*#[0-9A-F](?:_?[0-9A-F])*(?:\.[0-9A-F](?:_?[0-9A-F])*)?#(?:E[+-]?[0-9](?:_?[0-9])*)?/i },{ pattern : /\b[0-9](?:_?[0-9])*(?:\.[0-9](?:_?[0-9])*)?(?:E[+-]?[0-9](?:_?[0-9])*)?\b/i }], "attr-name" : /\b'\w+/i , keyword : /\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|new|return|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i , "boolean" : /\b(?:true|false)\b/i , operator : /<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/ , punctuation : /\.\.?|[,;():]/ , "char" : /'.'/ , variable : /\b[a-z](?:[_a-z\d])*\b/i };
2016-04-11 15:59:32 +02:00
Prism . languages . apacheconf = { comment : /#.*/ , "directive-inline" : { pattern : /^(\s*)\b(AcceptFilter|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding|AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch|Allow|AllowCONNECT|AllowEncodedSlashes|AllowMethods|AllowOverride|AllowOverrideList|Anonymous|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID|Anonymous_VerifyEmail|AsyncRequestWorkerFactor|AuthBasicAuthoritative|AuthBasicFake|AuthBasicProvider|AuthBasicUseDigestAlgorithm|AuthDBDUserPWQuery|AuthDBDUserRealmQuery|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm|AuthDigestDomain|AuthDigestNonceLifetime|AuthDigestProvider|AuthDigestQop|AuthDigestShmemSize|AuthFormAuthoritative|AuthFormBody|AuthFormDisableNoStore|AuthFormFakeBasicAuth|AuthFormLocation|AuthFormLoginRequiredLocation|AuthFormLoginSuccessLocation|AuthFormLogoutLocation|AuthFormMethod|AuthFormMimetype|AuthFormPassword|AuthFormProvider|AuthFormSitePassphrase|AuthFormSize|AuthFormUsername|AuthGroupFile|AuthLDAPAuthorizePrefix|AuthLDAPBindAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareAsUser|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPInitialBindAsUser|AuthLDAPInitialBindPattern|AuthLDAPMaxSubGroupDepth|AuthLDAPRemoteUserAttribute|AuthLDAPRemoteUserIsDN|AuthLDAPSearchAsUser|AuthLDAPSubGroupAttribute|AuthLDAPSubGroupClass|AuthLDAPUrl|AuthMerging|AuthName|AuthnCacheContext|AuthnCacheEnable|AuthnCacheProvideFor|AuthnCacheSOCache|AuthnCacheTimeout|AuthnzFcgiCheckAuthnProvider|AuthnzFcgiDefineProvider|AuthType|AuthUserFile|AuthzDBDLoginToReferer|AuthzDBDQuery|AuthzDBDRedirectQuery|AuthzDBMType|AuthzSendForbiddenOnFailure|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|CacheDefaultExpire|CacheDetailHeader|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheFile|CacheHeader|CacheIgnoreCacheControl|CacheIgnoreHeaders|CacheIgnoreNoLastMod|CacheIgnoreQueryString|CacheIgnoreURLSessionIdentifiers|CacheKeyBaseURL|CacheLastModifiedFactor|CacheLock|CacheLockMaxAge|CacheLockPath|CacheMaxExpire|CacheMaxFileSize|CacheMinExpire|CacheMinFileSize|CacheNegotiatedDocs|CacheQuickHandler|CacheReadSize|CacheReadTime|CacheRoot|CacheSocache|CacheSocacheMaxSize|CacheSocacheMaxTime|CacheSocacheMinTime|CacheSocacheReadSize|CacheSocacheReadTime|CacheStaleOnError|CacheStoreExpired|CacheStoreNoStore|CacheStorePrivate|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateInflateLimitRequestBody|DeflateInflateRatioBurst|DeflateInflateRatioLimit|DeflateMemLevel|DeflateWindowSize|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|HeartbeatAddress|HeartbeatListen|HeartbeatMaxServers|HeartbeatStorage|HeartbeatStorage|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|IndexHeadInsert|IndexIgnore|IndexIgnoreReset|IndexOptions|IndexOrderDefault|IndexStyleSheet|InputSed|
2017-02-20 15:30:47 +01:00
Prism . languages . apl = { comment : /(?:â� � |#[! ]).*$/m , string : { pattern : /'(?:[^'\r\n]|'')*'/ , greedy :! 0 }, number : /¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:\d*\.?\d+(?:e[\+¯]?\d+)?|¯|∞))?/i , statement : /:[A-Z][a-z][A-Za-z]*\b/ , "system-function" : { pattern : /⎕[A-Z]+/i , alias : "function" }, constant : /[â� ¬âŒ¾#⎕â� ž]/ , "function" : /[-+×÷⌈⌊∣|â� ³â� ¸?*â� Ÿâ—‹!⌹<≤=>≥≠≡≢∊â� ·âˆªâˆ©~∨∧â� ±â� ²â� ´,â� ªâŒ½âŠ–â� ‰â†‘↓⊂⊃⊆⊇⌷â� ‹â� ’⊤⊥â� •â� ŽâŠ£âŠ¢â� � â� ‚≈â� ¯â†—¤→]/ , "monadic-operator" : { pattern : /[\\\/⌿â� €Â¨â� ¨âŒ¶&∥]/ , alias : "operator" }, "dyadic-operator" : { pattern : /[.â� £â� â� ¤âˆ˜âŒ¸]/ , alias : "operator" }, assignment : { pattern : /â†� / , alias : "keyword" }, punctuation : /[\[;\]()◇⋄]/ , dfn : { pattern : /[{}â� ºâ� µâ� ¶â� ¹âˆ‡â� «:]/ , alias : "builtin" }};
2016-04-11 15:59:32 +02:00
Prism . languages . applescript = { comment : [ /\(\*(?:\(\*[\w\W]*?\*\)|[\w\W])*?\*\)/ , /--.+/ , /#.+/ ], string : /"(?:\\?.)*?"/ , number : /\b-?\d*\.?\d+([Ee]-?\d+)?\b/ , operator : [ /[&=≠≤≥*+\-\/÷^]|[<>]=?/ , /\b(?:(?:start|begin|end)s? with|(?:(?:does not|doesn't) contain|contains?)|(?:is|isn't|is not) (?:in|contained by)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:(?:does not|doesn't) come|comes) (?:before|after)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equals|equal to|isn't|is not)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|or|div|mod|as|not))\b/ ], keyword : /\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/ , "class" : { pattern : /\b(?:alias|application|boolean|class|constant|date|file|integer|list|number|POSIX file|real|record|reference|RGB color|script|text|centimetres|centimeters|feet|inches|kilometres|kilometers|metres|meters|miles|yards|square feet|square kilometres|square kilometers|square metres|square meters|square miles|square yards|cubic centimetres|cubic centimeters|cubic feet|cubic inches|cubic metres|cubic meters|cubic yards|gallons|litres|liters|quarts|grams|kilograms|ounces|pounds|degrees Celsius|degrees Fahrenheit|degrees Kelvin)\b/ , alias : "builtin" }, punctuation : /[{}():,¬«»《》]/ };
2017-02-20 15:30:47 +01:00
! function ( a ){ var i = { pattern : /(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\]\\]|\\.)*\]|[^\]\\]|\\.)*\]/m , lookbehind :! 0 , inside : { quoted : { pattern : /([$`])(?:(?!\1)[^\\]|\\.)*\1/ , inside : { punctuation : /^[$`]|[$`]$/ }}, interpreted : { pattern : /'(?:[^'\\]|\\.)*'/ , inside : { punctuation : /^'|'$/ }}, string : /"(?:[^"\\]|\\.)*"/ , variable : /\w+(?==)/ , punctuation : /^\[|\]$|,/ , operator : /=/ , "attr-value" : /(?!^\s+$).+/ }}; a . languages . asciidoc = { "comment-block" : { pattern : /^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m , alias : "comment" }, table : { pattern : /^\|={3,}(?:(?:\r?\n|\r).*)*?(?:\r?\n|\r)\|={3,}$/m , inside : { specifiers : { pattern : /(?!\|)(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*])?(?:[<^>](?:\.[<^>])?|\.[<^>])?[a-z]*)(?=\|)/ , alias : "attr-value" }, punctuation : { pattern : /(^|[^\\])[|!]=*/ , lookbehind :! 0 }}}, "passthrough-block" : { pattern : /^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m , inside : { punctuation : /^\++|\++$/ }}, "literal-block" : { pattern : /^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m , inside : { punctuation : /^(?:-+|\.+)|(?:-+|\.+)$/ }}, "other-block" : { pattern : /^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m , inside : { punctuation : /^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/ }}, "list-punctuation" : { pattern : /(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im , lookbehind :! 0 , alias : "punctuation" }, "list-label" : { pattern : /(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im , lookbehind :! 0 , alias : "symbol" }, "indented-block" : { pattern : /((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/ , lookbehind :! 0 }, comment : /^\/\/.*/m , title : { pattern : /^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} +.+|^\.(?![\s.]).*/m , alias : "important" , inside : { punctuation : /^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/ }}, "attribute-entry" : { pattern : /^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m , alias : "tag" }, attributes : i , hr : { pattern : /^'{3,}$/m , alias : "punctuation" }, "page-break" : { pattern : /^<{3,}$/m , alias : "punctuation" }, admonition : { pattern : /^(?:TIP|NOTE|IMPORTANT|WARNING|CAUTION):/m , alias : "keyword" }, callout : [{ pattern : /(^[ \t]*)<?\d*>/m , lookbehind :! 0 , alias : "symbol" },{ pattern : /<\d+>/ , alias : "symbol" }], macro : { pattern : /\b[a-z\d][a-z\d-]*::?(?:(?:\S+)??\[(?:[^\]\\"]|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/ , inside : { "function" : /^[a-z\d-]+(?=:)/ , punctuation : /^::?/ , attributes : { pattern : /(?:\[(?:[^\]\\"]|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/ , inside : i . inside }}}, inline : { pattern : /(^|[^\\])(?:(?:\B\[(?:[^\]\\"]|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?: ['`]|.)+?(?:(?:\r?\n|\r)(?: ['`]|.)+?)*['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"]|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m , lookbehind :! 0 , inside : { attributes : i , url : { pattern : /^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/ , inside : { punctuation : /^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/ }}, "attribute-ref" : { pattern : /^\{.+\}$/ , inside : { variable : { pattern : /(^\{)[a-z\d,+_-]+/ , lookbehind :! 0 }, operator : /^[=?!#%@$]|!(?=[:}])/ , punctuation : /^\{|\}$|::?/ }}, italic : { pattern : /^(['_])[\s\S]+\1$/ , inside : { punctuation : /^(?:''?|__?)|(?:''?|__?)$/ }}, bold : { pattern : /^\*[\s\S]+\*$/ , inside : { punctuation : /^\*\*?|\*\*?$/ }}, punctuation : /^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/ }}, replacement : { pattern : /\((?:C|TM|R)\)/ , alias : "builtin" }, entity : /&#?[\da-z]{1,8};/i , "line-continuation" : { pattern : /(^| )\+$/m , lookbehind :! 0 , alias : "punctuation" }}, i . inside . interpreted . inside . rest = { macro : a . languages . asciidoc . macro , inline : a . languages . asciidoc . inline , replacement : a . languages . asciidoc . replacement , entity : a . languages . asciidoc . entity }, a . languages . asciidoc [ "passthrough-block" ]. inside . rest = { macro : a . languages . asciidoc . macro }, a . languages . asciidoc [ "literal-block" ]. inside . rest = { callout : a . languages . asciidoc . callout }, a . languages . asciidoc . table . inside . rest = { "comment-block" : a . languages . asciidoc [ "comment-block" ], "passthrough-b
2016-04-11 15:59:32 +02:00
Prism.languages.aspnet=Prism.languages.extend(" markup ",{" page - directive tag ":{pattern:/<%\s*@.*%>/i,inside:{" page - directive tag ":/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,rest:Prism.languages.markup.tag.inside}}," directive tag ":{pattern:/<%.*%>/i,inside:{" directive tag ":/<%\s*?[$=%#:]{0,2}|%>/i,rest:Prism.languages.csharp}}}),Prism.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:(" | ')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s' ">=]+))?)*\s*\/?>/i,Prism.languages.insertBefore(" inside "," punctuation ",{" directive tag ":Prism.languages.aspnet[" directive tag "]},Prism.languages.aspnet.tag.inside[" attr - value "]),Prism.languages.insertBefore(" aspnet "," comment ",{" asp comment ":/<%--[\w\W]*?--%>/}),Prism.languages.insertBefore(" aspnet ",Prism.languages.javascript?" script ":" tag ",{" asp script ":{pattern:/(<script(?=.*runat=['" ] ? server [ '"]?)[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.csharp||{}}});
2017-02-20 15:30:47 +01:00
Prism.languages.autoit={comment:[/;.*/,{pattern:/(^\s*)#(?:comments-start|cs)[\s\S]*?^\s*#(?:comments-end|ce)/m,lookbehind:!0}],url:{pattern:/(^\s*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["' ])( ?: \ 1 \ 1 | ( ?! \ 1 )[ ^ \ r \ n ]) * \ 1 / , greedy :! 0 , inside : { variable : /([%$@])\w+\1/ }}, directive : { pattern : /(^\s*)#\w+/m , lookbehind :! 0 , alias : "keyword" }, "function" : /\b\w+(?=\()/ , variable : /[$@]\w+/ , keyword : /\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i , number : /\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i , "boolean" : /\b(?:True|False)\b/i , operator : /<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Or|Not)\b/i , punctuation : /[\[\]().,:]/ };
Prism . languages . autohotkey = { comment : { pattern : /(^[^";\n]*("[^"\n]*?"[^"\n]*?)*)(;.*$|^\s*\/\*[\s\S]*\n\*\/)/m , lookbehind :! 0 }, string : /"(([^"\n\r]|"")*)"/m , "function" : /[^\(\); \t,\n\+\*\-=\?>:\\\/<&%\[\]]+?(?=\()/m , tag : /^[ \t]*[^\s:]+?(?=:(?:[^:]|$))/m , variable : /%\w+%/ , number : /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/ , operator : /\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/ , punctuation : /[\{}[\]\(\):,]/ , "boolean" : /\b(true|false)\b/ , selector : /\b(AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i , constant : /\b(a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_formatfloat|a_formatinteger|a_gui|a_guievent|a_guicontrol|a_guicontrolevent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|programfiles|a_programfiles|a_programs|a_programscommon|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesinc
! function ( e ){ var t = { variable : [{ pattern : /\$?\(\([\w\W]+?\)\)/ , inside : { variable : [{ pattern : /(^\$\(\([\w\W]+)\)\)/ , lookbehind :! 0 }, /^\$\(\(/ ], number : /\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/ , operator : /--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/ , punctuation : /\(\(?|\)\)?|,|;/ }},{ pattern : /\$\([^)]+\)|`[^`]+`/ , inside : { variable : /^\$\(|^`|\)$|`$/ }}, /\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i ]}; e . languages . bash = { shebang : { pattern : /^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/ , alias : "important" }, comment : { pattern : /(^|[^"{\\])#.*/ , lookbehind :! 0 }, string : [{ pattern : /((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g , lookbehind :! 0 , greedy :! 0 , inside : t },{ pattern : /(["'])(?:\\\\|\\?[^\\])*?\1/g , greedy :! 0 , inside : t }], variable : t . variable , "function" : { pattern : /(^|\s|;|\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|npm|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\s|;|\||&)/ , lookbehind :! 0 }, keyword : { pattern : /(^|\s|;|\||&)(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\s|;|\||&)/ , lookbehind :! 0 }, "boolean" : { pattern : /(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/ , lookbehind :! 0 }, operator : /&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/ , punctuation : /\$?\(\(?|\)\)?|\.\.|[{}[\];]/ }; var a = t . variable [ 1 ]. inside ; a [ "function" ] = e . languages . bash [ "function" ], a . keyword = e . languages . bash . keyword , a . boolean = e . languages . bash . boolean , a . operator = e . languages . bash . operator , a . punctuation = e . languages . bash . punctuation }( Prism );
2016-04-11 15:59:32 +02:00
Prism . languages . basic = { string : /"(?:""|[!#$%&'()*,\/:;<=>?^_ +\-.A-Z\d])*"/i , comment : { pattern : /(?:!|REM\b).+/i , inside : { keyword : /^REM/i }}, number : /(?:\b|\B[.-])(?:\d+\.?\d*)(?:E[+-]?\d+)?/i , keyword : /\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SHARED|SINGLE|SELECT CASE|SHELL|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i , "function" : /\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i , operator : /<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i , punctuation : /[,;:()]/ };
! function ( e ){ var r = /%%?[~:\w]+%?|!\S+!/ , t = { pattern : /\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im , alias : "attr-name" , inside : { punctuation : /:/ }}, n = /"[^"]*"/ , i = /(?:\b|-)\d+\b/ ; e . languages . batch = { comment : [ /^::.*/m ,{ pattern : /((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im , lookbehind :! 0 }], label : { pattern : /^:.*/m , alias : "property" }, command : [{ pattern : /((?:^|[&(])[ \t]*)for(?: ?\/[a-z?](?:[ :](?:"[^"]*"|\S+))?)* \S+ in \([^)]+\) do/im , lookbehind :! 0 , inside : { keyword : /^for\b|\b(?:in|do)\b/i , string : n , parameter : t , variable : r , number : i , punctuation : /[()',]/ }},{ pattern : /((?:^|[&(])[ \t]*)if(?: ?\/[a-z?](?:[ :](?:"[^"]*"|\S+))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|\S+)?(?:==| (?:equ|neq|lss|leq|gtr|geq) )(?:"[^"]*"|\S+))/im , lookbehind :! 0 , inside : { keyword : /^if\b|\b(?:not|cmdextversion|defined|errorlevel|exist)\b/i , string : n , parameter : t , variable : r , number : i , operator : /\^|==|\b(?:equ|neq|lss|leq|gtr|geq)\b/i }},{ pattern : /((?:^|[&()])[ \t]*)else\b/im , lookbehind :! 0 , inside : { keyword : /^else\b/i }},{ pattern : /((?:^|[&(])[ \t]*)set(?: ?\/[a-z](?:[ :](?:"[^"]*"|\S+))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im , lookbehind :! 0 , inside : { keyword : /^set\b/i , string : n , parameter : t , variable : [ r , /\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/ ], number : i , operator : /[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/ , punctuation : /[()',]/ }},{ pattern : /((?:^|[&(])[ \t]*@?)\w+\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im , lookbehind :! 0 , inside : { keyword : /^\w+\b/i , string : n , parameter : t , label : { pattern : /(^\s*):\S+/m , lookbehind :! 0 , alias : "property" }, variable : r , number : i , operator : /\^/ }}], operator : /[&@]/ , punctuation : /[()']/ }}( Prism );
Prism . languages . c = Prism . languages . extend ( "clike" ,{ keyword : /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/ , operator : /\-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*\/]/ , number : /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i }), Prism . languages . insertBefore ( "c" , "string" ,{ macro : { pattern : /(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im , lookbehind :! 0 , alias : "property" , inside : { string : { pattern : /(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/ , lookbehind :! 0 }, directive : { pattern : /(#\s*)\b(define|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/ , lookbehind :! 0 , alias : "keyword" }}}, constant : /\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|stdin|stdout|stderr)\b/ }), delete Prism . languages . c [ "class-name" ], delete Prism . languages . c [ "boolean" ];
Prism . languages . brainfuck = { pointer : { pattern : /<|>/ , alias : "keyword" }, increment : { pattern : /\+/ , alias : "inserted" }, decrement : { pattern : /-/ , alias : "deleted" }, branching : { pattern : /\[|\]/ , alias : "important" }, operator : /[.,]/ , comment : /\S+/ };
2017-02-20 15:30:47 +01:00
Prism . languages . bro = { comment : { pattern : /(^|[^\\$])#.*/ , lookbehind :! 0 , inside : { italic : /\b(TODO|FIXME|XXX)\b/ }}, string : { pattern : /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 }, "boolean" : /\b(T|F)\b/ , "function" : { pattern : /(?:function|hook|event) [a-zA-Z0-9_]+(::[a-zA-Z0-9_]+)?/ , inside : { keyword : /^(?:function|hook|event)/ }}, variable : { pattern : /(?:global|local) [a-zA-Z0-9_]+/i , inside : { keyword : /(?:global|local)/ }}, builtin : /(@(load(-(sigs|plugin))?|unload|prefixes|ifn?def|else|(end)?if|DIR|FILENAME))|(&?(redef|priority|log|optional|default|add_func|delete_func|expire_func|read_expire|write_expire|create_expire|synchronized|persistent|rotate_interval|rotate_size|encrypt|raw_output|mergeable|group|error_handler|type_column))/ , constant : { pattern : /const [a-zA-Z0-9_]+/i , inside : { keyword : /const/ }}, keyword : /\b(break|next|continue|alarm|using|of|add|delete|export|print|return|schedule|when|timeout|addr|any|bool|count|double|enum|file|int|interval|pattern|opaque|port|record|set|string|subnet|table|time|vector|for|if|else|in|module|function)\b/ , operator : /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/ , number : /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i , punctuation : /[{}[\];(),.:]/ };
Prism . languages . bison = Prism . languages . extend ( "c" ,{}), Prism . languages . insertBefore ( "bison" , "comment" ,{ bison : { pattern : /^[\s\S]*?%%[\s\S]*?%%/ , inside : { c : { pattern : /%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/ , inside : { delimiter : { pattern : /^%?\{|%?\}$/ , alias : "punctuation" }, "bison-variable" : { pattern : /[$@](?:<[^\s>]+>)?[\w$]+/ , alias : "variable" , inside : { punctuation : /<|>/ }}, rest : Prism . languages . c }}, comment : Prism . languages . c . comment , string : Prism . languages . c . string , property : /\S+(?=:)/ , keyword : /%\w+/ , number : { pattern : /(^|[^@])\b(?:0x[\da-f]+|\d+)/i , lookbehind :! 0 }, punctuation : /%[%?]|[|:;\[\]<>]/ }}});
Prism . languages . csharp = Prism . languages . extend ( "clike" ,{ keyword : /\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/ , string : [{ pattern : /@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/ , greedy :! 0 },{ pattern : /("|')(\\?.)*?\1/ , greedy :! 0 }], number : /\b-?(0x[\da-f]+|\d*\.?\d+f?)\b/i }), Prism . languages . insertBefore ( "csharp" , "keyword" ,{ "generic-method" : { pattern : /[a-z0-9_]+\s*<[^>\r\n]+?>\s*(?=\()/i , alias : "function" , inside : { keyword : Prism . languages . csharp . keyword , punctuation : /[<>(),.:]/ }}, preprocessor : { pattern : /(^\s*)#.*/m , lookbehind :! 0 , alias : "property" , inside : { directive : { pattern : /(\s*#)\b(define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/ , lookbehind :! 0 , alias : "keyword" }}}});
2016-04-11 15:59:32 +02:00
Prism . languages . cpp = Prism . languages . extend ( "c" ,{ keyword : /\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/ , "boolean" : /\b(true|false)\b/ , operator : /[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/ }), Prism . languages . insertBefore ( "cpp" , "keyword" ,{ "class-name" : { pattern : /(class\s+)[a-z0-9_]+/i , lookbehind :! 0 }});
2016-06-09 17:01:42 +02:00
! function ( e ){ var t = /#(?!\{).+/ , n = { pattern : /#\{[^}]+\}/ , alias : "variable" }; e . languages . coffeescript = e . languages . extend ( "javascript" ,{ comment : t , string : [{ pattern : /'(?:\\?[^\\])*?'/ , greedy :! 0 },{ pattern : /"(?:\\?[^\\])*?"/ , greedy :! 0 , inside : { interpolation : n }}], keyword : /\b(and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/ , "class-member" : { pattern : /@(?!\d)\w+/ , alias : "variable" }}), e . languages . insertBefore ( "coffeescript" , "comment" ,{ "multiline-comment" : { pattern : /###[\s\S]+?###/ , alias : "comment" }, "block-regex" : { pattern : /\/{3}[\s\S]*?\/{3}/ , alias : "regex" , inside : { comment : t , interpolation : n }}}), e . languages . insertBefore ( "coffeescript" , "string" ,{ "inline-javascript" : { pattern : /`(?:\\?[\s\S])*?`/ , inside : { delimiter : { pattern : /^`|`$/ , alias : "punctuation" }, rest : e . languages . javascript }}, "multiline-string" : [{ pattern : /'''[\s\S]*?'''/ , greedy :! 0 , alias : "string" },{ pattern : /"""[\s\S]*?"""/ , greedy :! 0 , alias : "string" , inside : { interpolation : n }}]}), e . languages . insertBefore ( "coffeescript" , "keyword" ,{ property : /(?!\d)\w+(?=\s*:(?!:))/ }), delete e . languages . coffeescript [ "template-string" ]}( Prism );
2017-02-20 15:30:47 +01:00
! function ( e ){ e . languages . ruby = e . languages . extend ( "clike" ,{ comment : /#(?!\{[^\r\n]*?\}).*/ , keyword : /\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/ }); var n = { pattern : /#\{[^}]+\}/ , inside : { delimiter : { pattern : /^#\{|\}$/ , alias : "tag" }, rest : e . util . clone ( e . languages . ruby )}}; e . languages . insertBefore ( "ruby" , "keyword" ,{ regex : [{ pattern : /%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/ , lookbehind :! 0 , greedy :! 0 }], variable : /[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/ , symbol : /:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/ }), e . languages . insertBefore ( "ruby" , "number" ,{ builtin : /\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/ , constant : /\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/ }), e . languages . ruby . string = [{ pattern : /%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/ , greedy :! 0 , inside : { interpolation : n }},{ pattern : /("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/ , greedy :! 0 , inside : { interpolation : n }}]}( Prism );
Prism . languages . css . selector = { pattern : /[^\{\}\s][^\{\}]*(?=\s*\{)/ , inside : { "pseudo-element" : /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/ , "pseudo-class" : /:[-\w]+(?:\(.*\))?/ , "class" : /\.[-:\.\w]+/ , id : /#[-:\.\w]+/ , attribute : /\[[^\]]+\]/ }}, Prism . languages . insertBefore ( "css" , "function" ,{ hexcode : /#[\da-f]{3,6}/i , entity : /\\[\da-f]{1,8}/i , number : /[\d%\.]+/ });
2016-04-11 15:59:32 +02:00
Prism . languages . d = Prism . languages . extend ( "clike" ,{ string : [ /\b[rx]"(\\.|[^\\"])*"[cwd]?/ , /\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/ , /\bq"([_a-zA-Z][_a-zA-Z\d]*)(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\1"/ , /\bq"(.)[\s\S]*?\1"/ , /'(?:\\'|\\?[^']+)'/ , /(["`])(\\.|(?!\1)[^\\])*\1[cwd]?/ ], number : [ /\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]*/i ,{ pattern : /((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]*/i , lookbehind :! 0 }], keyword : /\$|\b(?:abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__(?:(?:FILE|MODULE|LINE|FUNCTION|PRETTY_FUNCTION|DATE|EOF|TIME|TIMESTAMP|VENDOR|VERSION)__|gshared|traits|vector|parameters)|string|wstring|dstring|size_t|ptrdiff_t)\b/ , operator : /\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/ }), Prism . languages . d . comment = [ /^\s*#!.+/ ,{ pattern : /(^|[^\\])\/\+(?:\/\+[\w\W]*?\+\/|[\w\W])*?\+\// , lookbehind :! 0 }]. concat ( Prism . languages . d . comment ), Prism . languages . insertBefore ( "d" , "comment" ,{ "token-string" : { pattern : /\bq\{(?:|\{[^}]*\}|[^}])*\}/ , alias : "string" }}), Prism . languages . insertBefore ( "d" , "keyword" ,{ property : /\B@\w*/ }), Prism . languages . insertBefore ( "d" , "function" ,{ register : { pattern : /\b(?:[ABCD][LHX]|E[ABCD]X|E?(?:BP|SP|DI|SI)|[ECSDGF]S|CR[0234]|DR[012367]|TR[3-7]|X?MM[0-7]|R[ABCD]X|[BS]PL|R[BS]P|[DS]IL|R[DS]I|R(?:[89]|1[0-5])[BWD]?|XMM(?:[89]|1[0-5])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/ , alias : "variable" }});
2017-02-20 15:30:47 +01:00
Prism . languages . dart = Prism . languages . extend ( "clike" ,{ string : [{ pattern : /r?("""|''')[\s\S]*?\1/ , greedy :! 0 },{ pattern : /r?("|')(\\?.)*?\1/ , greedy :! 0 }], keyword : [ /\b(?:async|sync|yield)\*/ , /\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|default|deferred|do|dynamic|else|enum|export|external|extends|factory|final|finally|for|get|if|implements|import|in|library|new|null|operator|part|rethrow|return|set|static|super|switch|this|throw|try|typedef|var|void|while|with|yield)\b/ ], operator : /\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/ }), Prism . languages . insertBefore ( "dart" , "function" ,{ metadata : { pattern : /@\w+/ , alias : "symbol" }});
var _django_template = { property : { pattern : /(?:{{|{%)[\w\W]*?(?:%}|}})/g , greedy :! 0 , inside : { string : { pattern : /("|')(?:\\\\|\\?[^\\\r\n])*?\1/ , greedy :! 0 }, keyword : /\b(?:\||load|verbatim|widthratio|ssi|firstof|for|url|ifchanged|csrf_token|lorem|ifnotequal|autoescape|now|templatetag|debug|cycle|ifequal|regroup|comment|filter|endfilter|if|spaceless|with|extends|block|include|else|empty|endif|endfor|as|endblock|endautoescape|endverbatim|trans|endtrans|[Tt]rue|[Ff]alse|[Nn]one|in|is|static|macro|endmacro|call|endcall|set|endset|raw|endraw)\b/ , operator : /[-+=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/ , "function" : /\b(?:_|abs|add|addslashes|attr|batch|callable|capfirst|capitalize|center|count|cut|d|date|default|default_if_none|defined|dictsort|dictsortreversed|divisibleby|e|equalto|escape|escaped|escapejs|even|filesizeformat|first|float|floatformat|force_escape|forceescape|format|get_digit|groupby|indent|int|iriencode|iterable|join|last|length|length_is|linebreaks|linebreaksbr|linenumbers|list|ljust|lower|make_list|map|mapping|number|odd|phone2numeric|pluralize|pprint|random|reject|rejectattr|removetags|replace|reverse|rjust|round|safe|safeseq|sameas|select|selectattr|sequence|slice|slugify|sort|string|stringformat|striptags|sum|time|timesince|timeuntil|title|trim|truncate|truncatechars|truncatechars_html|truncatewords|truncatewords_html|undefined|unordered_list|upper|urlencode|urlize|urlizetrunc|wordcount|wordwrap|xmlattr|yesno)\b/ , important : /\b-?\d+(?:\.\d+)?\b/ , variable : /\b\w+?\b/ , punctuation : /[[\];(),.:]/ }}}; Prism . languages . django = Prism . languages . extend ( "markup" ,{ comment : /(?:<!--|{#)[\w\W]*?(?:#}|-->)/ }), Prism . languages . django . tag . pattern = /<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^>=]+))?)*\s*\/?>/i , Prism . languages . insertBefore ( "django" , "entity" , _django_template ), Prism . languages . insertBefore ( "inside" , "tag" , _django_template , Prism . languages . django . tag ), Prism . languages . javascript && ( Prism . languages . insertBefore ( "inside" , "string" , _django_template , Prism . languages . django . script ), Prism . languages . django . script . inside . string . inside = _django_template ), Prism . languages . css && ( Prism . languages . insertBefore ( "inside" , "atrule" ,{ tag : _django_template . property }, Prism . languages . django . style ), Prism . languages . django . style . inside . string . inside = _django_template ), Prism . languages . jinja2 = Prism . languages . django ;
Prism . languages . diff = { coord : [ /^(?:\*{3}|-{3}|\+{3}).*$/m , /^@@.*@@$/m , /^\d+.*$/m ], deleted : /^[-<].*$/m , inserted : /^[+>].*$/m , diff : { pattern : /^!(?!!).+$/m , alias : "important" }};
2016-04-11 15:59:32 +02:00
Prism . languages . docker = { keyword : { pattern : /(^\s*)(?:ONBUILD|FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|COPY|VOLUME|USER|WORKDIR|CMD|LABEL|ENTRYPOINT)(?=\s)/im , lookbehind :! 0 }, string : /("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*?\1/ , comment : /#.*/ , punctuation : /---|\.\.\.|[:[\]{}\-,|>?]/ };
Prism . languages . eiffel = { string : [ /"([^[]*)\[[\s\S]+?\]\1"/ , /"([^{]*)\{[\s\S]+?\}\1"/ , /"(?:%\s+%|%"|.)*?"/ ], comment : /--.*/ , "char" : /'(?:%'|.)+?'/ , keyword : /\b(?:across|agent|alias|all|and|attached|as|assign|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i , "boolean" : /\b(?:True|False)\b/i , number : [ /\b0[xcb][\da-f](?:_*[\da-f])*\b/i , /(?:\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?[eE][+-]?)?\d(?:_*\d)*|\d(?:_*\d)*\.?/ ], punctuation : /:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/ , operator : /\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/ };
2017-02-20 15:30:47 +01:00
Prism . languages . elixir = { comment : { pattern : /(^|[^#])#(?![{#]).*/m , lookbehind :! 0 }, regex : /~[rR](?:("""|'''|[\/|"'])(?:\\.|(?!\1)[^\\])+\1|\((?:\\\)|[^)])+\)|\[(?:\\\]|[^\]])+\]|\{(?:\\\}|[^}])+\}|<(?:\\>|[^>])+>)[uismxfr]*/ , string : [{ pattern : /~[cCsSwW](?:("""|'''|[\/|"'])(?:\\.|(?!\1)[^\\])+\1|\((?:\\\)|[^)])+\)|\[(?:\\\]|[^\]])+\]|\{(?:\\\}|#\{[^}]+\}|[^}])+\}|<(?:\\>|[^>])+>)[csa]?/ , greedy :! 0 , inside : {}},{ pattern : /("""|''')[\s\S]*?\1/ , greedy :! 0 , inside : {}},{ pattern : /("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/ , greedy :! 0 , inside : {}}], atom : { pattern : /(^|[^:]):\w+/ , lookbehind :! 0 , alias : "symbol" }, "attr-name" : /\w+:(?!:)/ , capture : { pattern : /(^|[^&])&(?:[^&\s\d()][^\s()]*|(?=\())/ , lookbehind :! 0 , alias : "function" }, argument : { pattern : /(^|[^&])&\d+/ , lookbehind :! 0 , alias : "variable" }, attribute : { pattern : /@[\S]+/ , alias : "variable" }, number : /\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i , keyword : /\b(?:after|alias|and|case|catch|cond|def(?:callback|exception|impl|module|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|require|rescue|try|unless|use|when)\b/ , "boolean" : /\b(?:true|false|nil)\b/ , operator : [ /\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/ ,{ pattern : /([^<])<(?!<)/ , lookbehind :! 0 },{ pattern : /([^>])>(?!>)/ , lookbehind :! 0 }], punctuation : /<<|>>|[.,%\[\]{}()]/ }, Prism . languages . elixir . string . forEach ( function ( e ){ e . inside = { interpolation : { pattern : /#\{[^}]+\}/ , inside : { delimiter : { pattern : /^#\{|\}$/ , alias : "punctuation" }, rest : Prism . util . clone ( Prism . languages . elixir )}}}});
Prism . languages . erlang = { comment : /%.+/ , string : { pattern : /"(?:\\?.)*?"/ , greedy :! 0 }, "quoted-function" : { pattern : /'(?:\\.|[^'\\])+'(?=\()/ , alias : "function" }, "quoted-atom" : { pattern : /'(?:\\.|[^'\\])+'/ , alias : "atom" }, "boolean" : /\b(?:true|false)\b/ , keyword : /\b(?:fun|when|case|of|end|if|receive|after|try|catch)\b/ , number : [ /\$\\?./ , /\d+#[a-z0-9]+/i , /(?:\b|-)\d*\.?\d+([Ee][+-]?\d+)?\b/ ], "function" : /\b[a-z][\w@]*(?=\()/ , variable : { pattern : /(^|[^@])(?:\b|\?)[A-Z_][\w@]*/ , lookbehind :! 0 }, operator : [ /[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:bnot|div|rem|band|bor|bxor|bsl|bsr|not|and|or|xor|orelse|andalso)\b/ ,{ pattern : /(^|[^<])<(?!<)/ , lookbehind :! 0 },{ pattern : /(^|[^>])>(?!>)/ , lookbehind :! 0 }], atom : /\b[a-z][\w@]*/ , punctuation : /[()[\]{}:;,.#|]|<<|>>/ };
Prism . languages . fsharp = Prism . languages . extend ( "clike" ,{ comment : [{ pattern : /(^|[^\\])\(\*[\w\W]*?\*\)/ , lookbehind :! 0 },{ pattern : /(^|[^\\:])\/\/.*/ , lookbehind :! 0 }], keyword : /\b(?:let|return|use|yield)(?:!\B|\b)|\b(abstract|and|as|assert|base|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|global|if|in|inherit|inline|interface|internal|lazy|match|member|module|mutable|namespace|new|not|null|of|open|or|override|private|public|rec|select|static|struct|then|to|true|try|type|upcast|val|void|when|while|with|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|include|method|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait|virtual|volatile)\b/ , string : { pattern : /(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|("|')(?:\\\1|\\?(?!\1)[\s\S])*\1)B?/ , greedy :! 0 }, number : [ /\b-?0x[\da-fA-F]+(un|lf|LF)?\b/ , /\b-?0b[01]+(y|uy)?\b/ , /\b-?(\d*\.?\d+|\d+\.)([fFmM]|[eE][+-]?\d+)?\b/ , /\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/ ]}), Prism . languages . insertBefore ( "fsharp" , "keyword" ,{ preprocessor : { pattern : /^[^\r\n\S]*#.*/m , alias : "property" , inside : { directive : { pattern : /(\s*#)\b(else|endif|if|light|line|nowarn)\b/ , lookbehind :! 0 , alias : "keyword" }}}});
2016-04-11 15:59:32 +02:00
Prism . languages . fortran = { "quoted-number" : { pattern : /[BOZ](['"])[A-F0-9]+\1/i , alias : "number" }, string : { pattern : /(?:\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:\s*!.+(?:\r\n?|\n))?|(?!\1).)*(?:\1|&)/ , inside : { comment : { pattern : /(&(?:\r\n?|\n)\s*)!.*/ , lookbehind :! 0 }}}, comment : /!.*/ , "boolean" : /\.(?:TRUE|FALSE)\.(?:_\w+)?/i , number : /(?:\b|[+-])(?:\d+(?:\.\d*)?|\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i , keyword : [ /\b(?:INTEGER|REAL|DOUBLE ?PRECISION|COMPLEX|CHARACTER|LOGICAL)\b/i , /\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i , /\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i , /\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEWHERE|ELSEIF|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i ], operator : [ /\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.(?:EQ|NE|LT|LE|GT|GE|NOT|AND|OR|EQV|NEQV)\.|\.[A-Z]+\./i ,{ pattern : /(^|(?!\().)\/(?!\))/ , lookbehind :! 0 }], punctuation : /\(\/|\/\)|[(),;:&]/ };
2017-02-20 15:30:47 +01:00
Prism . languages . gherkin = { pystring : { pattern : /("""|''')[\s\S]+?\1/ , alias : "string" }, comment : { pattern : /((^|\r?\n|\r)[ \t]*)#.*/ , lookbehind :! 0 }, tag : { pattern : /((^|\r?\n|\r)[ \t]*)@\S*/ , lookbehind :! 0 }, feature : { pattern : /((^|\r?\n|\r)[ \t]*)(Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|CaracterÃstica|Egenskab|Egenskap|Eiginleiki|Feature|FÄ«Ä� a|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|FuncÅ£ionalitate|FuncÈ›ionalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|FunkcionalitÄ� te|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità |Hwaet|Hwæt|JellemzÅ‘|Karakteristik|laH|Lastnost|Mak|Mogucnost|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|perbogh|poQbogh malja'|Potrzeba biznesowa|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|SavybÄ—|TÃnh năng|Trajto|Vermoë|VlastnosÅ¥|WÅ‚aÅ›ciwość|ZnaÄ� ilnost|Δυνατότητα|ΛειτουÏ� γία|МогућноÑ� Ñ‚|Мөмкинлек|ОÑ� обина|СвойÑ� тво|Үзенчәлеклелек|Функционал|ФункционалноÑ� Ñ‚|ФункциÑ� |Функціонал|×ª×›×•× ×”|خاصية|خصوصیت|صلاØÛŒØª|کاروبار Ú©ÛŒ ضرورت|ÙˆÙ� یژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨà©� ਹਾਰ|ਮà©� ਹਾਂਦਰਾ|à°—à±� ణమà±� |ಹೆಚà³� ಚಳ|ความต้à¸à¸‡à¸� ารทางธุรà¸� ิจ|ความสามารถ|โครงหลัà¸� |기능|フィーãƒ� ャ|功能|機能):([^:]+(?:\r?\n|\r|$))*/ , lookbehind :! 0 , inside : { important : { pattern : /(:)[^\r\n]+/ , lookbehind :! 0 }, keyword : /[^:\r\n]+:/ }}, scenario : { pattern : /((^|\r?\n|\r)[ \t]*)(Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram senaryo|Dyagram Senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|Examples|EXAMPLZ|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|GeçmiÅŸ|ghantoH|Grundlage|Hannergrond|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut|lut chovnatlh|lutmey|Lýsing Atburðarásar|Lýsing Dæma|Menggariskan Senario|MISHUN|MISHUN SRSLY|mo'|NáÄ� rt Scenára|NáÄ� rt Scénáře|NáÄ� rt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|PiemÄ“ri|Plan du scénario|Plan du Scénario|Plan senaryo|Plan Senaryo|Plang vum Szenario|PozadÃ|Pozadie|Pozadina|PrÃklady|PÅ™Ãklady|Primer|Primeri|Primjeri|PrzykÅ‚ady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus Å¡ablonas|Scenariji|ScenÄ� rijs|ScenÄ� rijs pÄ“c parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo|Senaryo deskripsyon|Senaryo Deskripsyon|Senaryo taslağı|Shiver me timbers|SituÄ� cija|Situai|Situasie|Situasie Uiteensetting|Skenario|Skenario konsep|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa|Swa hwaer swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo\-ho\-ho|You'll wanna|ZaÅ‚ożenia|ΠαÏ� αδείγματα|ΠεÏ� ιγÏ� αφή ΣεÎ
2016-04-11 15:59:32 +02:00
Prism . languages . git = { comment : /^#.*/m , deleted : /^[-–].*/m , inserted : /^\+.*/m , string : /("|')(\\?.)*?\1/m , command : { pattern : /^.*\$ git .*$/m , inside : { parameter : /\s(--|-)\w+/m }}, coord : /^@@.*@@$/m , commit_sha1 : /^commit \w{40}$/m };
2017-02-20 15:30:47 +01:00
Prism . languages . glsl = Prism . languages . extend ( "clike" ,{ comment : [ /\/\*[\w\W]*?\*\// , /\/\/(?:\\(?:\r\n|[\s\S])|.)*/ ], number : /\b(?:0x[\da-f]+|(?:\.\d+|\d+\.?\d*)(?:e[+-]?\d+)?)[ulf]*\b/i , keyword : /\b(?:attribute|const|uniform|varying|buffer|shared|coherent|volatile|restrict|readonly|writeonly|atomic_uint|layout|centroid|flat|smooth|noperspective|patch|sample|break|continue|do|for|while|switch|case|default|if|else|subroutine|in|out|inout|float|double|int|void|bool|true|false|invariant|precise|discard|return|d?mat[234](?:x[234])?|[ibdu]?vec[234]|uint|lowp|mediump|highp|precision|[iu]?sampler[123]D|[iu]?samplerCube|sampler[12]DShadow|samplerCubeShadow|[iu]?sampler[12]DArray|sampler[12]DArrayShadow|[iu]?sampler2DRect|sampler2DRectShadow|[iu]?samplerBuffer|[iu]?sampler2DMS(?:Array)?|[iu]?samplerCubeArray|samplerCubeArrayShadow|[iu]?image[123]D|[iu]?image2DRect|[iu]?imageCube|[iu]?imageBuffer|[iu]?image[12]DArray|[iu]?imageCubeArray|[iu]?image2DMS(?:Array)?|struct|common|partition|active|asm|class|union|enum|typedef|template|this|resource|goto|inline|noinline|public|static|extern|external|interface|long|short|half|fixed|unsigned|superp|input|output|hvec[234]|fvec[234]|sampler3DRect|filter|sizeof|cast|namespace|using)\b/ }), Prism . languages . insertBefore ( "glsl" , "comment" ,{ preprocessor : { pattern : /(^[ \t]*)#(?:(?:define|undef|if|ifdef|ifndef|else|elif|endif|error|pragma|extension|version|line)\b)?/m , lookbehind :! 0 , alias : "builtin" }});
Prism . languages . go = Prism . languages . extend ( "clike" ,{ keyword : /\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/ , builtin : /\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/ , "boolean" : /\b(_|iota|nil|true|false)\b/ , operator : /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./ , number : /\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i , string : { pattern : /("|'|`)(\\?.|\r|\n)*?\1/ , greedy :! 0 }}), delete Prism . languages . go [ "class-name" ];
Prism . languages . graphql = { comment : /#.*/ , string : { pattern : /"(?:\\.|[^\\"])*"/ , greedy :! 0 }, number : /(?:\B-|\b)\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/ , "boolean" : /\b(?:true|false)\b/ , variable : /\$[a-z_]\w*/i , directive : { pattern : /@[a-z_]\w*/i , alias : "function" }, "attr-name" : /[a-z_]\w*(?=\s*:)/i , keyword : [{ pattern : /(fragment\s+(?!on)[a-z_]\w*\s+|\.\.\.\s*)on\b/ , lookbehind :! 0 }, /\b(?:query|fragment|mutation)\b/ ], operator : /!|=|\.{3}/ , punctuation : /[!(){}\[\]:=,]/ };
Prism . languages . groovy = Prism . languages . extend ( "clike" ,{ keyword : /\b(as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/ , string : [{ pattern : /("""|''')[\W\w]*?\1|(\$\/)(\$\/\$|[\W\w])*?\/\$/ , greedy :! 0 },{ pattern : /("|'|\/)(?:\\?.)*?\1/ , greedy :! 0 }], number : /\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?[\d]+)?)[glidf]?\b/i , operator : { pattern : /(^|[^.])(~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.{1,2}(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/ , lookbehind :! 0 }, punctuation : /\.+|[{}[\];(),:$]/ }), Prism . languages . insertBefore ( "groovy" , "string" ,{ shebang : { pattern : /#!.+/ , alias : "comment" }}), Prism . languages . insertBefore ( "groovy" , "punctuation" ,{ "spock-block" : /\b(setup|given|when|then|and|cleanup|expect|where):/ }), Prism . languages . insertBefore ( "groovy" , "function" ,{ annotation : { alias : "punctuation" , pattern : /(^|[^.])@\w+/ , lookbehind :! 0 }}), Prism . hooks . add ( "wrap" , function ( e ){ if ( "groovy" === e . language && "string" === e . type ){ var t = e . content [ 0 ]; if ( "'" != t ){ var n = /([^\\])(\$(\{.*?\}|[\w\.]+))/ ; "$" === t && ( n = /([^\$])(\$(\{.*?\}|[\w\.]+))/ ), e . content = e . content . replace ( /</g , "<" ). replace ( /&/g , "&" ), e . content = Prism . highlight ( e . content ,{ expression : { pattern : n , lookbehind :! 0 , inside : Prism . languages . groovy }}), e . classes . push ( "/" === t ? "regex" : "gstring" )}}});
! function ( e ){ e . languages . haml = { "multiline-comment" : { pattern : /((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*((?:\r?\n|\r)\2[\t ]+.+)*/ , lookbehind :! 0 , alias : "comment" }, "multiline-code" : [{ pattern : /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*((?:\r?\n|\r)\2[\t ]+.*,[\t ]*)*((?:\r?\n|\r)\2[\t ]+.+)/ , lookbehind :! 0 , inside : { rest : e . languages . ruby }},{ pattern : /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*((?:\r?\n|\r)\2[\t ]+.*\|[\t ]*)*/ , lookbehind :! 0 , inside : { rest : e . languages . ruby }}], filter : { pattern : /((?:^|\r?\n|\r)([\t ]*)):[\w-]+((?:\r?\n|\r)(?:\2[\t ]+.+|\s*?(?=\r?\n|\r)))+/ , lookbehind :! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" }}}, markup : { pattern : /((?:^|\r?\n|\r)[\t ]*)<.+/ , lookbehind :! 0 , inside : { rest : e . languages . markup }}, doctype : { pattern : /((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/ , lookbehind :! 0 }, tag : { pattern : /((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^}])+\}|\[[^\]]+\])*[\/<>]*/ , lookbehind :! 0 , inside : { attributes : [{ pattern : /(^|[^#])\{(?:\{[^}]+\}|[^}])+\}/ , lookbehind :! 0 , inside : { rest : e . languages . ruby }},{ pattern : /\([^)]+\)/ , inside : { "attr-value" : { pattern : /(=\s*)(?:"(?:\\?.)*?"|[^)\s]+)/ , lookbehind :! 0 }, "attr-name" : /[\w:-]+(?=\s*!?=|\s*[,)])/ , punctuation : /[=(),]/ }},{ pattern : /\[[^\]]+\]/ , inside : { rest : e . languages . ruby }}], punctuation : /[<>]/ }}, code : { pattern : /((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/ , lookbehind :! 0 , inside : { rest : e . languages . ruby }}, interpolation : { pattern : /#\{[^}]+\}/ , inside : { delimiter : { pattern : /^#\{|\}$/ , alias : "punctuation" }, rest : e . languages . ruby }}, punctuation : { pattern : /((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/ , lookbehind :! 0 }}; for ( var t = "((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}((?:\\r?\\n|\\r)(?:\\2[\\t ]+.+|\\s*?(?=\\r?\\n|\\r)))+" , r = [ "css" ,{ filter : "coffee" , language : "coffeescript" }, "erb" , "javascript" , "less" , "markdown" , "ruby" , "scss" , "textile" ], n = {}, a = 0 , i = r . length ; i > a ; a ++ ){ var l = r [ a ]; l = "string" == typeof l ? { filter : l , language : l } : l , e . languages [ l . language ] && ( n [ "filter-" + l . filter ] = { pattern : RegExp ( t . replace ( "{{filter_name}}" , l . filter )), lookbehind :! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" }, rest : e . languages [ l . language ]}})} e . languages . insertBefore ( "haml" , "filter" , n )}( Prism );
! function ( e ){ var a = /\{\{\{[\w\W]+?\}\}\}|\{\{[\w\W]+?\}\}/g ; e . languages . handlebars = e . languages . extend ( "markup" ,{ handlebars : { pattern : a , inside : { delimiter : { pattern : /^\{\{\{?|\}\}\}?$/i , alias : "punctuation" }, string : /(["'])(\\?.)*?\1/ , number : /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee][+-]?\d+)?)\b/ , "boolean" : /\b(true|false)\b/ , block : { pattern : /^(\s*~?\s*)[#\/]\S+?(?=\s*~?\s*$|\s)/i , lookbehind :! 0 , alias : "keyword" }, brackets : { pattern : /\[[^\]]+\]/ , inside : { punctuation : /\[|\]/ , variable : /[\w\W]+/ }}, punctuation : /[!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]/ , variable : /[^!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~\s]+/ }}}), e . languages . insertBefore ( "handlebars" , "tag" ,{ "handlebars-comment" : { pattern : /\{\{![\w\W]*?\}\}/ , alias : [ "handlebars" , "comment" ]}}), e . hooks . add ( "before-highlight" , function ( e ){ "handlebars" === e . language && ( e . tokenStack = [], e . backupCode = e . code , e . code = e . code . replace ( a , function ( a ){ return e . tokenStack . push ( a ), "___HANDLEBARS" + e . tokenStack . length + "___" }))}), e . hooks . add ( "before-insert" , function ( e ){ "handlebars" === e . language && ( e . code = e . backupCode , delete e . backupCode )}), e . hooks . add ( "after-highlight" , function ( a ){ if ( "handlebars" === a . language ){ for ( var n , t = 0 ; n = a . tokenStack [ t ]; t ++ ) a . highlightedCode = a . highlightedCode . replace ( "___HANDLEBARS" + ( t + 1 ) + "___" , e . highlight ( n , a . grammar , "handlebars" ). replace ( /\$/g , "$$$$" )); a . element . innerHTML = a . highlightedCode }})}( Prism );
2016-06-09 17:01:42 +02:00
Prism . languages . haskell = { comment : { pattern : /(^|[^-!#$%*+=?&@|~.:<>^\\\/])(--[^-!#$%*+=?&@|~.:<>^\\\/].*|{-[\w\W]*?-})/m , lookbehind :! 0 }, "char" : /'([^\\']|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+))'/ , string : { pattern : /"([^\\"]|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\s+\\)*"/ , greedy :! 0 }, keyword : /\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/ , import_statement : { pattern : /(\r?\n|\r|^)\s*import\s+(qualified\s+)?([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*(\s+as\s+([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*)?(\s+hiding\b)?/m , inside : { keyword : /\b(import|qualified|as|hiding)\b/ }}, builtin : /\b(abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/ , number : /\b(\d+(\.\d+)?(e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i , operator : /\s\.\s|[-!#$%*+=?&@|~.:<>^\\\/]*\.[-!#$%*+=?&@|~.:<>^\\\/]+|[-!#$%*+=?&@|~.:<>^\\\/]+\.[-!#$%*+=?&@|~.:<>^\\\/]*|[-!#$%*+=?&@|~:<>^\\\/]+|`([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*`/ , hvariable : /\b([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*\b/ , constant : /\b([A-Z][_a-zA-Z0-9']*\.)*[A-Z][_a-zA-Z0-9']*\b/ , punctuation : /[{}[\];(),.:]/ };
2017-02-20 15:30:47 +01:00
Prism . languages . haxe = Prism . languages . extend ( "clike" ,{ string : { pattern : /(["'])(?:(?!\1)[^\\]|\\[\s\S])*\1/ , greedy :! 0 , inside : { interpolation : { pattern : /(^|[^\\])\$(?:\w+|\{[^}]+\})/ , lookbehind :! 0 , inside : { interpolation : { pattern : /^\$\w*/ , alias : "variable" }}}}}, keyword : /\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|from|for|function|if|implements|import|in|inline|interface|macro|new|null|override|public|private|return|static|super|switch|throw|to|try|typedef|using|var|while)(?!\.)\b/ , operator : /\.{3}|\+\+?|-[->]?|[=!]=?|&&?|\|\|?|<[<=]?|>[>=]?|[*\/%~^]/ }), Prism . languages . insertBefore ( "haxe" , "class-name" ,{ regex : { pattern : /~\/(?:[^\/\\\r\n]|\\.)+\/[igmsu]*/ , greedy :! 0 }}), Prism . languages . insertBefore ( "haxe" , "keyword" ,{ preprocessor : { pattern : /#\w+/ , alias : "builtin" }, metadata : { pattern : /@:?\w+/ , alias : "symbol" }, reification : { pattern : /\$(?:\w+|(?=\{))/ , alias : "variable" }}), Prism . languages . haxe . string . inside . interpolation . inside . rest = Prism . util . clone ( Prism . languages . haxe ), delete Prism . languages . haxe [ "class-name" ];
2016-04-11 15:59:32 +02:00
Prism . languages . http = { "request-line" : { pattern : /^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b\shttps?:\/\/\S+\sHTTP\/[0-9.]+/m , inside : { property : /^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b/ , "attr-name" : /:\w+/ }}, "response-status" : { pattern : /^HTTP\/1.[01] [0-9]+.*/m , inside : { property : { pattern : /(^HTTP\/1.[01] )[0-9]+.*/i , lookbehind :! 0 }}}, "header-name" : { pattern : /^[\w-]+:(?=.)/m , alias : "keyword" }}; var httpLanguages = { "application/json" : Prism . languages . javascript , "application/xml" : Prism . languages . markup , "text/xml" : Prism . languages . markup , "text/html" : Prism . languages . markup }; for ( var contentType in httpLanguages ) if ( httpLanguages [ contentType ]){ var options = {}; options [ contentType ] = { pattern : new RegExp ( "(content-type:\\s*" + contentType + "[\\w\\W]*?)(?:\\r?\\n|\\r){2}[\\w\\W]*" , "i" ), lookbehind :! 0 , inside : { rest : httpLanguages [ contentType ]}}, Prism . languages . insertBefore ( "http" , "header-name" , options )};
2017-02-20 15:30:47 +01:00
Prism . languages . icon = { comment : /#.*/ , string : { pattern : /(["'])(?:(?!\1)[^\\\r\n]|\\.|_(?:\r?\n|\r))*\1/ , greedy :! 0 }, number : /\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i , "builtin-keyword" : { pattern : /&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/ , alias : "variable" }, directive : { pattern : /\$\w+/ , alias : "builtin" }, keyword : /\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/ , "function" : /(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/ , operator : /[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/ , punctuation : /[\[\](){},;]/ };
Prism . languages . inform7 = { string : { pattern : /"[^"]*"/ , inside : { substitution : { pattern : /\[[^\]]+\]/ , inside : { delimiter : { pattern : /\[|\]/ , alias : "punctuation" }}}}}, comment : { pattern : /\[[^\]]+\]/ , greedy :! 0 }, title : { pattern : /^[ \t]*(?:volume|book|part(?! of)|chapter|section|table)\b.+/im , alias : "important" }, number : { pattern : /(^|[^-])(?:(?:\b|-)\d+(?:\.\d+)?(?:\^\d+)?\w*|\b(?:one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve))\b(?!-)/i , lookbehind :! 0 }, verb : { pattern : /(^|[^-])\b(?:applying to|are|attacking|answering|asking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:s|ing)?|consulting|contain(?:s|ing)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:ve|s|ving)|hold(?:s|ing)?|impl(?:y|ies)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:s|ing)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:s|ing)?|setting|showing|singing|sleeping|smelling|squeezing|switching|support(?:s|ing)?|swearing|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:s|ing)?|var(?:y|ies|ying)|waiting|waking|waving|wear(?:s|ing)?)\b(?!-)/i , lookbehind :! 0 , alias : "operator" }, keyword : { pattern : /(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|unless|the story)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i , lookbehind :! 0 }, property : { pattern : /(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: on| off)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i , lookbehind :! 0 , alias : "symbol" }, position : { pattern : /(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i , lookbehind :! 0 , alias : "keyword" }, type : { pattern : /(^|[^-])\b(?:actions?|activit(?:y|ies)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i , lookbehind :! 0 , alias : "variable" }, punctuation : /[.,:;(){}]/ }, Prism . languages . inform7 . string . inside . substitution . inside . rest = Prism . util . clone ( Prism . languages . inform7 ), Prism . languages . inform7 . string . inside . substitution . inside . rest . text = { pattern : /\S(?:\s*\S)*/ , alias : "comment" };
Prism . languages . ini = { comment : /^[ \t]*;.*$/m , selector : /^[ \t]*\[.*?\]/m , constant : /^[ \t]*[^\s=]+?(?=[ \t]*=)/m , "attr-value" : { pattern : /=.*/ , inside : { punctuation : /^[=]/ }}};
Prism . languages . j = { comment : /\bNB\..*/ , string : { pattern : /'(?:''|[^'\r\n])*'/ , greedy :! 0 }, keyword : /\b(?:(?:adverb|conjunction|CR|def|define|dyad|LF|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/ , verb : { pattern : /(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[\^?]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/ , alias : "keyword" }, number : /\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:[ejpx]|ad|ar)_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_(?!\.))/ , adverb : { pattern : /[~}]|[\/\\]\.?|[bfM]\.|t[.:]/ , alias : "builtin" }, operator : /[=a][.:]|_\./ , conjunction : { pattern : /&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/ , alias : "variable" }, punctuation : /[()]/ };
2016-04-11 15:59:32 +02:00
! function ( e ){ e . languages . jade = { comment : { pattern : /(^([\t ]*))\/\/.*((?:\r?\n|\r)\2[\t ]+.+)*/m , lookbehind :! 0 }, "multiline-script" : { pattern : /(^([\t ]*)script\b.*\.[\t ]*)((?:\r?\n|\r(?!\n))(?:\2[\t ]+.+|\s*?(?=\r?\n|\r)))+/m , lookbehind :! 0 , inside : { rest : e . languages . javascript }}, filter : { pattern : /(^([\t ]*)):.+((?:\r?\n|\r(?!\n))(?:\2[\t ]+.+|\s*?(?=\r?\n|\r)))+/m , lookbehind :! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" }}}, "multiline-plain-text" : { pattern : /(^([\t ]*)[\w\-#.]+\.[\t ]*)((?:\r?\n|\r(?!\n))(?:\2[\t ]+.+|\s*?(?=\r?\n|\r)))+/m , lookbehind :! 0 }, markup : { pattern : /(^[\t ]*)<.+/m , lookbehind :! 0 , inside : { rest : e . languages . markup }}, doctype : { pattern : /((?:^|\n)[\t ]*)doctype(?: .+)?/ , lookbehind :! 0 }, "flow-control" : { pattern : /(^[\t ]*)(?:if|unless|else|case|when|default|each|while)\b(?: .+)?/m , lookbehind :! 0 , inside : { each : { pattern : /^each .+? in\b/ , inside : { keyword : /\b(?:each|in)\b/ , punctuation : /,/ }}, branch : { pattern : /^(?:if|unless|else|case|when|default|while)\b/ , alias : "keyword" }, rest : e . languages . javascript }}, keyword : { pattern : /(^[\t ]*)(?:block|extends|include|append|prepend)\b.+/m , lookbehind :! 0 }, mixin : [{ pattern : /(^[\t ]*)mixin .+/m , lookbehind :! 0 , inside : { keyword : /^mixin/ , "function" : /\w+(?=\s*\(|\s*$)/ , punctuation : /[(),.]/ }},{ pattern : /(^[\t ]*)\+.+/m , lookbehind :! 0 , inside : { name : { pattern : /^\+\w+/ , alias : "function" }, rest : e . languages . javascript }}], script : { pattern : /(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]+).+/m , lookbehind :! 0 , inside : { rest : e . languages . javascript }}, "plain-text" : { pattern : /(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]+).+/m , lookbehind :! 0 }, tag : { pattern : /(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m , lookbehind :! 0 , inside : { attributes : [{ pattern : /&[^(]+\([^)]+\)/ , inside : { rest : e . languages . javascript }},{ pattern : /\([^)]+\)/ , inside : { "attr-value" : { pattern : /(=\s*)(?:\{[^}]*\}|[^,)\r\n]+)/ , lookbehind :! 0 , inside : { rest : e . languages . javascript }}, "attr-name" : /[\w-]+(?=\s*!?=|\s*[,)])/ , punctuation : /[!=(),]+/ }}], punctuation : /:/ }}, code : [{ pattern : /(^[\t ]*(?:-|!?=)).+/m , lookbehind :! 0 , inside : { rest : e . languages . javascript }}], punctuation : /[.\-!=|]+/ }; for ( var t = "(^([\\t ]*)):{{filter_name}}((?:\\r?\\n|\\r(?!\\n))(?:\\2[\\t ]+.+|\\s*?(?=\\r?\\n|\\r)))+" , n = [{ filter : "atpl" , language : "twig" },{ filter : "coffee" , language : "coffeescript" }, "ejs" , "handlebars" , "hogan" , "less" , "livescript" , "markdown" , "mustache" , "plates" ,{ filter : "sass" , language : "scss" }, "stylus" , "swig" ], a = {}, i = 0 , r = n . length ; r > i ; i ++ ){ var s = n [ i ]; s = "string" == typeof s ? { filter : s , language : s } : s , e . languages [ s . language ] && ( a [ "filter-" + s . filter ] = { pattern : RegExp ( t . replace ( "{{filter_name}}" , s . filter ), "m" ), lookbehind :! 0 , inside : { "filter-name" : { pattern : /^:[\w-]+/ , alias : "variable" }, rest : e . languages [ s . language ]}})} e . languages . insertBefore ( "jade" , "filter" , a )}( Prism );
2016-06-09 17:01:42 +02:00
Prism . languages . java = Prism . languages . extend ( "clike" ,{ keyword : /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/ , number : /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i , operator : { pattern : /(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m , lookbehind :! 0 }}), Prism . languages . insertBefore ( "java" , "function" ,{ annotation : { alias : "punctuation" , pattern : /(^|[^.])@\w+/ , lookbehind :! 0 }});
2017-02-20 15:30:47 +01:00
Prism . languages . jolie = Prism . languages . extend ( "clike" ,{ keyword : /\b(?:include|define|is_defined|undef|main|init|outputPort|inputPort|Location|Protocol|Interfaces|RequestResponse|OneWay|type|interface|extender|throws|cset|csets|forward|Aggregates|Redirects|embedded|courier|extender|execution|sequential|concurrent|single|scope|install|throw|comp|cH|default|global|linkIn|linkOut|synchronized|this|new|for|if|else|while|in|Jolie|Java|Javascript|nullProcess|spawn|constants|with|provide|until|exit|foreach|instanceof|over|service)\b/g , builtin : /\b(?:undefined|string|int|void|long|Byte|bool|double|float|char|any)\b/ , number : /\b\d*\.?\d+(?:e[+-]?\d+)?l?\b/i , operator : /->|<<|[!+-<>=*]?=|[:<>!?*\/%^]|&&|\|\||--?|\+\+?/g , symbol : /[|;@]/ , punctuation : /[,.]/ , string : { pattern : /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 }}), delete Prism . languages . jolie [ "class-name" ], delete Prism . languages . jolie [ "function" ], Prism . languages . insertBefore ( "jolie" , "keyword" ,{ "function" : { pattern : /((?:\b(?:outputPort|inputPort|in|service|courier)\b|@)\s*)\w+/ , lookbehind :! 0 }, aggregates : { pattern : /(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/ , lookbehind :! 0 , inside : { withExtension : { pattern : /\bwith\s+\w+/ , inside : { keyword : /\bwith\b/ }}, "function" : { pattern : /\w+/ }, punctuation : { pattern : /,/ }}}, redirects : { pattern : /(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/ , lookbehind :! 0 , inside : { punctuation : { pattern : /,/ }, "function" : { pattern : /\w+/g }, symbol : { pattern : /=>/g }}}});
Prism . languages . json = { property : /"(?:\\.|[^\\"])*"(?=\s*:)/gi , string : /"(?!:)(?:\\.|[^\\"])*"(?!:)/g , number : /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee][+-]?\d+)?)\b/g , punctuation : /[{}[\]);,]/g , operator : /:/g , "boolean" : /\b(true|false)\b/gi , "null" : /\bnull\b/gi }, Prism . languages . jsonp = Prism . languages . json ;
Prism . languages . julia = { comment : { pattern : /(^|[^\\])#.*/ , lookbehind :! 0 }, string : /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/ , keyword : /\b(abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|let|local|macro|module|print|println|quote|return|try|type|typealias|using|while)\b/ , "boolean" : /\b(true|false)\b/ , number : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:[efp][+-]?\d+)?j?\b/i , operator : /\+=?|-=?|\*=?|\/[\/=]?|\\=?|\^=?|%=?|÷=?|!=?=?|&=?|\|[=>]?|\$=?|<(?:<=?|[=:])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥]/ , punctuation : /[{}[\];(),.:]/ };
Prism . languages . keyman = { comment : /\bc\s.*/i , "function" : /\[\s*((CTRL|SHIFT|ALT|LCTRL|RCTRL|LALT|RALT|CAPS|NCAPS)\s+)*([TKU]_[a-z0-9_?]+|".+?"|'.+?')\s*\]/i , string : /("|')((?!\1).)*\1/ , bold : [ /&(baselayout|bitmap|capsononly|capsalwaysoff|shiftfreescaps|copyright|ethnologuecode|hotkey|includecodes|keyboardversion|kmw_embedcss|kmw_embedjs|kmw_helpfile|kmw_helptext|kmw_rtl|language|layer|layoutfile|message|mnemoniclayout|name|oldcharposmatching|platform|targets|version|visualkeyboard|windowslanguages)\b/i , /\b(bitmap|bitmaps|caps on only|caps always off|shift frees caps|copyright|hotkey|language|layout|message|name|version)\b/i ], keyword : /\b(any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|return|reset|save|set|store|use)\b/i , atrule : /\b(ansi|begin|unicode|group|using keys|match|nomatch)\b/i , number : /\b(U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i , operator : /[+>\\,()]/ , tag : /\$(keyman|kmfl|weaver|keymanweb|keymanonly):/i };
! function ( n ){ n . languages . kotlin = n . languages . extend ( "clike" ,{ keyword : { pattern : /(^|[^.])\b(?:abstract|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|else|enum|final|finally|for|fun|get|if|import|in|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|out|override|package|private|protected|public|reified|return|sealed|set|super|tailrec|this|throw|to|try|val|var|when|where|while)\b/ , lookbehind :! 0 }, "function" : [ /\w+(?=\s*\()/ ,{ pattern : /(\.)\w+(?=\s*\{)/ , lookbehind :! 0 }], number : /\b(?:0[bx][\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?[fFL]?)\b/ , operator : /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete n . languages . kotlin [ "class-name" ], n . languages . insertBefore ( "kotlin" , "string" ,{ "raw-string" : { pattern : /(["'])\1\1[\s\S]*?\1{3}/ , alias : "string" }}), n . languages . insertBefore ( "kotlin" , "keyword" ,{ annotation : { pattern : /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/ , alias : "builtin" }}), n . languages . insertBefore ( "kotlin" , "function" ,{ label : { pattern : /\w+@|@\w+/ , alias : "symbol" }}); var e = [{ pattern : /\$\{[^}]+\}/ , inside : { delimiter : { pattern : /^\$\{|\}$/ , alias : "variable" }, rest : n . util . clone ( n . languages . kotlin )}},{ pattern : /\$\w+/ , alias : "variable" }]; n . languages . kotlin . string . inside = n . languages . kotlin [ "raw-string" ]. inside = { interpolation : e }}( Prism );
2016-04-11 15:59:32 +02:00
! function ( a ){ var e = /\\([^a-z()[\]]|[a-z\*]+)/i , n = { "equation-command" : { pattern : e , alias : "regex" }}; a . languages . latex = { comment : /%.*/m , cdata : { pattern : /(\\begin\{((?:verbatim|lstlisting)\*?)\})([\w\W]*?)(?=\\end\{\2\})/ , lookbehind :! 0 }, equation : [{ pattern : /\$(?:\\?[\w\W])*?\$|\\\((?:\\?[\w\W])*?\\\)|\\\[(?:\\?[\w\W])*?\\\]/ , inside : n , alias : "string" },{ pattern : /(\\begin\{((?:equation|math|eqnarray|align|multline|gather)\*?)\})([\w\W]*?)(?=\\end\{\2\})/ , lookbehind :! 0 , inside : n , alias : "string" }], keyword : { pattern : /(\\(?:begin|end|ref|cite|label|usepackage|documentclass)(?:\[[^\]]+\])?\{)[^}]+(?=\})/ , lookbehind :! 0 }, url : { pattern : /(\\url\{)[^}]+(?=\})/ , lookbehind :! 0 }, headline : { pattern : /(\\(?:part|chapter|section|subsection|frametitle|subsubsection|paragraph|subparagraph|subsubparagraph|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\}(?:\[[^\]]+\])?)/ , lookbehind :! 0 , alias : "class-name" }, "function" : { pattern : e , alias : "selector" }, punctuation : /[[\]{}&]/ }}( Prism );
2017-02-20 15:30:47 +01:00
Prism . languages . less = Prism . languages . extend ( "css" ,{ comment : [ /\/\*[\w\W]*?\*\// ,{ pattern : /(^|[^\\])\/\/.*/ , lookbehind :! 0 }], atrule : { pattern : /@[\w-]+?(?:\([^{}]+\)|[^(){};])*?(?=\s*\{)/i , inside : { punctuation : /[:()]/ }}, selector : { pattern : /(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\([^{}]*\)|[^{};@])*?(?=\s*\{)/ , inside : { variable : /@+[\w-]+/ }}, property : /(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/i , punctuation : /[{}();:,]/ , operator : /[+\-*\/]/ }), Prism . languages . insertBefore ( "less" , "punctuation" ,{ "function" : Prism . languages . less . function }), Prism . languages . insertBefore ( "less" , "property" ,{ variable : [{ pattern : /@[\w-]+\s*:/ , inside : { punctuation : /:/ }}, /@@?[\w-]+/ ], "mixin-usage" : { pattern : /([{;]\s*)[.#](?!\d)[\w-]+.*?(?=[(;])/ , lookbehind :! 0 , alias : "function" }});
Prism . languages . livescript = { "interpolated-string" : { pattern : /("""|")(?:\\[\s\S]|(?!\1)[^\\])*\1/ , greedy :! 0 , inside : { variable : { pattern : /(^|[^\\])#[a-z_](?:-?[a-z]|\d)*/m , lookbehind :! 0 }, interpolation : { pattern : /(^|[^\\])#\{[^}]+\}/m , lookbehind :! 0 , inside : { "interpolation-punctuation" : { pattern : /^#\{|\}$/ , alias : "variable" }}}, string : /[\s\S]+/ }}, comment : [{ pattern : /(^|[^\\])\/\*[\w\W]*?\*\// , lookbehind :! 0 , greedy :! 0 },{ pattern : /(^|[^\\])#.*/ , lookbehind :! 0 , greedy :! 0 }], string : [{ pattern : /('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/ , greedy :! 0 },{ pattern : /<\[[\s\S]*?\]>/ , greedy :! 0 }, /\\[^\s,;\])}]+/ ], regex : [{ pattern : /\/\/(\[.+?]|\\.|(?!\/\/)[^\\])+\/\/[gimyu]{0,5}/ , greedy :! 0 , inside : { comment : { pattern : /(^|[^\\])#.*/ , lookbehind :! 0 }}},{ pattern : /\/(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}/ , greedy :! 0 }], keyword : { pattern : /(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m , lookbehind :! 0 }, "keyword-operator" : { pattern : /(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?:nt| not)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m , lookbehind :! 0 , alias : "operator" }, "boolean" : { pattern : /(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m , lookbehind :! 0 }, argument : { pattern : /(^|(?!\.&\.)[^&])&(?!&)\d*/m , lookbehind :! 0 , alias : "variable" }, number : /\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i , identifier : /[a-z_](?:-?[a-z]|\d)*/i , operator : [{ pattern : /( )\.(?= )/ , lookbehind :! 0 }, /\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/ ], punctuation : /[(){}\[\]|.,:;`]/ }, Prism . languages . livescript [ "interpolated-string" ]. inside . interpolation . inside . rest = Prism . languages . livescript ;
Prism . languages . lolcode = { comment : [ /\bOBTW\s+[\s\S]*?\s+TLDR\b/ , /\bBTW.+/ ], string : { pattern : /"(?::.|[^"])*"/ , inside : { variable : /:\{[^}]+\}/ , symbol : [ /:\([a-f\d]+\)/i , /:\[[^\]]+\]/ , /:[)>o":]/ ]}, greedy :! 0 }, number : /(-|\b)\d*\.?\d+/ , symbol : { pattern : /(^|\s)(?:A )?(?:YARN|NUMBR|NUMBAR|TROOF|BUKKIT|NOOB)(?=\s|,|$)/ , lookbehind :! 0 , inside : { keyword : /A(?=\s)/ }}, label : { pattern : /((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/ , lookbehind :! 0 , alias : "string" }, "function" : { pattern : /((?:^|\s)(?:I IZ|HOW IZ I|IZ) )[a-zA-Z]\w*/ , lookbehind :! 0 }, keyword : [{ pattern : /(^|\s)(?:O HAI IM|KTHX|HAI|KTHXBYE|I HAS A|ITZ(?: A)?|R|AN|MKAY|SMOOSH|MAEK|IS NOW(?: A)?|VISIBLE|GIMMEH|O RLY\?|YA RLY|NO WAI|OIC|MEBBE|WTF\?|OMG|OMGWTF|GTFO|IM IN YR|IM OUTTA YR|FOUND YR|YR|TIL|WILE|UPPIN|NERFIN|I IZ|HOW IZ I|IF U SAY SO|SRS|HAS A|LIEK(?: A)?|IZ)(?=\s|,|$)/ , lookbehind :! 0 }, /'Z(?=\s|,|$)/ ], "boolean" : { pattern : /(^|\s)(?:WIN|FAIL)(?=\s|,|$)/ , lookbehind :! 0 }, variable : { pattern : /(^|\s)IT(?=\s|,|$)/ , lookbehind :! 0 }, operator : { pattern : /(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:SUM|DIFF|PRODUKT|QUOSHUNT|MOD|BIGGR|SMALLR|BOTH|EITHER|WON|ALL|ANY) OF)(?=\s|,|$)/ , lookbehind :! 0 }, punctuation : /\.{3}|…|,|!/ };
2016-06-09 17:01:42 +02:00
Prism . languages . lua = { comment : /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m , string : { pattern : /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[\s\S]))*\1|\[(=*)\[[\s\S]*?\]\2\]/ , greedy :! 0 }, number : /\b0x[a-f\d]+\.?[a-f\d]*(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|\.?\d*(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i , keyword : /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/ , "function" : /(?!\d)\w+(?=\s*(?:[({]))/ , operator : [ /[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/ ,{ pattern : /(^|[^.])\.\.(?!\.)/ , lookbehind :! 0 }], punctuation : /[\[\](){},;]|\.+|:+/ };
2017-02-20 15:30:47 +01:00
Prism . languages . makefile = { comment : { pattern : /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|.)*/ , lookbehind :! 0 }, string : { pattern : /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 }, builtin : /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/ , symbol : { pattern : /^[^:=\r\n]+(?=\s*:(?!=))/m , inside : { variable : /\$+(?:[^(){}:#=\s]+|(?=[({]))/ }}, variable : /\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/ , keyword : [ /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/ ,{ pattern : /(\()(?:addsuffix|abspath|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:s|list)?)(?=[ \t])/ , lookbehind :! 0 }], operator : /(?:::|[?:+!])?=|[|@]/ , punctuation : /[:;(){}]/ };
2016-04-11 15:59:32 +02:00
Prism . languages . markdown = Prism . languages . extend ( "markup" ,{}), Prism . languages . insertBefore ( "markdown" , "prolog" ,{ blockquote : { pattern : /^>(?:[\t ]*>)*/m , alias : "punctuation" }, code : [{ pattern : /^(?: {4}|\t).+/m , alias : "keyword" },{ pattern : /``.+?``|`[^`\n]+`/ , alias : "keyword" }], title : [{ pattern : /\w+.*(?:\r?\n|\r)(?:==+|--+)/ , alias : "important" , inside : { punctuation : /==+$|--+$/ }},{ pattern : /(^\s*)#+.+/m , lookbehind :! 0 , alias : "important" , inside : { punctuation : /^#+|#+$/ }}], hr : { pattern : /(^\s*)([*-])([\t ]*\2){2,}(?=\s*$)/m , lookbehind :! 0 , alias : "punctuation" }, list : { pattern : /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m , lookbehind :! 0 , alias : "punctuation" }, "url-reference" : { pattern : /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/ , inside : { variable : { pattern : /^(!?\[)[^\]]+/ , lookbehind :! 0 }, string : /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/ , punctuation : /^[\[\]!:]|[<>]/ }, alias : "url" }, bold : { pattern : /(^|[^\\])(\*\*|__)(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/ , lookbehind :! 0 , inside : { punctuation : /^\*\*|^__|\*\*$|__$/ }}, italic : { pattern : /(^|[^\\])([*_])(?:(?:\r?\n|\r)(?!\r?\n|\r)|.)+?\2/ , lookbehind :! 0 , inside : { punctuation : /^[*_]|[*_]$/ }}, url : { pattern : /!?\[[^\]]+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)| ?\[[^\]\n]*\])/ , inside : { variable : { pattern : /(!?\[)[^\]]+(?=\]$)/ , lookbehind :! 0 }, string : { pattern : /"(?:\\.|[^"\\])*"(?=\)$)/ }}}}), Prism . languages . markdown . bold . inside . url = Prism . util . clone ( Prism . languages . markdown . url ), Prism . languages . markdown . italic . inside . url = Prism . util . clone ( Prism . languages . markdown . url ), Prism . languages . markdown . bold . inside . italic = Prism . util . clone ( Prism . languages . markdown . italic ), Prism . languages . markdown . italic . inside . bold = Prism . util . clone ( Prism . languages . markdown . bold );
Prism . languages . matlab = { string : /\B'(?:''|[^'\n])*'/ , comment : [ /%\{[\s\S]*?\}%/ , /%.+/ ], number : /\b-?(?:\d*\.?\d+(?:[eE][+-]?\d+)?(?:[ij])?|[ij])\b/ , keyword : /\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\b/ , "function" : /(?!\d)\w+(?=\s*\()/ , operator : /\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/ , punctuation : /\.{3}|[.,;\[\](){}!]/ };
2017-02-20 15:30:47 +01:00
Prism . languages . mel = { comment : /\/\/.*/ , code : { pattern : /`(?:\\.|[^\\`\r\n])*`/ , greedy :! 0 , alias : "italic" , inside : { delimiter : { pattern : /^`|`$/ , alias : "punctuation" }}}, string : { pattern : /"(?:\\.|[^\\"\r\n])*"/ , greedy :! 0 }, variable : /\$\w+/ , number : /(?:\b|-)(?:0x[\da-fA-F]+|\d+\.?\d*)/ , flag : { pattern : /-[^\d\W]\w*/ , alias : "operator" }, keyword : /\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/ , "function" : /\w+(?=\()|\b(?:about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|CBG|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothne
Prism . languages . mizar = { comment : /::.+/ , keyword : /@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|equals|end|environ|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:y|ies)|when|where|with|wrt)\b/ , parameter : { pattern : /\$(?:10|\d)/ , alias : "variable" }, variable : /\w+(?=:)/ , number : /(?:\b|-)\d+\b/ , operator : /\.\.\.|->|&|\.?=/ , punctuation : /\(#|#\)|[,:;\[\](){}]/ };
Prism . languages . monkey = { string : /"[^"\r\n]*"/ , comment : [ /^#Rem\s+[\s\S]*?^#End/im , /'.+/ ], preprocessor : { pattern : /(^[ \t]*)#.+/m , lookbehind :! 0 , alias : "comment" }, "function" : /\w+(?=\()/ , "type-char" : { pattern : /(\w)[?%#$]/ , lookbehind :! 0 , alias : "variable" }, number : { pattern : /((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+((?!\.\.)\.\d*)?|\$[\da-f]+)/i , lookbehind :! 0 }, keyword : /\b(?:Void|Strict|Public|Private|Property|Bool|Int|Float|String|Array|Object|Continue|Exit|Import|Extern|New|Self|Super|Try|Catch|Eachin|True|False|Extends|Abstract|Final|Select|Case|Default|Const|Local|Global|Field|Method|Function|Class|End|If|Then|Else|ElseIf|EndIf|While|Wend|Repeat|Until|Forever|For|To|Step|Next|Return|Module|Interface|Implements|Inline|Throw|Null)\b/i , operator : /\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i , punctuation : /[.,:;()\[\]]/ };
Prism . languages . nasm = { comment : /;.*$/m , string : /("|'|`)(\\?.)*?\1/m , label : { pattern : /(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m , lookbehind :! 0 , alias : "function" }, keyword : [ /\[?BITS (16|32|64)\]?/m ,{ pattern : /(^\s*)section\s*[a-zA-Z\.]+:?/im , lookbehind :! 0 }, /(?:extern|global)[^;\r\n]*/im , /(?:CPU|FLOAT|DEFAULT).*$/m ], register : { pattern : /\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(bp|sp|si|di)|[cdefgs]s)\b/i , alias : "variable" }, number : /(\b|-|(?=\$))(0[hx][\da-f]*\.?[\da-f]+(p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|\d*\.?\d+(\.?e[+-]?\d+)?[dt]?)\b/i , operator : /[\[\]*+\-\/%<>=&|$!]/ };
2016-04-11 15:59:32 +02:00
Prism . languages . nginx = Prism . languages . extend ( "clike" ,{ comment : { pattern : /(^|[^"{\\])#.*/ , lookbehind :! 0 }, keyword : /\b(?:CONTENT_|DOCUMENT_|GATEWAY_|HTTP_|HTTPS|if_not_empty|PATH_|QUERY_|REDIRECT_|REMOTE_|REQUEST_|SCGI|SCRIPT_|SERVER_|http|server|events|location|include|accept_mutex|accept_mutex_delay|access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth|auth_basic|auth_basic_user_file|auth_http|auth_http_header|auth_http_timeout|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|debug_connection|debug_points|default_type|deny|devpoll_changes|devpoll_events|directio|directio_alignment|disable_symlinks|empty_gif|env|epoll_events|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_methods|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_purge|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_redirect_errors|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|google_perftools_profiles|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|imap_capabilities|imap_client_buffer|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|kqueue_changes|kqueue_events|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|lock_file|log_format|log_format_combined|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|multi_accept|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|pop3_auth|pop3_capabilities|port_in_redirect|post_action|postpone_output|protocol|proxy|proxy_buffer|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_methods|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_headers_hash_bucket_size|proxy_headers_hash_max_size|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_method|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_error_message|proxy_pass_header|proxy_pass_request_body|proxy_pass_request_headers|proxy_read_timeout|proxy_redirect|proxy_redirect_errors|proxy_send_lowat|proxy_send_timeout|proxy_set_body|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_fi
2017-02-20 15:30:47 +01:00
Prism . languages . nim = { comment : /#.*/ , string : { pattern : /(?:(?:\b(?!\d)(?:\w|\\x[8-9a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")|'(?:\\(?:\d+|x[\da-fA-F]{2}|.)|[^'])')/ , greedy :! 0 }, number : /\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/ , keyword : /\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/ , "function" : { pattern : /(?:(?!\d)(?:\w|\\x[8-9a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/ , inside : { operator : /\*$/ }}, ignore : { pattern : /`[^`\r\n]+`/ , inside : { punctuation : /`/ }}, operator : { pattern : /(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|of|or|in|is|isnot|mod|not|notin|shl|shr|xor)\b)/m , lookbehind :! 0 }, punctuation : /[({\[]\.|\.[)}\]]|[`(){}\[\],:]/ };
Prism . languages . nix = { comment : /\/\*[\s\S]*?\*\/|#.*/ , string : { pattern : /"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/ , greedy :! 0 , inside : { interpolation : { pattern : /(^|(?:^|(?!'').)[^\\])\$\{(?:[^}]|\{[^}]*\})*}/ , lookbehind :! 0 , inside : { antiquotation : { pattern : /^\$(?=\{)/ , alias : "variable" }}}}}, url : [ /\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/ ,{ pattern : /([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/ , lookbehind :! 0 }], antiquotation : { pattern : /\$(?=\{)/ , alias : "variable" }, number : /\b\d+\b/ , keyword : /\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/ , "function" : /\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:url|Tarball)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/ , "boolean" : /\b(?:true|false)\b/ , operator : /[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/ , punctuation : /[{}()[\].,:;]/ }, Prism . languages . nix . string . inside . interpolation . inside . rest = Prism . util . clone ( Prism . languages . nix );
Prism . languages . nsis = { comment : { pattern : /(^|[^\\])(\/\*[\w\W]*?\*\/|[#;].*)/ , lookbehind :! 0 }, string : { pattern : /("|')(\\?.)*?\1/ , greedy :! 0 }, keyword : { pattern : /(^\s*)(Abort|Add(BrandingImage|Size)|AdvSplash|Allow(RootDirInstall|SkipFiles)|AutoCloseWindow|Banner|BG(Font|Gradient|Image)|BrandingText|BringToFront|Call(InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|Create(Directory|Font|ShortCut)|Delete(INISec|INIStr|RegKey|RegValue)?|Detail(Print|sButtonText)|Dialer|Dir(Text|Var|Verify)|EnableWindow|Enum(RegKey|RegValue)|Exch|Exec(Shell|Wait)?|ExpandEnvStrings|File(BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|WriteUTF16LE|Seek|Write|WriteByte|WriteWord)?|Find(Close|First|Next|Window)|FlushINI|Get(CurInstType|CurrentAddress|DlgItem|DLLVersion(Local)?|ErrorLevel|FileTime(Local)?|FullPathName|Function(Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|Install(ButtonText|Colors|Dir(RegKey)?)|InstProgressFlags|Inst(Type(GetText|SetText)?)|Int(CmpU?|Fmt|Op)|IsWindow|Lang(DLL|String)|License(BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(Set|Text)|Manifest(DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|Name|Nop|ns(Dialogs|Exec)|NSISdl|OutFile|Page(Callbacks)?|Pop|Push|Quit|Read(EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|Section(End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(AutoClose|BrandingImage|Compress|Compressor(DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(InstDetails|UninstDetails|Window)|Silent(Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(CmpS?|Cpy|Len)|SubCaption|System|Unicode|Uninstall(ButtonText|Caption|Icon|SubCaption|Text)|UninstPage|UnRegDLL|UserInfo|Var|VI(AddVersionKey|FileVersion|ProductVersion)|VPatch|WindowIcon|Write(INIStr|RegBin|RegDWORD|RegExpandStr|RegStr|Uninstaller)|XPStyle)\b/m , lookbehind :! 0 }, property : /\b(admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user|ARCHIVE|FILE_(ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(CR|CU|DD|LM|PD|U)|HKEY_(CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)\b/ , constant : /\${[\w\.:-]+}|\$\([\w\.:-]+\)/i , variable : /\$\w+/i , number : /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/ , operator : /--?|\+\+?|<=?|>=?|==?=?|&&?|\|?\||[?*\/~^%]/ , punctuation : /[{}[\];(),.:]/ , important : { pattern : /(^\s*)!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)\b/im , lookbehind :! 0 }};
2016-04-11 15:59:32 +02:00
Prism . languages . objectivec = Prism . languages . extend ( "c" ,{ keyword : /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/ , string : /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/ , operator : /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ });
2017-02-20 15:30:47 +01:00
Prism . languages . ocaml = { comment : /\(\*[\s\S]*?\*\)/ , string : [{ pattern : /"(?:\\.|[^\\\r\n"])*"/ , greedy :! 0 },{ pattern : /(['`])(?:\\(?:\d+|x[\da-f]+|.)|(?!\1)[^\\\r\n])\1/i , greedy :! 0 }], number : /\b-?(?:0x[\da-f][\da-f_]+|(?:0[bo])?\d[\d_]*\.?[\d_]*(?:e[+-]?[\d_]+)?)/i , type : { pattern : /\B['`][a-z\d_]*/i , alias : "variable" }, directive : { pattern : /\B#[a-z\d_]+/i , alias : "function" }, keyword : /\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|object|of|open|prefix|private|rec|then|sig|struct|to|try|type|val|value|virtual|where|while|with)\b/ , "boolean" : /\b(?:false|true)\b/ , operator : /:=|[=<>@^|&+\-*\/$%!?~][!$%&\*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lxor|lsl|lsr|mod|nor|or)\b/ , punctuation : /[(){}\[\]|_.,:;]/ };
Prism . languages . oz = { comment : /\/\*[\s\S]*?\*\/|%.*/ , string : { pattern : /"(?:[^"\\]|\\[\s\S])*"/ , greedy :! 0 }, atom : { pattern : /'(?:[^'\\]|\\.)*'/ , greedy :! 0 , alias : "builtin" }, keyword : /[$_]|\[\]|\b(?:at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/ , "function" : [ /[a-z][A-Za-z\d]*(?=\()/ ,{ pattern : /(\{)[A-Z][A-Za-z\d]*/ , lookbehind :! 0 }], number : /\b(?:0[bx][\da-f]+|\d+\.?\d*(?:e~?\d+)?\b)|&(?:[^\\]|\\(?:\d{3}|.))/i , variable : /\b[A-Z][A-Za-z\d]*|`(?:[^`\\]|\\.)+`/ , "attr-name" : /\w+(?=:)/ , operator : /:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/ , punctuation : /[\[\](){}.:;?]/ };
Prism . languages . parigp = { comment : /\/\*[\s\S]*?\*\/|\\\\.*/ , string : { pattern : /"(?:[^"\\]|\\.)*"/ , greedy :! 0 }, keyword : function (){ var r = [ "breakpoint" , "break" , "dbg_down" , "dbg_err" , "dbg_up" , "dbg_x" , "forcomposite" , "fordiv" , "forell" , "forpart" , "forprime" , "forstep" , "forsubgroup" , "forvec" , "for" , "iferr" , "if" , "local" , "my" , "next" , "return" , "until" , "while" ]; return r = r . map ( function ( r ){ return r . split ( "" ). join ( " *" )}). join ( "|" ), RegExp ( "\\b(?:" + r + ")\\b" )}(), "function" : /\w[\w ]*?(?= *\()/ , number : { pattern : /((?:\. *\. *)?)(?:\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *[+-]? *\d(?: *\d)*)?/i , lookbehind :! 0 }, operator : /\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?:(?: *<)?(?: *=)?| *>)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/ , punctuation : /[\[\]{}().,:;|]/ };
Prism . languages . parser = Prism . languages . extend ( "markup" ,{ keyword : { pattern : /(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/ , lookbehind :! 0 }, variable : { pattern : /(^|[^^])\B\$(?:\w+|(?=[.\{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/ , lookbehind :! 0 , inside : { punctuation : /\.|:+/ }}, "function" : { pattern : /(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/ , lookbehind :! 0 , inside : { keyword : { pattern : /(^@)(?:GET_|SET_)/ , lookbehind :! 0 }, punctuation : /\.|:+/ }}, escape : { pattern : /\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i , alias : "builtin" }, punctuation : /[\[\](){};]/ }), Prism . languages . insertBefore ( "parser" , "keyword" ,{ "parser-comment" : { pattern : /(\s)#.*/ , lookbehind :! 0 , alias : "comment" }, expression : { pattern : /(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/ , greedy :! 0 , lookbehind :! 0 , inside : { string : { pattern : /(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/ , lookbehind :! 0 }, keyword : Prism . languages . parser . keyword , variable : Prism . languages . parser . variable , "function" : Prism . languages . parser . function , "boolean" : /\b(?:true|false)\b/ , number : /\b(?:0x[a-f\d]+|\d+\.?\d*(?:e[+-]?\d+)?)\b/i , escape : Prism . languages . parser . escape , operator : /[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/ , punctuation : Prism . languages . parser . punctuation }}}), Prism . languages . insertBefore ( "inside" , "punctuation" ,{ expression : Prism . languages . parser . expression , keyword : Prism . languages . parser . keyword , variable : Prism . languages . parser . variable , "function" : Prism . languages . parser . function , escape : Prism . languages . parser . escape , "parser-punctuation" : { pattern : Prism . languages . parser . punctuation , alias : "punctuation" }}, Prism . languages . parser . tag . inside [ "attr-value" ]);
Prism . languages . pascal = { comment : [ /\(\*[\s\S]+?\*\)/ , /\{[\s\S]+?\}/ , /\/\/.*/ ], string : { pattern : /(?:'(?:''|[^'\r\n])*'|#[&$%]?[a-f\d]+)+|\^[a-z]/i , greedy :! 0 }, keyword : [{ pattern : /(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i , lookbehind :! 0 },{ pattern : /(^|[^&])\b(?:dispose|exit|false|new|true)\b/i , lookbehind :! 0 },{ pattern : /(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i , lookbehind :! 0 },{ pattern : /(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i , lookbehind :! 0 }], number : [ /[+-]?(?:[&%]\d+|\$[a-f\d]+)/i , /([+-]|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?/i ], operator : [ /\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/i ,{ pattern : /(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/ , lookbehind :! 0 }], punctuation : /\(\.|\.\)|[()\[\]:;,.]/ };
Prism . languages . perl = { comment : [{ pattern : /(^\s*)=\w+[\s\S]*?=cut.*/m , lookbehind :! 0 },{ pattern : /(^|[^\\$])#.*/ , lookbehind :! 0 }], string : [{ pattern : /\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/ , greedy :! 0 },{ pattern : /\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\1/ , greedy :! 0 },{ pattern : /\b(?:q|qq|qx|qw)\s*\((?:[^()\\]|\\[\s\S])*\)/ , greedy :! 0 },{ pattern : /\b(?:q|qq|qx|qw)\s*\{(?:[^{}\\]|\\[\s\S])*\}/ , greedy :! 0 },{ pattern : /\b(?:q|qq|qx|qw)\s*\[(?:[^[\]\\]|\\[\s\S])*\]/ , greedy :! 0 },{ pattern : /\b(?:q|qq|qx|qw)\s*<(?:[^<>\\]|\\[\s\S])*>/ , greedy :! 0 },{ pattern : /("|`)(?:[^\\]|\\[\s\S])*?\1/ , greedy :! 0 },{ pattern : /'(?:[^'\\\r\n]|\\.)*'/ , greedy :! 0 }], regex : [{ pattern : /\b(?:m|qr)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[msixpodualngc]*/ , greedy :! 0 },{ pattern : /\b(?:m|qr)\s+([a-zA-Z0-9])(?:[^\\]|\\.)*?\1[msixpodualngc]*/ , greedy :! 0 },{ pattern : /\b(?:m|qr)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngc]*/ , greedy :! 0 },{ pattern : /\b(?:m|qr)\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngc]*/ , greedy :! 0 },{ pattern : /\b(?:m|qr)\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngc]*/ , greedy :! 0 },{ pattern : /\b(?:m|qr)\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngc]*/ , greedy :! 0 },{ pattern : /(^|[^-]\b)(?:s|tr|y)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/ , lookbehind :! 0 , greedy :! 0 },{ pattern : /(^|[^-]\b)(?:s|tr|y)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/ , lookbehind :! 0 , greedy :! 0 },{ pattern : /(^|[^-]\b)(?:s|tr|y)\s*\((?:[^()\\]|\\[\s\S])*\)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngcer]*/ , lookbehind :! 0 , greedy :! 0 },{ pattern : /(^|[^-]\b)(?:s|tr|y)\s*\{(?:[^{}\\]|\\[\s\S])*\}\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngcer]*/ , lookbehind :! 0 , greedy :! 0 },{ pattern : /(^|[^-]\b)(?:s|tr|y)\s*\[(?:[^[\]\\]|\\[\s\S])*\]\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngcer]*/ , lookbehind :! 0 , greedy :! 0 },{ pattern : /(^|[^-]\b)(?:s|tr|y)\s*<(?:[^<>\\]|\\[\s\S])*>\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngcer]*/ , lookbehind :! 0 , greedy :! 0 },{ pattern : /\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\b))/ , greedy :! 0 }], variable : [ /[&*$@%]\{\^[A-Z]+\}/ , /[&*$@%]\^[A-Z_]/ , /[&*$@%]#?(?=\{)/ , /[&*$@%]#?((::)*'?(?!\d)[\w$]+)+(::)*/i , /[&*$@%]\d+/ , /(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/ ], filehandle : { pattern : /<(?![<=])\S*>|\b_\b/ , alias : "symbol" }, vstring : { pattern : /v\d+(\.\d+)*|\d+(\.\d+){2,}/ , alias : "string" }, "function" : { pattern : /sub [a-z0-9_]+/i , inside : { keyword : /sub/ }}, keyword : /\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|say|state|sub|switch|undef|unless|until|use|when|while)\b/ , number : /\b-?(0x[\dA-Fa-f](_?[\dA-Fa-f])*|0b[01](_?[01])*|(\d(_?\d)*)?\.?\d(_?\d)*([Ee][+-]?\d+)?)\b/ , operator : /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\b/ , punctuation : /[{}[\];(),:]/ };
Prism . languages . php = Prism . languages . extend ( "clike" ,{ keyword : /\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i , constant : /\b[A-Z0-9_]{2,}\b/ , comment : { pattern : /(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/ , lookbehind :! 0 , greedy :! 0 }}), Prism . languages . insertBefore ( "php" , "class-name" ,{ "shell-comment" : { pattern : /(^|[^\\])#.*/ , lookbehind :! 0 , alias : "comment" }}), Prism . languages . insertBefore ( "php" , "keyword" ,{ delimiter : /\?>|<\?(?:php)?/i , variable : /\$\w+\b/i , "package" : { pattern : /(\\|namespace\s+|use\s+)[\w\\]+/ , lookbehind :! 0 , inside : { punctuation : /\\/ }}}), Prism . languages . insertBefore ( "php" , "operator" ,{ property : { pattern : /(->)[\w]+/ , lookbehind :! 0 }}), Prism . languages . markup && ( Prism . hooks . add ( "before-highlight" , function ( e ){ "php" === e . language && ( e . tokenStack = [], e . backupCode = e . code , e . code = e . code . replace ( /(?:<\?php|<\?)[\w\W]*?(?:\?>)/gi , function ( a ){ return e . tokenStack . push ( a ), "{{{PHP" + e . tokenStack . length + "}}}" }))}), Prism . hooks . add ( "before-insert" , function ( e ){ "php" === e . language && ( e . code = e . backupCode , delete e . backupCode )}), Prism . hooks . add ( "after-highlight" , function ( e ){ if ( "php" === e . language ){ for ( var a , n = 0 ; a = e . tokenStack [ n ]; n ++ ) e . highlightedCode = e . highlightedCode . replace ( "{{{PHP" + ( n + 1 ) + "}}}" , Prism . highlight ( a , e . grammar , "php" ). replace ( /\$/g , "$$$$" )); e . element . innerHTML = e . highlightedCode }}), Prism . hooks . add ( "wrap" , function ( e ){ "php" === e . language && "markup" === e . type && ( e . content = e . content . replace ( /(\{\{\{PHP[0-9]+\}\}\})/g , '<span class="token php">$1</span>' ))}), Prism . languages . insertBefore ( "php" , "comment" ,{ markup : { pattern : /<[^?]\/?(.*?)>/ , inside : Prism . languages . markup }, php : /\{\{\{PHP[0-9]+\}\}\}/ }));
2016-04-11 15:59:32 +02:00
Prism . languages . insertBefore ( "php" , "variable" ,{ "this" : /\$this\b/ , global : /\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)/ , scope : { pattern : /\b[\w\\]+::/ , inside : { keyword : /(static|self|parent)/ , punctuation : /(::|\\)/ }}});
2017-02-20 15:30:47 +01:00
Prism . languages . powershell = { comment : [{ pattern : /(^|[^`])<#[\w\W]*?#>/ , lookbehind :! 0 },{ pattern : /(^|[^`])#.*/ , lookbehind :! 0 }], string : [{ pattern : /"(`?[\w\W])*?"/ , greedy :! 0 , inside : { "function" : { pattern : /[^`]\$\(.*?\)/ , inside : {}}}},{ pattern : /'([^']|'')*'/ , greedy :! 0 }], namespace : /\[[a-z][\w\W]*?\]/i , "boolean" : /\$(true|false)\b/i , variable : /\$\w+\b/i , "function" : [ /\b(Add-(Computer|Content|History|Member|PSSnapin|Type)|Checkpoint-Computer|Clear-(Content|EventLog|History|Item|ItemProperty|Variable)|Compare-Object|Complete-Transaction|Connect-PSSession|ConvertFrom-(Csv|Json|StringData)|Convert-Path|ConvertTo-(Csv|Html|Json|Xml)|Copy-(Item|ItemProperty)|Debug-Process|Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Disconnect-PSSession|Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Enter-PSSession|Exit-PSSession|Export-(Alias|Clixml|Console|Csv|FormatData|ModuleMember|PSSession)|ForEach-Object|Format-(Custom|List|Table|Wide)|Get-(Alias|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Culture|Date|Event|EventLog|EventSubscriber|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|WmiObject)|Group-Object|Import-(Alias|Clixml|Csv|LocalizedData|Module|PSSession)|Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)|Join-Path|Limit-EventLog|Measure-(Command|Object)|Move-(Item|ItemProperty)|New-(Alias|Event|EventLog|Item|ItemProperty|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy)|Out-(Default|File|GridView|Host|Null|Printer|String)|Pop-Location|Push-Location|Read-Host|Receive-(Job|PSSession)|Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)|Remove-(Computer|Event|EventLog|Item|ItemProperty|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)|Rename-(Computer|Item|ItemProperty)|Reset-ComputerMachinePassword|Resolve-Path|Restart-(Computer|Service)|Restore-Computer|Resume-(Job|Service)|Save-Help|Select-(Object|String|Xml)|Send-MailMessage|Set-(Alias|Content|Date|Item|ItemProperty|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)|Show-(Command|ControlPanelItem|EventLog)|Sort-Object|Split-Path|Start-(Job|Process|Service|Sleep|Transaction)|Stop-(Computer|Job|Process|Service)|Suspend-(Job|Service)|Tee-Object|Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)|Trace-Command|Unblock-File|Undo-Transaction|Unregister-(Event|PSSessionConfiguration)|Update-(FormatData|Help|List|TypeData)|Use-Transaction|Wait-(Event|Job|Process)|Where-Object|Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning))\b/i , /\b(ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i ], keyword : /\b(Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i , operator : { pattern : /(\W?)(!|-(eq|ne|gt|ge|lt|le|sh[lr]|not|b?(and|x?or)|(Not)?(Like|Match|Contains|In)|Replace|Join|is(Not)?|as)\b|-[-=]?|\+[+=]?|[*\/%]=?)/i , lookbehind :! 0 }, punctuation : /[|{}[\];(),.]/ }, Prism . languages . powershell . string [ 0 ]. inside . boolean = Prism . languages . powershell . boolean , Prism . languages . powershell . string [ 0 ]. inside . variable = Prism . languages . powershell . variable , Prism . languages . powershell . string [ 0 ]. inside . function . inside = Prism . util . clone ( Pr
2016-04-11 15:59:32 +02:00
Prism . languages . processing = Prism . languages . extend ( "clike" ,{ keyword : /\b(?:break|catch|case|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/ , operator : /<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/ }), Prism . languages . insertBefore ( "processing" , "number" ,{ constant : /\b(?!XML\b)[A-Z][A-Z\d_]+\b/ , type : { pattern : /\b(?:boolean|byte|char|color|double|float|int|XML|[A-Z][A-Za-z\d_]*)\b/ , alias : "variable" }}), Prism . languages . processing [ "function" ]. pattern = /[a-z0-9_]+(?=\s*\()/i , Prism . languages . processing [ "class-name" ]. alias = "variable" ;
2017-02-20 15:30:47 +01:00
Prism . languages . prolog = { comment : [ /%.+/ , /\/\*[\s\S]*?\*\// ], string : { pattern : /(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 }, builtin : /\b(?:fx|fy|xf[xy]?|yfx?)\b/ , variable : /\b[A-Z_]\w*/ , "function" : /\b[a-z]\w*(?:(?=\()|\/\d+)/ , number : /\b\d+\.?\d*/ , operator : /[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/ , punctuation : /[(){}\[\],]/ };
Prism . languages . properties = { comment : /^[ \t]*[#!].*$/m , "attr-value" : { pattern : /(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?: *[=:] *| ))(?:\\(?:\r\n|[\s\S])|.)+/m , lookbehind :! 0 }, "attr-name" : /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?= *[ =:]| )/m , punctuation : /[=:]/ };
2016-06-09 17:01:42 +02:00
Prism . languages . protobuf = Prism . languages . extend ( "clike" ,{ keyword : /\b(package|import|message|enum)\b/ , builtin : /\b(required|repeated|optional|reserved)\b/ , primitive : { pattern : /\b(double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/ , alias : "symbol" }});
2017-02-20 15:30:47 +01:00
! function ( e ){ e . languages . puppet = { heredoc : [{ pattern : /(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r))*?[ \t]*\|?[ \t]*-?[ \t]*\2/ , lookbehind :! 0 , alias : "string" , inside : { punctuation : /(?=\S).*\S(?= *$)/ }},{ pattern : /(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r))*?[ \t]*\|?[ \t]*-?[ \t]*\2/ , lookbehind :! 0 , alias : "string" , inside : { punctuation : /(?=\S).*\S(?= *$)/ }},{ pattern : /@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/ , alias : "string" , inside : { punctuation : { pattern : /(\().+?(?=\))/ , lookbehind :! 0 }}}], "multiline-comment" : { pattern : /(^|[^\\])\/\*[\s\S]*?\*\// , lookbehind :! 0 , alias : "comment" }, regex : { pattern : /((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/ , lookbehind :! 0 , inside : { "extended-regex" : { pattern : /^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/ , inside : { comment : /#.*/ }}}}, comment : { pattern : /(^|[^\\])#.*/ , lookbehind :! 0 }, string : { pattern : /(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|(?!\1)[^\\]|\\[\s\S])*\1/ , inside : { "double-quoted" : { pattern : /^"[\s\S]*"$/ , inside : {}}}}, variable : { pattern : /\$(?:::)?\w+(?:::\w+)*/ , inside : { punctuation : /::/ }}, "attr-name" : /(?:\w+|\*)(?=\s*=>)/ , "function" : [{ pattern : /(\.)(?!\d)\w+/ , lookbehind :! 0 }, /\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/ ], number : /\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i , "boolean" : /\b(?:true|false)\b/ , keyword : /\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/ , datatype : { pattern : /\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/ , alias : "symbol" }, operator : /=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/ , punctuation : /[\[\]{}().,;]|:+/ }; var n = [{ pattern : /(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/ , lookbehind :! 0 , inside : { "short-variable" : { pattern : /(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/ , lookbehind :! 0 , alias : "variable" , inside : { punctuation : /::/ }}, delimiter : { pattern : /^\$/ , alias : "variable" }, rest : e . util . clone ( e . languages . puppet )}},{ pattern : /(^|[^\\])\$(?:::)?\w+(?:::\w+)*/ , lookbehind :! 0 , alias : "variable" , inside : { punctuation : /::/ }}]; e . languages . puppet . heredoc [ 0 ]. inside . interpolation = n , e . languages . puppet . string . inside [ "double-quoted" ]. inside . interpolation = n }( Prism );
! function ( e ){ e . languages . pure = { "inline-lang" : { pattern : /%<[\s\S]+?%>/ , inside : { lang : { pattern : /(^%< *)-\*-.+?-\*-/ , lookbehind :! 0 , alias : "comment" }, delimiter : { pattern : /^%<.*|%>$/ , alias : "punctuation" }}}, comment : [{ pattern : /(^|[^\\])\/\*[\w\W]*?\*\// , greedy :! 0 , lookbehind :! 0 },{ pattern : /(^|[^\\:])\/\/.*/ , lookbehind :! 0 }, /#!.+/ ], string : { pattern : /"(?:\\.|[^"\\\r\n])*"/ , greedy :! 0 }, number : { pattern : /((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d)?|\B\.\d)\d*(?:e[+-]?\d+)?L?)/i , lookbehind :! 0 }, keyword : /\b(?:ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|NULL|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/ , "function" : /\b(?:abs|add_(?:(?:fundef|interface|macdef|typedef)(?:_at)?|addr|constdef|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_(?:matrix|pointer)|byte_c?string(?:_pointer)?|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|short|sentry|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/ , special : { pattern : /\b__[a-z]+__\b/i , alias : "builtin" }, operator : /(?=\b_|[^_])[!"#$%&'*+,\-.\/:<=>?@\\^_`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]+|\b(?:and|div|mod|not|or)\b/ , punctuation : /[(){}\[\];,|]/ }; var t = [ "c" ,{ lang : "c++" , alias : "cpp" }, "fortran" , "ats" , "dsp" ], a = "%< *-\\*- *{lang}\\d* *-\\*-[\\s\\S]+?%>" ; t . forEach ( function ( t ){ var r = t ; if ( "string" != typeof t && ( r = t . alias , t = t . lang ), e . languages [ r ]){ var i = {}; i [ "inline-lang-" + r ] = { pattern : RegExp ( a . replace ( "{lang}" , t . replace ( /([.+*?\/\\(){}\[\]])/g , "\\$1" )), "i" ), inside : e . util . clone ( e . languages . pure [ "inline-lang" ]. inside )}, i [ "inline-lang-" + r ]. inside . rest = e . util . clone ( e . languages [ r ]), e . languages . insertBefore ( "pure" , "inline-lang" , i )}}), e . languages . c && ( e . languages . pure [ "inline-lang" ]. inside . rest = e . util . clone ( e . languages . c ))}( Prism );
2016-06-09 17:01:42 +02:00
Prism . languages . python = { "triple-quoted-string" : { pattern : /"""[\s\S]+?"""|'''[\s\S]+?'''/ , alias : "string" }, comment : { pattern : /(^|[^\\])#.*/ , lookbehind :! 0 }, string : { pattern : /("|')(?:\\\\|\\?[^\\\r\n])*?\1/ , greedy :! 0 }, "function" : { pattern : /((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g , lookbehind :! 0 }, "class-name" : { pattern : /(\bclass\s+)[a-z0-9_]+/i , lookbehind :! 0 }, keyword : /\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/ , "boolean" : /\b(?:True|False)\b/ , number : /\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i , operator : /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/ , punctuation : /[{}[\];(),.:]/ };
2017-02-20 15:30:47 +01:00
Prism . languages . q = { string : /"(?:\\.|[^"\\\r\n])*"/ , comment : [{ pattern : /([\t )\]}])\/.*/ , lookbehind :! 0 },{ pattern : /(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/ , lookbehind :! 0 }, /^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m , /^#!.+/m ], symbol : /`(?::\S+|[\w.]*)/ , datetime : { pattern : /0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/ , alias : "number" }, number : /\b-?(?![01]:)(?:0[wn]|0W[hj]?|0N[hje]?|0x[\da-fA-F]+|\d+\.?\d*(?:e[+-]?\d+)?[hjfeb]?)/ , keyword : /\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/ , adverb : { pattern : /['\/\\]:?|\beach\b/ , alias : "function" }, verb : { pattern : /(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?_~=|$&#@^]):?/ , alias : "operator" }, punctuation : /[(){}\[\];.]/ };
Prism . languages . qore = Prism . languages . extend ( "clike" ,{ comment : { pattern : /(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:\/\/|#).*)/ , lookbehind :! 0 }, string : { pattern : /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\])*\1/ , greedy :! 0 }, variable : /\$(?!\d)\w+\b/ , keyword : /\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:int|float|number|bool|string|date|list)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/ , number : /\b(?:0b[01]+|0x[\da-f]*\.?[\da-fp\-]+|\d*\.?\d+e?\d*[df]|\d*\.?\d+)\b/i , "boolean" : /\b(?:true|false)\b/i , operator : { pattern : /(^|[^\.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/ , lookbehind :! 0 }, "function" : /\$?\b(?!\d)\w+(?=\()/ });
Prism . languages . r = { comment : /#.*/ , string : { pattern : /(['"])(?:\\?.)*?\1/ , greedy :! 0 }, "percent-operator" : { pattern : /%[^%\s]*%/ , alias : "operator" }, "boolean" : /\b(?:TRUE|FALSE)\b/ , ellipsis : /\.\.(?:\.|\d+)/ , number : [ /\b(?:NaN|Inf)\b/ , /\b(?:0x[\dA-Fa-f]+(?:\.\d*)?|\d*\.?\d+)(?:[EePp][+-]?\d+)?[iL]?\b/ ], keyword : /\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/ , operator : /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/ , punctuation : /[(){}\[\],;]/ };
! function ( a ){ var e = a . util . clone ( a . languages . javascript ); a . languages . jsx = a . languages . extend ( "markup" , e ), a . languages . jsx . tag . pattern = /<\/?[\w\.:-]+\s*(?:\s+(?:[\w\.:-]+(?:=(?:("|')(\\?[\w\W])*?\1|[^\s'">=]+|(\{[\w\W]*?\})))?|\{\.{3}\w+\})\s*)*\/?>/i , a . languages . jsx . tag . inside [ "attr-value" ]. pattern = /=[^\{](?:('|")[\w\W]*?(\1)|[^\s>]+)/i , a . languages . insertBefore ( "inside" , "attr-name" ,{ spread : { pattern : /\{\.{3}\w+\}/ , inside : { punctuation : /\{|\}|\./ , "attr-value" : /\w+/ }}}, a . languages . jsx . tag ); var s = a . util . clone ( a . languages . jsx ); delete s . punctuation , s = a . languages . insertBefore ( "jsx" , "operator" ,{ punctuation : /=(?={)|[{}[\];(),.:]/ },{ jsx : s }), a . languages . insertBefore ( "inside" , "attr-value" ,{ script : { pattern : /=(\{(?:\{[^}]*\}|[^}])+\})/i , inside : s , alias : "language-javascript" }}, a . languages . jsx . tag )}( Prism );
Prism . languages . reason = Prism . languages . extend ( "clike" ,{ comment : { pattern : /(^|[^\\])\/\*[\w\W]*?\*\// , lookbehind :! 0 }, string : { pattern : /"(\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/ , greedy :! 0 }, "class-name" : /\b[A-Z]\w*/ , keyword : /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/ , operator : /\.{3}|:[:=]|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:mod|land|lor|lxor|lsl|lsr|asr)\b/ }), Prism . languages . insertBefore ( "reason" , "class-name" ,{ character : { pattern : /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'])'/ , alias : "string" }, constructor : { pattern : /\b[A-Z]\w*\b(?!\s*\.)/ , alias : "variable" }, label : { pattern : /\b[a-z]\w*(?=::)/ , alias : "symbol" }}), delete Prism . languages . reason . function ;
Prism . languages . rest = { table : [{ pattern : /(\s*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1(?:[+|].+)+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/ , lookbehind :! 0 , inside : { punctuation : /\||(?:\+[=-]+)+\+/ }},{ pattern : /(\s*)(?:=+ +)+=+((?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1(?:=+ +)+=+(?=(?:\r?\n|\r){2}|\s*$)/ , lookbehind :! 0 , inside : { punctuation : /[=-]+/ }}], "substitution-def" : { pattern : /(^\s*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m , lookbehind :! 0 , inside : { substitution : { pattern : /^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/ , alias : "attr-value" , inside : { punctuation : /^\||\|$/ }}, directive : { pattern : /( +)[^:]+::/ , lookbehind :! 0 , alias : "function" , inside : { punctuation : /::$/ }}}}, "link-target" : [{ pattern : /(^\s*\.\. )\[[^\]]+\]/m , lookbehind :! 0 , alias : "string" , inside : { punctuation : /^\[|\]$/ }},{ pattern : /(^\s*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m , lookbehind :! 0 , alias : "string" , inside : { punctuation : /^_|:$/ }}], directive : { pattern : /(^\s*\.\. )[^:]+::/m , lookbehind :! 0 , alias : "function" , inside : { punctuation : /::$/ }}, comment : { pattern : /(^\s*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m , lookbehind :! 0 }, title : [{ pattern : /^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m , inside : { punctuation : /^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/ , important : /.+/ }},{ pattern : /(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/ , lookbehind :! 0 , inside : { punctuation : /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/ , important : /.+/ }}], hr : { pattern : /((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/ , lookbehind :! 0 , alias : "punctuation" }, field : { pattern : /(^\s*):[^:\r\n]+:(?= )/m , lookbehind :! 0 , alias : "attr-name" }, "command-line-option" : { pattern : /(^\s*)(?:[+-][a-z\d]|(?:\-\-|\/)[a-z\d-]+)(?:[ =](?:[a-z][a-z\d_-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:\-\-|\/)[a-z\d-]+)(?:[ =](?:[a-z][a-z\d_-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im , lookbehind :! 0 , alias : "symbol" }, "literal-block" : { pattern : /::(?:\r?\n|\r){2}([ \t]+).+(?:(?:\r?\n|\r)\1.+)*/ , inside : { "literal-block-punctuation" : { pattern : /^::/ , alias : "punctuation" }}}, "quoted-literal-block" : { pattern : /::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/ , inside : { "literal-block-punctuation" : { pattern : /^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m , alias : "punctuation" }}}, "list-bullet" : { pattern : /(^\s*)(?:[*+\-•‣â� ƒ]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im , lookbehind :! 0 , alias : "punctuation" }, "doctest-block" : { pattern : /(^\s*)>>> .+(?:(?:\r?\n|\r).+)*/m , lookbehind :! 0 , inside : { punctuation : /^>>>/ }}, inline : [{ pattern : /(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s).*?[^\s]\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m , lookbehind :! 0 , inside : { bold : { pattern : /(^\*\*).+(?=\*\*$)/ , lookbehind :! 0 }, italic : { pattern : /(^\*).+(?=\*$)/ , lookbehind :! 0 }, "inline-literal" : { pattern : /(^``).+(?=``$)/ , lookbehind :! 0 , alias : "symbol" }, role : { pattern : /^:[^:]+:|:[^:]+:$/ , alias : "function" , inside : { punctuation : /^:|:$/ }}, "interpreted-text" : { pattern : /(^`).+(?=`$)/ , lookbehind :! 0 , alias : "attr-value" }, substitution : { pattern : /(^\|).+(?=\|$)/ , lookbehind :! 0 , alias : "attr-value" }, punctuation : /\*\*?|``?|\|/ }}], link : [{ pattern : /\[[^\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/ , alias : "string" , inside : { punctuation : /^\[|\]_$/ }},{ pattern : /(?:\b[a-z\d](?:[_.:+]?[a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i , alias : "string" , inside : { punctuation : /^_?`|`$|`?_?_$/ }}], punctuation : { pattern : /(^\s*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m , lookbehind :! 0 }};
Prism . languages . rip = { comment : /#.*/ , keyword : /(?:=>|->)|\b(?:class|if|else|switch|case|return|exit|try|catch|finally|raise)\b/ , builtin : /@|\bSystem\b/ , "boolean" : /\b(?:true|false)\b/ , date : /\b\d{4}-\d{2}-\d{2}\b/ , time : /\b\d{2}:\d{2}:\d{2}\b/ , datetime : /\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/ , character : /\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/ , regex : { pattern : /(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/(?=\s*($|[\r\n,.;})]))/ , lookbehind :! 0 , greedy :! 0 }, symbol : /:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/ , string : { pattern : /("|')(\\?.)*?\1/ , greedy :! 0 }, number : /[+-]?(?:(?:\d+\.\d+)|(?:\d+))/ , punctuation : /(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/ , reference : /[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/ };
2016-04-11 15:59:32 +02:00
Prism . languages . roboconf = { comment : /#.*/ , keyword : { pattern : /(^|\s)(?:(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{)|(?:external|import)\b)/ , lookbehind :! 0 }, component : { pattern : /[\w-]+(?=[ \t]*\{)/ , alias : "variable" }, property : /[\w.-]+(?=[ \t]*:)/ , value : { pattern : /(=[ \t]*)[^,;]+/ , lookbehind :! 0 , alias : "attr-value" }, optional : { pattern : /\(optional\)/ , alias : "builtin" }, wildcard : { pattern : /(\.)\*/ , lookbehind :! 0 , alias : "operator" }, punctuation : /[{},.;:=]/ };
2017-02-20 15:30:47 +01:00
! function ( e ){ e . languages . crystal = e . languages . extend ( "ruby" ,{ keyword : [ /\b(?:abstract|alias|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|rescue|return|require|self|sizeof|struct|super|then|type|typeof|union|unless|until|when|while|with|yield|__DIR__|__FILE__|__LINE__)\b/ ,{ pattern : /(\.\s*)(?:is_a|responds_to)\?/ , lookbehind :! 0 }], number : /\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[0-9a-fA-F_]*[0-9a-fA-F]|(?:[0-9](?:[0-9_]*[0-9])?)(?:\.[0-9_]*[0-9])?(?:[eE][+-]?[0-9_]*[0-9])?)(?:_(?:[uif](?:8|16|32|64))?)?\b/ }); var t = e . util . clone ( e . languages . crystal ); e . languages . insertBefore ( "crystal" , "string" ,{ attribute : { pattern : /@\[.+?\]/ , alias : "attr-name" , inside : { delimiter : { pattern : /^@\[|\]$/ , alias : "tag" }, rest : t }}, expansion : [{ pattern : /\{\{.+?\}\}/ , inside : { delimiter : { pattern : /^\{\{|\}\}$/ , alias : "tag" }, rest : t }},{ pattern : /\{%.+?%\}/ , inside : { delimiter : { pattern : /^\{%|%\}$/ , alias : "tag" }, rest : t }}]})}( Prism );
Prism . languages . rust = { comment : [{ pattern : /(^|[^\\])\/\*[\w\W]*?\*\// , lookbehind :! 0 },{ pattern : /(^|[^\\:])\/\/.*/ , lookbehind :! 0 }], string : [{ pattern : /b?r(#*)"(?:\\?.)*?"\1/ , greedy :! 0 },{ pattern : /b?("|')(?:\\?.)*?\1/ , greedy :! 0 }], keyword : /\b(?:abstract|alignof|as|be|box|break|const|continue|crate|do|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|match|mod|move|mut|offsetof|once|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\b/ , attribute : { pattern : /#!?\[.+?\]/ , greedy :! 0 , alias : "attr-name" }, "function" : [ /[a-z0-9_]+(?=\s*\()/i , /[a-z0-9_]+!(?=\s*\(|\[)/i ], "macro-rules" : { pattern : /[a-z0-9_]+!/i , alias : "function" }, number : /\b-?(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(\d(_?\d)*)?\.?\d(_?\d)*([Ee][+-]?\d+)?)(?:_?(?:[iu](?:8|16|32|64)?|f32|f64))?\b/ , "closure-params" : { pattern : /\|[^|]*\|(?=\s*[{-])/ , inside : { punctuation : /[\|:,]/ , operator : /[&*]/ }}, punctuation : /[{}[\];(),:]|\.+|->/ , operator : /[-+*\/%!^=]=?|@|&[&=]?|\|[|=]?|<<?=?|>>?=?/ };
Prism . languages . sas = { datalines : { pattern : /^\s*(?:(?:data)?lines|cards);[\s\S]+?(?:\r?\n|\r);/im , alias : "string" , inside : { keyword : { pattern : /^(\s*)(?:(?:data)?lines|cards)/i , lookbehind :! 0 }, punctuation : /;/ }}, comment : [{ pattern : /(^\s*|;\s*)\*.*;/m , lookbehind :! 0 }, /\/\*[\s\S]+?\*\// ], datetime : { pattern : /'[^']+'(?:dt?|t)\b/i , alias : "number" }, string : { pattern : /(["'])(?:\1\1|(?!\1)[\s\S])*\1/ , greedy :! 0 }, keyword : /\b(?:data|else|format|if|input|proc\s\w+|quit|run|then)\b/i , number : /(?:\B-|\b)(?:[\da-f]+x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i , operator : /\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?|\b(?:eq|ne|gt|lt|ge|le|in|not)\b/i , punctuation : /[$%@.(){}\[\];,\\]/ };
! function ( e ){ e . languages . sass = e . languages . extend ( "css" ,{ comment : { pattern : /^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t]+.+)*/m , lookbehind :! 0 }}), e . languages . insertBefore ( "sass" , "atrule" ,{ "atrule-line" : { pattern : /^(?:[ \t]*)[@+=].+/m , inside : { atrule : /(?:@[\w-]+|[+=])/m }}}), delete e . languages . sass . atrule ; var a = /((\$[-_\w]+)|(#\{\$[-_\w]+\}))/i , t = [ /[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/ ,{ pattern : /(\s+)-(?=\s)/ , lookbehind :! 0 }]; e . languages . insertBefore ( "sass" , "property" ,{ "variable-line" : { pattern : /^[ \t]*\$.+/m , inside : { punctuation : /:/ , variable : a , operator : t }}, "property-line" : { pattern : /^[ \t]*(?:[^:\s]+ *:.*|:[^:\s]+.*)/m , inside : { property : [ /[^:\s]+(?=\s*:)/ ,{ pattern : /(:)[^:\s]+/ , lookbehind :! 0 }], punctuation : /:/ , variable : a , operator : t , important : e . languages . sass . important }}}), delete e . languages . sass . property , delete e . languages . sass . important , delete e . languages . sass . selector , e . languages . insertBefore ( "sass" , "punctuation" ,{ selector : { pattern : /([ \t]*)\S(?:,?[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,?[^,\r\n]+)*)*/ , lookbehind :! 0 }})}( Prism );
Prism . languages . scss = Prism . languages . extend ( "css" ,{ comment : { pattern : /(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/ , lookbehind :! 0 }, atrule : { pattern : /@[\w-]+(?:\([^()]+\)|[^(])*?(?=\s+[{;])/ , inside : { rule : /@[\w-]+/ }}, url : /(?:[-a-z]+-)*url(?=\()/i , selector : { pattern : /(?=\S)[^@;\{\}\(\)]?([^@;\{\}\(\)]|&|#\{\$[-_\w]+\})+(?=\s*\{(\}|\s|[^\}]+(:|\{)[^\}]+))/m , inside : { parent : { pattern : /&/ , alias : "important" }, placeholder : /%[-_\w]+/ , variable : /\$[-_\w]+|#\{\$[-_\w]+\}/ }}}), Prism . languages . insertBefore ( "scss" , "atrule" ,{ keyword : [ /@(?:if|else(?: if)?|for|each|while|import|extend|debug|warn|mixin|include|function|return|content)/i ,{ pattern : /( +)(?:from|through)(?= )/ , lookbehind :! 0 }]}), Prism . languages . scss . property = { pattern : /(?:[\w-]|\$[-_\w]+|#\{\$[-_\w]+\})+(?=\s*:)/i , inside : { variable : /\$[-_\w]+|#\{\$[-_\w]+\}/ }}, Prism . languages . insertBefore ( "scss" , "important" ,{ variable : /\$[-_\w]+|#\{\$[-_\w]+\}/ }), Prism . languages . insertBefore ( "scss" , "function" ,{ placeholder : { pattern : /%[-_\w]+/ , alias : "selector" }, statement : { pattern : /\B!(?:default|optional)\b/i , alias : "keyword" }, "boolean" : /\b(?:true|false)\b/ , "null" : /\bnull\b/ , operator : { pattern : /(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/ , lookbehind :! 0 }}), Prism . languages . scss . atrule . inside . rest = Prism . util . clone ( Prism . languages . scss );
2016-06-09 17:01:42 +02:00
Prism . languages . scala = Prism . languages . extend ( "java" ,{ keyword : /<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/ , string : [{ pattern : /"""[\W\w]*?"""/ , greedy :! 0 },{ pattern : /("|')(?:\\\\|\\?[^\\\r\n])*?\1/ , greedy :! 0 }], builtin : /\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/ , number : /\b(?:0x[\da-f]*\.?[\da-f]+|\d*\.?\d+e?\d*[dfl]?)\b/i , symbol : /'[^\d\s\\]\w*/ }), delete Prism . languages . scala [ "class-name" ], delete Prism . languages . scala [ "function" ];
2017-02-20 15:30:47 +01:00
Prism . languages . scheme = { comment : /;.*/ , string : { pattern : /"(?:[^"\\\r\n]|\\.)*?"|'[^('\s]*/ , greedy :! 0 }, keyword : { pattern : /(\()(?:define(?:-syntax|-library|-values)?|(?:case-)?lambda|let(?:\*|rec)?(?:-values)?|else|if|cond|begin|delay(?:-force)?|parameterize|guard|set!|(?:quasi-)?quote|syntax-rules)/ , lookbehind :! 0 }, builtin : { pattern : /(\()(?:(?:cons|car|cdr|list|call-with-current-continuation|call\/cc|append|abs|apply|eval)\b|null\?|pair\?|boolean\?|eof-object\?|char\?|procedure\?|number\?|port\?|string\?|vector\?|symbol\?|bytevector\?)/ , lookbehind :! 0 }, number : { pattern : /(\s|\))[-+]?[0-9]*\.?[0-9]+(?:\s*[-+]\s*[0-9]*\.?[0-9]+i)?\b/ , lookbehind :! 0 }, "boolean" : /#[tf]/ , operator : { pattern : /(\()(?:[-+*%\/]|[<>]=?|=>?)/ , lookbehind :! 0 }, "function" : { pattern : /(\()[^\s()]*(?=\s)/ , lookbehind :! 0 }, punctuation : /[()]/ };
Prism . languages . smalltalk = { comment : /"(?:""|[^"])+"/ , string : /'(?:''|[^'])+'/ , symbol : /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i , "block-arguments" : { pattern : /(\[\s*):[^\[|]*?\|/ , lookbehind :! 0 , inside : { variable : /:[\da-z]+/i , punctuation : /\|/ }}, "temporary-variables" : { pattern : /\|[^|]+\|/ , inside : { variable : /[\da-z]+/i , punctuation : /\|/ }}, keyword : /\b(?:nil|true|false|self|super|new)\b/ , character : { pattern : /\$./ , alias : "string" }, number : [ /\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/ , /(?:\B-|\b)\d+(?:\.\d+)?(?:e-?\d+)?/ ], operator : /[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/ , punctuation : /[.;:?\[\](){}]/ };
! function ( e ){ var t = /\{\*[\w\W]+?\*\}|\{[\w\W]+?\}/g , a = "{literal}" , n = "{/literal}" , o =! 1 ; e . languages . smarty = e . languages . extend ( "markup" ,{ smarty : { pattern : t , inside : { delimiter : { pattern : /^\{|\}$/i , alias : "punctuation" }, string : /(["'])(?:\\?.)*?\1/ , number : /\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee][-+]?\d+)?)\b/ , variable : [ /\$(?!\d)\w+/ , /#(?!\d)\w+#/ ,{ pattern : /(\.|->)(?!\d)\w+/ , lookbehind :! 0 },{ pattern : /(\[)(?!\d)\w+(?=\])/ , lookbehind :! 0 }], "function" : [{ pattern : /(\|\s*)@?(?!\d)\w+/ , lookbehind :! 0 }, /^\/?(?!\d)\w+/ , /(?!\d)\w+(?=\()/ ], "attr-name" : { pattern : /\w+\s*=\s*(?:(?!\d)\w+)?/ , inside : { variable : { pattern : /(=\s*)(?!\d)\w+/ , lookbehind :! 0 }, operator : /=/ }}, punctuation : [ /[\[\]().,:`]|\->/ ], operator : [ /[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/ , /\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/ , /\b(?:eq|neq?|gt|lt|gt?e|lt?e|not|mod|or|and)\b/ ], keyword : /\b(?:false|off|on|no|true|yes)\b/ }}}), e . languages . insertBefore ( "smarty" , "tag" ,{ "smarty-comment" : { pattern : /\{\*[\w\W]*?\*\}/ , alias : [ "smarty" , "comment" ]}}), e . hooks . add ( "before-highlight" , function ( e ){ "smarty" === e . language && ( e . tokenStack = [], e . backupCode = e . code , e . code = e . code . replace ( t , function ( t ){ return t === n && ( o =! 1 ), o ? t : ( t === a && ( o =! 0 ), e . tokenStack . push ( t ), "___SMARTY" + e . tokenStack . length + "___" )}))}), e . hooks . add ( "before-insert" , function ( e ){ "smarty" === e . language && ( e . code = e . backupCode , delete e . backupCode )}), e . hooks . add ( "after-highlight" , function ( t ){ if ( "smarty" === t . language ){ for ( var a , n = 0 ; a = t . tokenStack [ n ]; n ++ ) t . highlightedCode = t . highlightedCode . replace ( "___SMARTY" + ( n + 1 ) + "___" , e . highlight ( a , t . grammar , "smarty" ). replace ( /\$/g , "$$$$" )); t . element . innerHTML = t . highlightedCode }})}( Prism );
Prism . languages . sql = { comment : { pattern : /(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:--|\/\/|#).*)/ , lookbehind :! 0 }, string : { pattern : /(^|[^@\\])("|')(?:\\?[\s\S])*?\2/ , greedy :! 0 , lookbehind :! 0 }, variable : /@[\w.$]+|@("|'|`)(?:\\?[\s\S])+?\1/ , "function" : /\b(?:COUNT|SUM|AVG|MIN|MAX|FIRST|LAST|UCASE|LCASE|MID|LEN|ROUND|NOW|FORMAT)(?=\s*\()/i , keyword : /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR VARYING|CHARACTER (?:SET|VARYING)|CHARSET|CHECK|CHECKPOINT|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMN|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS|CONTAINSTABLE|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|DATA(?:BASES?)?|DATE(?:TIME)?|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITER(?:S)?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE(?: PRECISION)?|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE KEY|ELSE|ENABLE|ENCLOSED BY|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPE(?:D BY)?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTO|INVOKER|ISOLATION LEVEL|JOIN|KEYS?|KILL|LANGUAGE SQL|LAST|LEFT|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MODIFIES SQL DATA|MODIFY|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL(?: CHAR VARYING| CHARACTER(?: VARYING)?| VARCHAR)?|NATURAL|NCHAR(?: VARCHAR)?|NEXT|NO(?: SQL|CHECK|CYCLE)?|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READ(?:S SQL DATA|TEXT)?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEATABLE|REPLICATION|REQUIRE|RESTORE|RESTRICT|RETURNS?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE MODE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|START(?:ING BY)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED BY|TEXT(?:SIZE)?|THEN|TIMESTAMP|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNPIVOT|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?)\b/i , "boolean" : /\b(?:TRUE|FALSE|NULL)\b/i , number : /\b-?(?:0x)?\d*\.?[\da-f]+\b/ , operator : /[-+*\/=%^~]|&&?|\|?\||!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i , punctuation : /[;[\]()`,.]/ };
! function ( n ){ var t = { url : /url\((["']?).*?\1\)/i , string : { pattern : /("|')(?:[^\\\r\n]|\\(?:\r\n|[\s\S]))*?\1/ , greedy :! 0 }, interpolation : null , func : null , important : /\B!(?:important|optional)\b/i , keyword : { pattern : /(^|\s+)(?:(?:if|else|for|return|unless)(?=\s+|$)|@[\w-]+)/ , lookbehind :! 0 }, hexcode : /#[\da-f]{3,6}/i , number : /\b\d+(?:\.\d+)?%?/ , "boolean" : /\b(?:true|false)\b/ , operator : [ /~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.+|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/ ], punctuation : /[{}()\[\];:,]/ }; t . interpolation = { pattern : /\{[^\r\n}:]+\}/ , alias : "variable" , inside : n . util . clone ( t )}, t . func = { pattern : /[\w-]+\([^)]*\).*/ , inside : { "function" : /^[^(]+/ , rest : n . util . clone ( t )}}, n . languages . stylus = { comment : { pattern : /(^|[^\\])(\/\*[\w\W]*?\*\/|\/\/.*)/ , lookbehind :! 0 }, "atrule-declaration" : { pattern : /(^\s*)@.+/m , lookbehind :! 0 , inside : { atrule : /^@[\w-]+/ , rest : t }}, "variable-declaration" : { pattern : /(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:(?:\{[^}]*\}|.+)|$)/m , lookbehind :! 0 , inside : { variable : /^\S+/ , rest : t }}, statement : { pattern : /(^[ \t]*)(?:if|else|for|return|unless)[ \t]+.+/m , lookbehind :! 0 , inside : { keyword : /^\S+/ , rest : t }}, "property-declaration" : { pattern : /((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)[^{\r\n]*(?:;|[^{\r\n,](?=$)(?!(\r?\n|\r)(?:\{|\2[ \t]+)))/m , lookbehind :! 0 , inside : { property : { pattern : /^[^\s:]+/ , inside : { interpolation : t . interpolation }}, rest : t }}, selector : { pattern : /(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\))?|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\))?|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t]+)))/m , lookbehind :! 0 , inside : { interpolation : t . interpolation , punctuation : /[{},]/ }}, func : t . func , string : t . string , interpolation : t . interpolation , punctuation : /[{}()\[\];:.]/ }}( Prism );
2016-06-09 17:01:42 +02:00
Prism . languages . swift = Prism . languages . extend ( "clike" ,{ string : { pattern : /("|')(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/ , greedy :! 0 , inside : { interpolation : { pattern : /\\\((?:[^()]|\([^)]+\))+\)/ , inside : { delimiter : { pattern : /^\\\(|\)$/ , alias : "variable" }}}}}, keyword : /\b(as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|Protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/ , number : /\b([\d_]+(\.[\de_]+)?|0x[a-f0-9_]+(\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i , constant : /\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/ , atrule : /@\b(IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/ , builtin : /\b([A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/ }), Prism . languages . swift . string . inside . interpolation . inside . rest = Prism . util . clone ( Prism . languages . swift );
2017-02-20 15:30:47 +01:00
Prism . languages . tcl = { comment : { pattern : /(^|[^\\])#.*/ , lookbehind :! 0 }, string : { pattern : /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/ , greedy :! 0 }, variable : [{ pattern : /(\$)(?:::)?(?:[a-zA-Z0-9]+::)*[a-zA-Z0-9_]+/ , lookbehind :! 0 },{ pattern : /(\$){[^}]+}/ , lookbehind :! 0 },{ pattern : /(^\s*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*[a-zA-Z0-9_]+/m , lookbehind :! 0 }], "function" : { pattern : /(^\s*proc[ \t]+)[^\s]+/m , lookbehind :! 0 }, builtin : [{ pattern : /(^\s*)(?:proc|return|class|error|eval|exit|for|foreach|if|switch|while|break|continue)\b/m , lookbehind :! 0 }, /\b(elseif|else)\b/ ], scope : { pattern : /(^\s*)(global|upvar|variable)\b/m , lookbehind :! 0 , alias : "constant" }, keyword : { pattern : /(^\s*|\[)(after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|Safe_Base|scan|seek|set|socket|source|split|string|subst|Tcl|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|wordBreak(?:After|Before)|test|vars)|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m , lookbehind :! 0 }, operator : /!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|ne|in|ni)\b/ , punctuation : /[{}()\[\]]/ };
! function ( e ){ var i = "(?:\\([^|)]+\\)|\\[[^\\]]+\\]|\\{[^}]+\\})+" , n = { css : { pattern : /\{[^}]+\}/ , inside : { rest : e . languages . css }}, "class-id" : { pattern : /(\()[^)]+(?=\))/ , lookbehind :! 0 , alias : "attr-value" }, lang : { pattern : /(\[)[^\]]+(?=\])/ , lookbehind :! 0 , alias : "attr-value" }, punctuation : /[\\\/]\d+|\S/ }; e . languages . textile = e . languages . extend ( "markup" ,{ phrase : { pattern : /(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/ , lookbehind :! 0 , inside : { "block-tag" : { pattern : RegExp ( "^[a-z]\\w*(?:" + i + "|[<>=()])*\\." ), inside : { modifier : { pattern : RegExp ( "(^[a-z]\\w*)(?:" + i + "|[<>=()])+(?=\\.)" ), lookbehind :! 0 , inside : e . util . clone ( n )}, tag : /^[a-z]\w*/ , punctuation : /\.$/ }}, list : { pattern : RegExp ( "^[*#]+(?:" + i + ")?\\s+.+" , "m" ), inside : { modifier : { pattern : RegExp ( "(^[*#]+)" + i ), lookbehind :! 0 , inside : e . util . clone ( n )}, punctuation : /^[*#]+/ }}, table : { pattern : RegExp ( "^(?:(?:" + i + "|[<>=()^~])+\\.\\s*)?(?:\\|(?:(?:" + i + "|[<>=()^~_]|[\\\\/]\\d+)+\\.)?[^|]*)+\\|" , "m" ), inside : { modifier : { pattern : RegExp ( "(^|\\|(?:\\r?\\n|\\r)?)(?:" + i + "|[<>=()^~_]|[\\\\/]\\d+)+(?=\\.)" ), lookbehind :! 0 , inside : e . util . clone ( n )}, punctuation : /\||^\./ }}, inline : { pattern : RegExp ( "(\\*\\*|__|\\?\\?|[*_%@+\\-^~])(?:" + i + ")?.+?\\1" ), inside : { bold : { pattern : RegExp ( "((^\\*\\*?)(?:" + i + ")?).+?(?=\\2)" ), lookbehind :! 0 }, italic : { pattern : RegExp ( "((^__?)(?:" + i + ")?).+?(?=\\2)" ), lookbehind :! 0 }, cite : { pattern : RegExp ( "(^\\?\\?(?:" + i + ")?).+?(?=\\?\\?)" ), lookbehind :! 0 , alias : "string" }, code : { pattern : RegExp ( "(^@(?:" + i + ")?).+?(?=@)" ), lookbehind :! 0 , alias : "keyword" }, inserted : { pattern : RegExp ( "(^\\+(?:" + i + ")?).+?(?=\\+)" ), lookbehind :! 0 }, deleted : { pattern : RegExp ( "(^-(?:" + i + ")?).+?(?=-)" ), lookbehind :! 0 }, span : { pattern : RegExp ( "(^%(?:" + i + ")?).+?(?=%)" ), lookbehind :! 0 }, modifier : { pattern : RegExp ( "(^\\*\\*|__|\\?\\?|[*_%@+\\-^~])" + i ), lookbehind :! 0 , inside : e . util . clone ( n )}, punctuation : /[*_%?@+\-^~]+/ }}, "link-ref" : { pattern : /^\[[^\]]+\]\S+$/m , inside : { string : { pattern : /(\[)[^\]]+(?=\])/ , lookbehind :! 0 }, url : { pattern : /(\])\S+$/ , lookbehind :! 0 }, punctuation : /[\[\]]/ }}, link : { pattern : RegExp ( '"(?:' + i + ')?[^"]+":.+?(?=[^\\w/]?(?:\\s|$))' ), inside : { text : { pattern : RegExp ( '(^"(?:' + i + ')?)[^"]+(?=")' ), lookbehind :! 0 }, modifier : { pattern : RegExp ( '(^")' + i ), lookbehind :! 0 , inside : e . util . clone ( n )}, url : { pattern : /(:).+/ , lookbehind :! 0 }, punctuation : /[":]/ }}, image : { pattern : RegExp ( "!(?:" + i + "|[<>=()])*[^!\\s()]+(?:\\([^)]+\\))?!(?::.+?(?=[^\\w/]?(?:\\s|$)))?" ), inside : { source : { pattern : RegExp ( "(^!(?:" + i + "|[<>=()])*)[^!\\s()]+(?:\\([^)]+\\))?(?=!)" ), lookbehind :! 0 , alias : "url" }, modifier : { pattern : RegExp ( "(^!)(?:" + i + "|[<>=()])+" ), lookbehind :! 0 , inside : e . util . clone ( n )}, url : { pattern : /(:).+/ , lookbehind :! 0 }, punctuation : /[!:]/ }}, footnote : { pattern : /\b\[\d+\]/ , alias : "comment" , inside : { punctuation : /\[|\]/ }}, acronym : { pattern : /\b[A-Z\d]+\([^)]+\)/ , inside : { comment : { pattern : /(\()[^)]+(?=\))/ , lookbehind :! 0 }, punctuation : /[()]/ }}, mark : { pattern : /\b\((TM|R|C)\)/ , alias : "comment" , inside : { punctuation : /[()]/ }}}}}); var t = { inline : e . util . clone ( e . languages . textile . phrase . inside . inline ), link : e . util . clone ( e . languages . textile . phrase . inside . link ), image : e . util . clone ( e . languages . textile . phrase . inside . image ), footnote : e . util . clone ( e . languages . textile . phrase . inside . footnote ), acronym : e . util . clone ( e . languages . textile . phrase . inside . acronym ), mark : e . util . clone ( e . languages . textile . phrase . inside . mark )}; e . languages . textile . tag . pattern = /<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i , e . languages . textile . phrase . inside . inline . inside . bold . inside = t , e . languages . textile . phrase . inside . inline . inside . italic . inside = t , e . languages . textile . phrase . inside . inline . inside . inserted . inside = t , e . languages . textile . phrase . inside . inline . inside . deleted . inside = t , e . languages . textile . phrase . inside . inline . inside . span . inside = t , e . languages . textile . phrase . inside . table . inside . inline = t . inline , e . languages . textile . phrase . inside . table . inside . link = t . link , e . languages . textile . phrase . inside . table . inside . image = t . image , e . languages . textile . phrase . inside . table . inside . footnote = t . footnote , e . languages . textile . phrase . inside . table . inside . acronym = t . acronym , e . languages . textile . phrase . inside . table . inside . mark = t . mark }( Prism );
2016-04-11 15:59:32 +02:00
Prism . languages . twig = { comment : /\{#[\s\S]*?#\}/ , tag : { pattern : /\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}/ , inside : { ld : { pattern : /^(?:\{\{\-?|\{%\-?\s*\w+)/ , inside : { punctuation : /^(?:\{\{|\{%)\-?/ , keyword : /\w+/ }}, rd : { pattern : /\-?(?:%\}|\}\})$/ , inside : { punctuation : /.*/ }}, string : { pattern : /("|')(?:\\?.)*?\1/ , inside : { punctuation : /^['"]|['"]$/ }}, keyword : /\b(?:even|if|odd)\b/ , "boolean" : /\b(?:true|false|null)\b/ , number : /\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+([Ee][-+]?\d+)?)\b/ , operator : [{ pattern : /(\s)(?:and|b\-and|b\-xor|b\-or|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/ , lookbehind :! 0 }, /[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/ ], property : /\b[a-zA-Z_][a-zA-Z0-9_]*\b/ , punctuation : /[()\[\]{}:.,]/ }}, other : { pattern : /\S(?:[\s\S]*\S)?/ , inside : Prism . languages . markup }};
2017-02-20 15:30:47 +01:00
Prism . languages . typescript = Prism . languages . extend ( "javascript" ,{ keyword : /\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield|false|true|module|declare|constructor|string|Function|any|number|boolean|Array|enum|symbol|namespace|abstract|require|type)\b/ }), Prism . languages . ts = Prism . languages . typescript ;
Prism . languages . verilog = { comment : /\/\/.*|\/\*[\w\W]*?\*\// , string : { pattern : /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/ , greedy :! 0 }, property : /\B\$\w+\b/ , constant : /\B`\w+\b/ , "function" : /[a-z\d_]+(?=\()/i , keyword : /\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|class|case|casex|casez|cell|chandle|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endspecify|endsequence|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_onevent|pulsestyle_ondetect|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/ , important : /\b(?:always_latch|always_comb|always_ff|always)\b ?@?/ , number : /\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b\d*[._]?\d+(?:e[-+]?\d+)?/i , operator : /[-+{}^~%*\/?=!<>&|]+/ , punctuation : /[[\];(),.:]/ };
Prism . languages . vhdl = { comment : /--.+/ , "vhdl-vectors" : { pattern : /\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i , alias : "number" }, "quoted-function" : { pattern : /"\S+?"(?=\()/ , alias : "function" }, string : /"(?:[^\\\r\n]|\\?(?:\r\n|[\s\S]))*?"/ , constant : /\b(?:use|library)\b/i , keyword : /\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i , "boolean" : /\b(?:true|false)\b/i , "function" : /[a-z0-9_]+(?=\()/i , number : /'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i , operator : /[<>]=?|:=|[-+*\/&=]|\b(?:abs|not|mod|rem|sll|srl|sla|sra|rol|ror|and|or|nand|xnor|xor|nor)\b/i , punctuation : /[{}[\];(),.:]/ };
2016-04-11 15:59:32 +02:00
Prism . languages . vim = { string : /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/ , comment : /".*/ , "function" : /\w+(?=\()/ , keyword : /\b(?:ab|abbreviate|abc|abclear|abo|aboveleft|al|all|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|ar|args|argu|argument|as|ascii|bad|badd|ba|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bN|bNext|bo|botright|bp|bprevious|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|br|brewind|bro|browse|bufdo|b|buffer|buffers|bun|bunload|bw|bwipeout|ca|cabbrev|cabc|cabclear|caddb|caddbuffer|cad|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cgetb|cgetbuffer|cgete|cgetexpr|cg|cgetfile|c|change|changes|chd|chdir|che|checkpath|checkt|checktime|cla|clast|cl|clist|clo|close|cmapc|cmapclear|cnew|cnewer|cn|cnext|cN|cNext|cnf|cnfile|cNfcNfile|cnorea|cnoreabbrev|col|colder|colo|colorscheme|comc|comclear|comp|compiler|conf|confirm|con|continue|cope|copen|co|copy|cpf|cpfile|cp|cprevious|cq|cquit|cr|crewind|cuna|cunabbrev|cu|cunmap|cw|cwindow|debugg|debuggreedy|delc|delcommand|d|delete|delf|delfunction|delm|delmarks|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|di|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|earlier|echoe|echoerr|echom|echomsg|echon|e|edit|el|else|elsei|elseif|em|emenu|endfo|endfor|endf|endfunction|endfun|en|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fina|finally|fin|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|folddoc|folddoclosed|foldd|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|ha|hardcopy|h|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iuna|iunabbrev|iu|iunmap|j|join|ju|jumps|k|keepalt|keepj|keepjumps|kee|keepmarks|laddb|laddbuffer|lad|laddexpr|laddf|laddfile|lan|language|la|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|let|left|lefta|leftabove|lex|lexpr|lf|lfile|lfir|lfirst|lgetb|lgetbuffer|lgete|lgetexpr|lg|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|l|list|ll|lla|llast|lli|llist|lmak|lmake|lm|lmap|lmapc|lmapclear|lnew|lnewer|lne|lnext|lN|lNext|lnf|lnfile|lNf|lNfile|ln|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lpf|lpfile|lp|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|mak|make|ma|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkvie|mkview|mkv|mkvimrc|mod|mode|m|move|mzf|mzfile|mz|mzscheme|nbkey|new|n|next|N|Next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|omapc|omapclear|on|only|o|open|opt|options|ou|ounmap|pc|pclose|ped|pedit|pe|perl|perld|perldo|po|pop|popu|popu|popup|pp|ppop|pre|preserve|prev|previous|p|print|P|Print|profd|profdel|prof|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptN|ptNext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|pyf|pyfile|py|python|qa|qall|q|quit|quita|quitall|r|read|rec|recover|redi|redir|red|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|rub|ruby|rubyd|rubydo|rubyf|rubyfile|ru|runtime|rv|rviminfo|sal|sall|san|sandbox|sa|sargument|sav|saveas|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbN|sbNext|sbp|sbprevious|sbr|sbrewind|sb|sbuffer|scripte|scriptencoding|scrip|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sla|slast|sl|sleep|sm|smagic|sm|smap|smapc|smapclear|sme|smenu|sn|snext|sN|sNext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|sor|sort|so|source|spelld|spelldump|spe|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|sp|split|spr|sprevious|sre|srewind|sta|stag|startg|startgreplace|star|startinsert|startr|startreplace|stj|stjump|st|stop|stopi|stopinsert|sts|st
Prism . languages . wiki = Prism . languages . extend ( "markup" ,{ "block-comment" : { pattern : /(^|[^\\])\/\*[\w\W]*?\*\// , lookbehind :! 0 , alias : "comment" }, heading : { pattern : /^(=+).+?\1/m , inside : { punctuation : /^=+|=+$/ , important : /.+/ }}, emphasis : { pattern : /('{2,5}).+?\1/ , inside : { "bold italic" : { pattern : /(''''').+?(?=\1)/ , lookbehind :! 0 }, bold : { pattern : /(''')[^'](?:.*?[^'])?(?=\1)/ , lookbehind :! 0 }, italic : { pattern : /('')[^'](?:.*?[^'])?(?=\1)/ , lookbehind :! 0 }, punctuation : /^''+|''+$/ }}, hr : { pattern : /^-{4,}/m , alias : "punctuation" }, url : [ /ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:RFC|PMID) +\d+/i , /\[\[.+?\]\]|\[.+?\]/ ], variable : [ /__[A-Z]+__/ , /\{{3}.+?\}{3}/ , /\{\{.+?}}/ ], symbol : [ /^#redirect/im , /~{3,5}/ ], "table-tag" : { pattern : /((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m , lookbehind :! 0 , inside : { "table-bar" : { pattern : /\|$/ , alias : "punctuation" }, rest : Prism . languages . markup . tag . inside }}, punctuation : /^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m }), Prism . languages . insertBefore ( "wiki" , "tag" ,{ nowiki : { pattern : /<(nowiki|pre|source)\b[\w\W]*?>[\w\W]*?<\/\1>/i , inside : { tag : { pattern : /<(?:nowiki|pre|source)\b[\w\W]*?>|<\/(?:nowiki|pre|source)>/i , inside : Prism . languages . markup . tag . inside }}}});
2017-02-20 15:30:47 +01:00
Prism . languages . xojo = { comment : { pattern : /(?:'|\/\/|Rem\b).+/i , inside : { keyword : /^Rem/i }}, string : { pattern : /"(?:""|[^"])*"/ , greedy :! 0 }, number : [ /(?:\b|\B[.-])(?:\d+\.?\d*)(?:E[+-]?\d+)?/i , /&[bchou][a-z\d]+/i ], symbol : /#(?:If|Else|ElseIf|Endif|Pragma)\b/i , keyword : /\b(?:AddHandler|App|Array|As(?:signs)?|By(?:Ref|Val)|Break|Call|Case|Catch|Const|Continue|CurrentMethodName|Declare|Dim|Do(?:wnTo)?|Each|Else(?:If)?|End|Exit|Extends|False|Finally|For|Global|If|In|Lib|Loop|Me|Next|Nil|Optional|ParamArray|Raise(?:Event)?|ReDim|Rem|RemoveHandler|Return|Select|Self|Soft|Static|Step|Super|Then|To|True|Try|Ubound|Until|Using|Wend|While)\b/i , operator : /<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|Xor|WeakAddressOf)\b/i , punctuation : /[.,;:()]/ };
Prism . languages . yaml = { scalar : { pattern : /([\-:]\s*(![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\3[^\r\n]+)*)/ , lookbehind :! 0 , alias : "string" }, comment : /#.*/ , key : { pattern : /(\s*(?:^|[:\-,[{\r\n?])[ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/ , lookbehind :! 0 , alias : "atrule" }, directive : { pattern : /(^[ \t]*)%.+/m , lookbehind :! 0 , alias : "important" }, datetime : { pattern : /([:\-,[{]\s*(![^\s]+)?[ \t]*)(\d{4}-\d\d?-\d\d?([tT]|[ \t]+)\d\d?:\d{2}:\d{2}(\.\d*)?[ \t]*(Z|[-+]\d\d?(:\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(:\d{2}(\.\d*)?)?)(?=[ \t]*($|,|]|}))/m , lookbehind :! 0 , alias : "number" }, "boolean" : { pattern : /([:\-,[{]\s*(![^\s]+)?[ \t]*)(true|false)[ \t]*(?=$|,|]|})/im , lookbehind :! 0 , alias : "important" }, "null" : { pattern : /([:\-,[{]\s*(![^\s]+)?[ \t]*)(null|~)[ \t]*(?=$|,|]|})/im , lookbehind :! 0 , alias : "important" }, string : { pattern : /([:\-,[{]\s*(![^\s]+)?[ \t]*)("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')(?=[ \t]*($|,|]|}))/m , lookbehind :! 0 , greedy :! 0 }, number : { pattern : /([:\-,[{]\s*(![^\s]+)?[ \t]*)[+\-]?(0x[\da-f]+|0o[0-7]+|(\d+\.?\d*|\.?\d+)(e[\+\-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im , lookbehind :! 0 }, tag : /![^\s]+/ , important : /[&*][\w]+/ , punctuation : /---|[:[\]{}\-,|>?]|\.\.\./ };
! function (){ if (( "undefined" == typeof self || self . Prism ) && ( "undefined" == typeof global || global . Prism )){ var i = /\b([a-z]{3,7}:\/\/|tel:)[\w\-+%~\/.:#=?&]+/ , n = /\b\S+@[\w.]+[a-z]{2}/ , e = /\[([^\]]+)]\(([^)]+)\)/ , t = [ "comment" , "url" , "attr-value" , "string" ]; Prism . plugins . autolinker = { processGrammar : function ( a ){ a &&! a [ "url-link" ] && ( Prism . languages . DFS ( a , function ( a , r , l ){ t . indexOf ( l ) >- 1 && "Array" !== Prism . util . type ( r ) && ( r . pattern || ( r = this [ a ] = { pattern : r }), r . inside = r . inside || {}, "comment" == l && ( r . inside [ "md-link" ] = e ), "attr-value" == l ? Prism . languages . insertBefore ( "inside" , "punctuation" ,{ "url-link" : i }, r ) : r . inside [ "url-link" ] = i , r . inside [ "email-link" ] = n )}), a [ "url-link" ] = i , a [ "email-link" ] = n )}}, Prism . hooks . add ( "before-highlight" , function ( i ){ Prism . plugins . autolinker . processGrammar ( i . grammar )}), Prism . hooks . add ( "wrap" , function ( i ){ if ( /-link$/ . test ( i . type )){ i . tag = "a" ; var n = i . content ; if ( "email-link" == i . type && 0 != n . indexOf ( "mailto:" )) n = "mailto:" + n ; else if ( "md-link" == i . type ){ var t = i . content . match ( e ); n = t [ 2 ], i . content = t [ 1 ]} i . attributes . href = n }})}}();
! function (){ "undefined" != typeof self && self . Prism && self . document && document . querySelector && ( self . Prism . fileHighlight = function (){ var e = { js : "javascript" , py : "python" , rb : "ruby" , ps1 : "powershell" , psm1 : "powershell" , sh : "bash" , bat : "batch" , h : "c" , tex : "latex" }; Array . prototype . forEach && Array . prototype . slice . call ( document . querySelectorAll ( "pre[data-src]" )). forEach ( function ( t ){ for ( var a , s = t . getAttribute ( "data-src" ), n = t , r = /\blang(?:uage)?-(?!\*)(\w+)\b/i ; n &&! r . test ( n . className );) n = n . parentNode ; if ( n && ( a = ( t . className . match ( r ) || [, "" ])[ 1 ]), ! a ){ var o = ( s . match ( /\.(\w+)$/ ) || [, "" ])[ 1 ]; a = e [ o ] || o } var l = document . createElement ( "code" ); l . className = "language-" + a , t . textContent = "" , l . textContent = "Loading…" , t . appendChild ( l ); var i = new XMLHttpRequest ; i . open ( "GET" , s , ! 0 ), i . onreadystatechange = function (){ 4 == i . readyState && ( i . status < 400 && i . responseText ? ( l . textContent = i . responseText , Prism . highlightElement ( l )) : l . textContent = i . status >= 400 ? "✖ Error " + i . status + " while fetching file: " + i . statusText : "✖ Error: File does not exist or is empty" )}, i . send ( null )})}, document . addEventListener ( "DOMContentLoaded" , self . Prism . fileHighlight ))}();
! function (){ if ( "undefined" != typeof self && self . Prism && self . document ){ var t = [], e = {}, n = function (){}; Prism . plugins . toolbar = {}; var a = Prism . plugins . toolbar . registerButton = function ( n , a ){ var o ; o = "function" == typeof a ? a : function ( t ){ var e ; return "function" == typeof a . onClick ? ( e = document . createElement ( "button" ), e . type = "button" , e . addEventListener ( "click" , function (){ a . onClick . call ( this , t )})) : "string" == typeof a . url ? ( e = document . createElement ( "a" ), e . href = a . url ) : e = document . createElement ( "span" ), e . textContent = a . text , e }, t . push ( e [ n ] = o )}, o = Prism . plugins . toolbar . hook = function ( a ){ var o = a . element . parentNode ; if ( o && /pre/i . test ( o . nodeName ) &&! o . classList . contains ( "code-toolbar" )){ o . classList . add ( "code-toolbar" ); var r = document . createElement ( "div" ); r . classList . add ( "toolbar" ), document . body . hasAttribute ( "data-toolbar-order" ) && ( t = document . body . getAttribute ( "data-toolbar-order" ). split ( "," ). map ( function ( t ){ return e [ t ] || n })), t . forEach ( function ( t ){ var e = t ( a ); if ( e ){ var n = document . createElement ( "div" ); n . classList . add ( "toolbar-item" ), n . appendChild ( e ), r . appendChild ( n )}}), o . appendChild ( r )}}; a ( "label" , function ( t ){ var e = t . element . parentNode ; if ( e && /pre/i . test ( e . nodeName ) && e . hasAttribute ( "data-label" )){ var n , a , o = e . getAttribute ( "data-label" ); try { a = document . querySelector ( "template#" + o )} catch ( r ){} return a ? n = a . content : ( e . hasAttribute ( "data-url" ) ? ( n = document . createElement ( "a" ), n . href = e . getAttribute ( "data-url" )) : n = document . createElement ( "span" ), n . textContent = o ), n }}), Prism . hooks . add ( "complete" , o )}}();
! function (){ "undefined" != typeof self &&! self . Prism || "undefined" != typeof global &&! global . Prism || Prism . hooks . add ( "wrap" , function ( e ){ "keyword" === e . type && e . classes . push ( "keyword-" + e . content )})}();
! function (){ if ( "undefined" != typeof self && self . Prism && self . document && Function . prototype . bind ){ var t = function ( t ){ var e = 0 , s = 0 , i = t ; if ( i . parentNode ){ do e += i . offsetLeft , s += i . offsetTop ; while (( i = i . offsetParent ) && i . nodeType < 9 ); i = t ; do e -= i . scrollLeft , s -= i . scrollTop ; while (( i = i . parentNode ) &&! /body/i . test ( i . nodeName ))} return { top : s , right : innerWidth - e - t . offsetWidth , bottom : innerHeight - s - t . offsetHeight , left : e }}, e = /(?:^|\s)token(?=$|\s)/ , s = /(?:^|\s)active(?=$|\s)/g , i = /(?:^|\s)flipped(?=$|\s)/g , o = function ( t , e , s , i ){ this . _elt = null , this . _type = t , this . _clsRegexp = RegExp ( "(?:^|\\s)" + t + "(?=$|\\s)" ), this . _token = null , this . updater = e , this . _mouseout = this . mouseout . bind ( this ), this . initializer = i ; var n = this ; s || ( s = [ "*" ]), "Array" !== Prism . util . type ( s ) && ( s = [ s ]), s . forEach ( function ( t ){ "string" != typeof t && ( t = t . lang ), o . byLanguages [ t ] || ( o . byLanguages [ t ] = []), o . byLanguages [ t ]. indexOf ( n ) < 0 && o . byLanguages [ t ]. push ( n )}), o . byType [ t ] = this }; o . prototype . init = function (){ this . _elt || ( this . _elt = document . createElement ( "div" ), this . _elt . className = "prism-previewer prism-previewer-" + this . _type , document . body . appendChild ( this . _elt ), this . initializer && this . initializer ())}, o . prototype . check = function ( t ){ do if ( e . test ( t . className ) && this . _clsRegexp . test ( t . className )) break ; while ( t = t . parentNode ); t && t !== this . _token && ( this . _token = t , this . show ())}, o . prototype . mouseout = function (){ this . _token . removeEventListener ( "mouseout" , this . _mouseout , ! 1 ), this . _token = null , this . hide ()}, o . prototype . show = function (){ if ( this . _elt || this . init (), this . _token ) if ( this . updater . call ( this . _elt , this . _token . textContent )){ this . _token . addEventListener ( "mouseout" , this . _mouseout , ! 1 ); var e = t ( this . _token ); this . _elt . className += " active" , e . top - this . _elt . offsetHeight > 0 ? ( this . _elt . className = this . _elt . className . replace ( i , "" ), this . _elt . style . top = e . top + "px" , this . _elt . style . bottom = "" ) : ( this . _elt . className += " flipped" , this . _elt . style . bottom = e . bottom + "px" , this . _elt . style . top = "" ), this . _elt . style . left = e . left + Math . min ( 200 , this . _token . offsetWidth / 2 ) + "px" } else this . hide ()}, o . prototype . hide = function (){ this . _elt . className = this . _elt . className . replace ( s , "" )}, o . byLanguages = {}, o . byType = {}, o . initEvents = function ( t , e ){ var s = []; o . byLanguages [ e ] && ( s = s . concat ( o . byLanguages [ e ])), o . byLanguages [ "*" ] && ( s = s . concat ( o . byLanguages [ "*" ])), t . addEventListener ( "mouseover" , function ( t ){ var e = t . target ; s . forEach ( function ( t ){ t . check ( e )})}, ! 1 )}, Prism . plugins . Previewer = o , Prism . hooks . add ( "after-highlight" , function ( t ){( o . byLanguages [ "*" ] || o . byLanguages [ t . language ]) && o . initEvents ( t . element , t . language )})}}();
! function (){ if (( "undefined" == typeof self || self . Prism ) && ( "undefined" == typeof global || global . Prism )){ var e = { css :! 0 , less :! 0 , markup : { lang : "markup" , before : "punctuation" , inside : "inside" , root : Prism . languages . markup && Prism . languages . markup . tag . inside [ "attr-value" ]}, sass : [{ lang : "sass" , before : "punctuation" , inside : "inside" , root : Prism . languages . sass && Prism . languages . sass [ "variable-line" ]},{ lang : "sass" , inside : "inside" , root : Prism . languages . sass && Prism . languages . sass [ "property-line" ]}], scss :! 0 , stylus : [{ lang : "stylus" , before : "hexcode" , inside : "rest" , root : Prism . languages . stylus && Prism . languages . stylus [ "property-declaration" ]. inside },{ lang : "stylus" , before : "hexcode" , inside : "rest" , root : Prism . languages . stylus && Prism . languages . stylus [ "variable-declaration" ]. inside }]}; Prism . hooks . add ( "before-highlight" , function ( a ){ if ( a . language && e [ a . language ] &&! e [ a . language ]. initialized ){ var i = e [ a . language ]; "Array" !== Prism . util . type ( i ) && ( i = [ i ]), i . forEach ( function ( i ){ var r , l , n , s ; i ===! 0 ? ( r = "important" , l = a . language , i = a . language ) : ( r = i . before || "important" , l = i . inside || i . lang , n = i . root || Prism . languages , s = i . skip , i = a . language ), ! s && Prism . languages [ i ] && ( Prism . languages . insertBefore ( l , r ,{ color : /\B#(?:[0-9a-f]{3}){1,2}\b|\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B|\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGray|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGray|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGray|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gray|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGray|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGray|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGray|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i }, n ), a . grammar = Prism . languages [ i ], e [ a . language ] = { initialized :! 0 })})}}), Prism . plugins . Previewer && new Prism . plugins . Previewer ( "color" , function ( e ){ return this . style . backgroundColor = "" , this . style . backgroundColor = e , !! this . style . backgroundColor })}}();
! function (){ "undefined" != typeof self && self . Prism && self . document && Prism . hooks . add ( "complete" , function ( e ){ if ( e . code ){ var t = e . element . parentNode , a = /\s*\bcommand-line\b\s*/ ; if ( t && /pre/i . test ( t . nodeName ) && ( a . test ( t . className ) || a . test ( e . element . className )) &&! e . element . querySelector ( ".command-line-prompt" )){ a . test ( e . element . className ) && ( e . element . className = e . element . className . replace ( a , "" )), a . test ( t . className ) || ( t . className += " command-line" ); var n = function ( e , a ){ return ( t . getAttribute ( e ) || a ). replace ( /"/g , """ )}, s = new Array ( 1 + e . code . split ( "\n" ). length ), r = n ( "data-prompt" , "" ); if ( "" !== r ) s = s . join ( '<span data-prompt="' + r + '"></span>' ); else { var l = n ( "data-user" , "user" ), m = n ( "data-host" , "localhost" ); s = s . join ( '<span data-user="' + l + '" data-host="' + m + '"></span>' )} var o = document . createElement ( "span" ); o . className = "command-line-prompt" , o . innerHTML = s ; var i = t . getAttribute ( "data-output" ) || "" ; i = i . split ( "," ); for ( var c = 0 ; c < i . length ; c ++ ){ var p = i [ c ]. split ( "-" ), d = parseInt ( p [ 0 ]), u = d ; if ( 2 === p . length && ( u = parseInt ( p [ 1 ])), ! isNaN ( d ) &&! isNaN ( u )) for ( var f = d ; u >= f && f <= o . children . length ; f ++ ){ var N = o . children [ f - 1 ]; N . removeAttribute ( "data-user" ), N . removeAttribute ( "data-host" ), N . removeAttribute ( "data-prompt" )}} e . element . innerHTML = o . outerHTML + e . element . innerHTML }}})}();
! function (){ if (( "undefined" == typeof self || self . Prism ) && ( "undefined" == typeof global || global . Prism )){ var i = function ( i ){ return Prism . plugins . autolinker && Prism . plugins . autolinker . processGrammar ( i ), i }, a = { pattern : /(.)\bdata:[^\/]+\/[^,]+,(?:(?!\1)[\s\S]|\\\1)+(?=\1)/ , lookbehind :! 0 , inside : { "language-css" : { pattern : /(data:[^\/]+\/(?:[^+,]+\+)?css,)[\s\S]+/ , lookbehind :! 0 }, "language-javascript" : { pattern : /(data:[^\/]+\/(?:[^+,]+\+)?javascript,)[\s\S]+/ , lookbehind :! 0 }, "language-json" : { pattern : /(data:[^\/]+\/(?:[^+,]+\+)?json,)[\s\S]+/ , lookbehind :! 0 }, "language-markup" : { pattern : /(data:[^\/]+\/(?:[^+,]+\+)?(?:html|xml),)[\s\S]+/ , lookbehind :! 0 }}}, n = [ "url" , "attr-value" , "string" ]; Prism . plugins . dataURIHighlight = { processGrammar : function ( i ){ i &&! i [ "data-uri" ] && ( Prism . languages . DFS ( i , function ( i , e , r ){ n . indexOf ( r ) >- 1 && "Array" !== Prism . util . type ( e ) && ( e . pattern || ( e = this [ i ] = { pattern : e }), e . inside = e . inside || {}, "attr-value" == r ? Prism . languages . insertBefore ( "inside" , e . inside [ "url-link" ] ? "url-link" : "punctuation" ,{ "data-uri" : a }, e ) : e . inside [ "url-link" ] ? Prism . languages . insertBefore ( "inside" , "url-link" ,{ "data-uri" : a }, e ) : e . inside [ "data-uri" ] = a )}), i [ "data-uri" ] = a )}}, Prism . hooks . add ( "before-highlight" , function ( n ){ if ( a . pattern . test ( n . code )) for ( var e in a . inside ) if ( a . inside . hasOwnProperty ( e ) &&! a . inside [ e ]. inside && a . inside [ e ]. pattern . test ( n . code )){ var r = e . match ( /^language-(.+)/ )[ 1 ]; Prism . languages [ r ] && ( a . inside [ e ]. inside = { rest : i ( Prism . languages [ r ])})} Prism . plugins . dataURIHighlight . processGrammar ( n . grammar )})}}();
! function (){ if ( "undefined" != typeof self && self . Prism && self . document ){ if ( ! Prism . plugins . toolbar ) return console . warn ( "Show Languages plugin loaded before Toolbar plugin." ), void 0 ; var e = { html : "HTML" , xml : "XML" , svg : "SVG" , mathml : "MathML" , css : "CSS" , clike : "C-like" , javascript : "JavaScript" , abap : "ABAP" , actionscript : "ActionScript" , apacheconf : "Apache Configuration" , apl : "APL" , applescript : "AppleScript" , asciidoc : "AsciiDoc" , aspnet : "ASP.NET (C#)" , autoit : "AutoIt" , autohotkey : "AutoHotkey" , basic : "BASIC" , csharp : "C#" , cpp : "C++" , coffeescript : "CoffeeScript" , "css-extras" : "CSS Extras" , django : "Django/Jinja2" , fsharp : "F#" , glsl : "GLSL" , graphql : "GraphQL" , http : "HTTP" , inform7 : "Inform 7" , json : "JSON" , latex : "LaTeX" , livescript : "LiveScript" , lolcode : "LOLCODE" , matlab : "MATLAB" , mel : "MEL" , nasm : "NASM" , nginx : "nginx" , nsis : "NSIS" , objectivec : "Objective-C" , ocaml : "OCaml" , parigp : "PARI/GP" , php : "PHP" , "php-extras" : "PHP Extras" , powershell : "PowerShell" , properties : ".properties" , protobuf : "Protocol Buffers" , jsx : "React JSX" , rest : "reST (reStructuredText)" , sas : "SAS" , sass : "Sass (Sass)" , scss : "Sass (Scss)" , sql : "SQL" , typescript : "TypeScript" , vhdl : "VHDL" , vim : "vim" , wiki : "Wiki markup" , xojo : "Xojo (REALbasic)" , yaml : "YAML" }; Prism . plugins . toolbar . registerButton ( "show-language" , function ( t ){ var a = t . element . parentNode ; if ( a && /pre/i . test ( a . nodeName )){ var s = a . getAttribute ( "data-language" ) || e [ t . language ] || t . language . substring ( 0 , 1 ). toUpperCase () + t . language . substring ( 1 ), r = document . createElement ( "span" ); return r . textContent = s , r }})}}();
! function (){ if ( "undefined" != typeof self && self . Prism && self . document ){ if ( ! Prism . plugins . toolbar ) return console . warn ( "Copy to Clipboard plugin loaded before Toolbar plugin." ), void 0 ; var o = window . Clipboard || void 0 ; o || "function" != typeof require || ( o = require ( "clipboard" )); var e = []; if ( ! o ){ var t = document . createElement ( "script" ), n = document . querySelector ( "head" ); t . onload = function (){ if ( o = window . Clipboard ) for (; e . length ;) e . pop ()()}, t . src = "https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.8/clipboard.min.js" , n . appendChild ( t )} Prism . plugins . toolbar . registerButton ( "copy-to-clipboard" , function ( t ){ function n (){ var e = new o ( i ,{ text : function (){ return t . code }}); e . on ( "success" , function (){ i . textContent = "Copied!" , r ()}), e . on ( "error" , function (){ i . textContent = "Press Ctrl+C to copy" , r ()})} function r (){ setTimeout ( function (){ i . textContent = "Copy" }, 5e3 )} var i = document . createElement ( "a" ); return i . textContent = "Copy" , o ? n () : e . push ( n ), i })}}();