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 | \ . | ^ ) ( ? : S C I E N T I F I C _ W I T H _ L E A D I N G _ Z E R O | S C A L E _ P R E S E R V I N G _ S C I E N T I F I C | R M C _ C O M M U N I C A T I O N _ F A I L U R E | E N D - E N H A N C E M E N T - S E C T I O N | M U L T I P L Y - C O R R E S P O N D I N G | S U B T R A C T - C O R R E S P O N D I N G | V E R I F I C A T I O N - M E S S A G E | D I V I D E - C O R R E S P O N D I N G | E N H A N C E M E N T - S E C T I O N | C U R R E N C Y _ C O N V E R S I O N | R M C _ S Y S T E M _ F A I L U R E | S T A R T - O F - S E L E C T I O N | M O V E - C O R R E S P O N D I N G | R M C _ I N V A L I D _ S T A T U S | C U S T O M E R - F U N C T I O N | E N D - O F - D E F I N I T I O N | E N H A N C E M E N T - P O I N T | S Y S T E M - E X C E P T I O N S | A D D - C O R R E S P O N D I N G | S C A L E _ P R E S E R V I N G | S E L E C T I O N - S C R E E N | C U R S O R - S E L E C T I O N | E N D - O F - S E L E C T I O N | L O A D - O F - P R O G R A M | S C R O L L - B O U N D A R Y | S E L E C T I O N - T A B L E | E X C E P T I O N - T A B L E | I M P L E M E N T A T I O N S | P A R A M E T E R - T A B L E | R I G H T - J U S T I F I E D | U N I T _ C O N V E R S I O N | A U T H O R I T Y - C H E C K | L I S T - P R O C E S S I N G | S I G N _ A S _ P O S T F I X | C O L _ B A C K G R O U N D | I M P L E M E N T A T I O N | I N T E R F A C E - P O O L | T R A N S F O R M A T I O N | I D E N T I F I C A T I O N | E N D E N H A N C E M E N T | L I N E - S E L E C T I O N | I N I T I A L I Z A T I O N | L E F T - J U S T I F I E D | S E L E C T - O P T I O N S | S E L E C T I O N - S E T S | C O M M U N I C A T I O N | C O R R E S P O N D I N G | D E C I M A L _ S H I F T | P R I N T - C O N T R O L | V A L U E - R E Q U E S T | C H A I N - R E Q U E S T | F U N C T I O N - P O O L | F I E L D - S Y M B O L S | F U N C T I O N A L I T Y | I N V E R T E D - D A T E | S E L E C T I O N - S E T | C L A S S - M E T H O D S | O U T P U T - L E N G T H | C L A S S - C O D I N G | C O L _ N E G A T I V E | E R R O R M E S S A G E | F I E L D - G R O U P S | H E L P - R E Q U E S T | N O - E X T E N S I O N | N O - T O P O F P A G E | R E D E F I N I T I O N | D I S P L A Y - M O D E | E N D I N T E R F A C E | E X I T - C O M M A N D | F I E L D - S Y M B O L | N O - S C R O L L I N G | S H O R T D U M P - I D | A C C E S S P O L I C Y | C L A S S - E V E N T S | C O L _ P O S I T I V E | D E C L A R A T I O N S | E N H A N C E M E N T S | F I L T E R - T A B L E | S W I T C H S T A T E S | S Y N T A X - C H E C K | T R A N S P O R T I N G | A S Y N C H R O N O U S | S Y N T A X - T R A C E | T O K E N I Z A T I O N | U S E R - C O M M A N D | W I T H - H E A D I N G | A B A P - S O U R C E | B R E A K - P O I N T | C H A I N - I N P U T | C O M P R E S S I O N | F I X E D - P O I N T | N E W - S E C T I O N | N O N - U N I C O D E | O C C U R R E N C E S | R E S P O N S I B L E | S Y S T E M - C A L L | T R A C E - T A B L E | A B B R E V I A T E D | C H A R - T O - H E X | E N D - O F - F I L E | E N D F U N C T I O N | E N V I R O N M E N T | A S S O C I A T I O N | C O L _ H E A D I N G | E D I T O R - C A L L | E N D - O F - P A G E | E N G I N E E R I N G | I M P L E M E N T E D | I N T E N S I F I E D | R A D I O B U T T O N | S Y S T E M - E X I T | T O P - O F - P A G E | T R A N S A C T I O N | A P P L I C A T I O N | C O N C A T E N A T E | D E S T I N A T I O N | E N H A N C E M E N T | I M M E D I A T E L Y | N O - G R O U P I N G | P R E C O M P I L E D | R E P L A C E M E N T | T I T L E - L I N E S | A C T I V A T I O N | B Y T E - O R D E R | C L A S S - P O O L | C O N N E C T I O N | C O N V E R S I O N | D E F I N I T I O N | D E P A R T M E N T | E X P I R A T I O N | I N H E R I T I N G | M E S S A G E - I D | N O - H E A D I N G | P E R F O R M I N G | Q U E U E - O N L Y | R I G H T S P A C E | S C I E N T I F I C | S T A T U S I N F O | S T R U C T U R E S | S Y N C P O I N T S | W I T H - T I T L E | A T T R I B U T E S | B O U N D A R I E S | C L A S S - D A T A | C O L _ N O R M A L | D D \ / M M \ / Y Y Y Y | D E S C E N D I N G | I N T E R F A C E S | L I N E - C O U N T | M M \ / D D \ / Y Y Y Y | N O N - U N I Q U E | P R E S E R V I N G | S E L E C T I O N S | S T A T E M E N T S | S U B R O U T I N E | T R U N C A T I O N | T Y P E - P O O L S | A R I T H M E T I C | B A C K G R O U N D | E N D P R O V I D E | E X C E P T I O N S | I D E N T I F I E R | I N D E X - L I N E | O B L I G A T O R Y | P A R A M E T E R S | P E R C E N T A G E | P U S H B U T T O N | R E S O L U T I O N | C O M P O N E N T S | D E A L L O C A T E | D I S C O N N E C T | D U P L I C A T E S | F I R S T - L I N E | H E A D - L I N E S | N O - D I S P L A Y | O C C U R R E N C E | R E S P E C T I N G | R E T U R N C O D E | S U B M A T C H E S | T R A C E - F I L E | A S C E N D I N G | B Y P A S S I N G | E N D M O D U L E | E X C E P T I O N | E X C L U D I N G | E X P O R T I N G | I N C R E M E N T | M A T C H C O D E | P A R A M E T E R | P A R T I A L L Y | P R E F E R R E D | R E F E R E N C E | R E P L A C I N G | R E T U R N I N G | S E L E C T I O N | S E P A R A T E D | S P E C I F I E D | S T A T E M E N T | T I M E S T A M P | T Y P E - P O O L | A C C E P T I N G | A P P E N D A G E | A S S I G N I N G | C O L _ G R O U P | C O M P A R I N G | C O N S T A N T S | D A N G E R O U S | I M P O R T I N G | I N S T A N C E S | L E F T S P A C E | L O G - P O I N T | Q U I C K I N F O | R E A D - O N L Y | S C R O L L I N G | S Q L S C R I P T | S T E P - L O O P | T O P - L I N E S | T R A N S L A T E | A P P E N D I N G | A U T H O R I T Y | C H A R A C T E R | C O M P O N E N T | C O N D I T I O N | D I R E C T O R Y | D U P L I C A T E | M E S S A G I N G | R E C E I V I N G | S U B S C R E E N | A C C O R D I N G | C O L _ T O T A L | E N D - L I N E S | E N D M E T H O D | E N D S E L E C T | E X P A N D I N G | E X T E N S I O N | I N C L U D I N G | I N F O T Y P E S | I N T E R F A C E | I N T E R V A L S | L I N E - S I Z E | P F - S T A T U S | P R O C E D U R E | P R O T E C T E D | R E Q U E S T E D | R E S U M A B L E | R I G H T P L U S | S A P - S P O O L | S E C O N D A R Y | S T R U C T U R E | S U B S T R I N G | T A B L E V I E W | N U M O F C H A R | A D J A C E N T | A N A L Y S I S | A S S I G N E D | B A C K W A R D | C H A N N E L S | C H E C K B O X | C O N T I N U E | C R I T I C A L | D A T A I N F O | D D \ / M M \ / Y Y | D U R A T I O N | E N C O D I N G | E N D C L A S S | F U N C T I O N | L E F T P L U S | L I N E F E E D | M M \ / D D \ / Y Y | O V E R F L O W | R E C E I V E D | S K I P P I N G | S O R T A B L E | S T A N D A R D | S U B T R A C T | S U P P R E S S | T A B S T R I P | T I T L E B A R | T R U N C A T E | U N A S S I G N | W H E N E V E R | A N A L Y Z E R | C O A L E S C E | C O M M E N T S | C O N D E N S E | D E C I M A L S | D E F E R R E D | E N D W H I L E | E X P L I C I T | K E Y W O R D S | M E S S A G E S | P O S I T I O N | P R I O R I T Y | R E C E I V E R | R E N A M I N G | T I M E Z O N E | T R A I L I N G | A L L O C A T E | C E N T E R E D | C I R C U L A R | C O N T R O L S | C U R R E N C Y | D E L E T I N G | D E S C R I B E | D I S T A N C E | E N D C A T C H | E X P O N E N T | E X T E N D E D | G E N E R A T E | I G N O R I N G | I N C L U D E S | I N T E R N A L | M A J O R - I D | M O D I F I E R | N E W - L I N E | O P T I O N A L | P R O P E R T Y | R O L L B A C K | S T A R T I N G | S U P P L I E D | A B S T R A C T | C H A N G I N G | C O N T E X T S | C R E A T I N G | C U S T O M E R | D A T A B A S E | D A Y L I G H T | D E F I N I N G | D I S T I N C T | D I
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 ( A c c e p t F i l t e r | A c c e p t P a t h I n f o | A c c e s s F i l e N a m e | A c t i o n | A d d A l t | A d d A l t B y E n c o d i n g | A d d A l t B y T y p e | A d d C h a r s e t | A d d D e f a u l t C h a r s e t | A d d D e s c r i p t i o n | A d d E n c o d i n g | A d d H a n d l e r | A d d I c o n | A d d I c o n B y E n c o d i n g | A d d I c o n B y T y p e | A d d I n p u t F i l t e r | A d d L a n g u a g e | A d d M o d u l e I n f o | A d d O u t p u t F i l t e r | A d d O u t p u t F i l t e r B y T y p e | A d d T y p e | A l i a s | A l i a s M a t c h | A l l o w | A l l o w C O N N E C T | A l l o w E n c o d e d S l a s h e s | A l l o w M e t h o d s | A l l o w O v e r r i d e | A l l o w O v e r r i d e L i s t | A n o n y m o u s | A n o n y m o u s _ L o g E m a i l | A n o n y m o u s _ M u s t G i v e E m a i l | A n o n y m o u s _ N o U s e r I D | A n o n y m o u s _ V e r i f y E m a i l | A s y n c R e q u e s t W o r k e r F a c t o r | A u t h B a s i c A u t h o r i t a t i v e | A u t h B a s i c F a k e | A u t h B a s i c P r o v i d e r | A u t h B a s i c U s e D i g e s t A l g o r i t h m | A u t h D B D U s e r P W Q u e r y | A u t h D B D U s e r R e a l m Q u e r y | A u t h D B M G r o u p F i l e | A u t h D B M T y p e | A u t h D B M U s e r F i l e | A u t h D i g e s t A l g o r i t h m | A u t h D i g e s t D o m a i n | A u t h D i g e s t N o n c e L i f e t i m e | A u t h D i g e s t P r o v i d e r | A u t h D i g e s t Q o p | A u t h D i g e s t S h m e m S i z e | A u t h F o r m A u t h o r i t a t i v e | A u t h F o r m B o d y | A u t h F o r m D i s a b l e N o S t o r e | A u t h F o r m F a k e B a s i c A u t h | A u t h F o r m L o c a t i o n | A u t h F o r m L o g i n R e q u i r e d L o c a t i o n | A u t h F o r m L o g i n S u c c e s s L o c a t i o n | A u t h F o r m L o g o u t L o c a t i o n | A u t h F o r m M e t h o d | A u t h F o r m M i m e t y p e | A u t h F o r m P a s s w o r d | A u t h F o r m P r o v i d e r | A u t h F o r m S i t e P a s s p h r a s e | A u t h F o r m S i z e | A u t h F o r m U s e r n a m e | A u t h G r o u p F i l e | A u t h L D A P A u t h o r i z e P r e f i x | A u t h L D A P B i n d A u t h o r i t a t i v e | A u t h L D A P B i n d D N | A u t h L D A P B i n d P a s s w o r d | A u t h L D A P C h a r s e t C o n f i g | A u t h L D A P C o m p a r e A s U s e r | A u t h L D A P C o m p a r e D N O n S e r v e r | A u t h L D A P D e r e f e r e n c e A l i a s e s | A u t h L D A P G r o u p A t t r i b u t e | A u t h L D A P G r o u p A t t r i b u t e I s D N | A u t h L D A P I n i t i a l B i n d A s U s e r | A u t h L D A P I n i t i a l B i n d P a t t e r n | A u t h L D A P M a x S u b G r o u p D e p t h | A u t h L D A P R e m o t e U s e r A t t r i b u t e | A u t h L D A P R e m o t e U s e r I s D N | A u t h L D A P S e a r c h A s U s e r | A u t h L D A P S u b G r o u p A t t r i b u t e | A u t h L D A P S u b G r o u p C l a s s | A u t h L D A P U r l | A u t h M e r g i n g | A u t h N a m e | A u t h n C a c h e C o n t e x t | A u t h n C a c h e E n a b l e | A u t h n C a c h e P r o v i d e F o r | A u t h n C a c h e S O C a c h e | A u t h n C a c h e T i m e o u t | A u t h n z F c g i C h e c k A u t h n P r o v i d e r | A u t h n z F c g i D e f i n e P r o v i d e r | A u t h T y p e | A u t h U s e r F i l e | A u t h z D B D L o g i n T o R e f e r e r | A u t h z D B D Q u e r y | A u t h z D B D R e d i r e c t Q u e r y | A u t h z D B M T y p e | A u t h z S e n d F o r b i d d e n O n F a i l u r e | B a l a n c e r G r o w t h | B a l a n c e r I n h e r i t | B a l a n c e r M e m b e r | B a l a n c e r P e r s i s t | B r o w s e r M a t c h | B r o w s e r M a t c h N o C a s e | B u f f e r e d L o g s | B u f f e r S i z e | C a c h e D e f a u l t E x p i r e | C a c h e D e t a i l H e a d e r | C a c h e D i r L e n g t h | C a c h e D i r L e v e l s | C a c h e D i s a b l e | C a c h e E n a b l e | C a c h e F i l e | C a c h e H e a d e r | C a c h e I g n o r e C a c h e C o n t r o l | C a c h e I g n o r e H e a d e r s | C a c h e I g n o r e N o L a s t M o d | C a c h e I g n o r e Q u e r y S t r i n g | C a c h e I g n o r e U R L S e s s i o n I d e n t i f i e r s | C a c h e K e y B a s e U R L | C a c h e L a s t M o d i f i e d F a c t o r | C a c h e L o c k | C a c h e L o c k M a x A g e | C a c h e L o c k P a t h | C a c h e M a x E x p i r e | C a c h e M a x F i l e S i z e | C a c h e M i n E x p i r e | C a c h e M i n F i l e S i z e | C a c h e N e g o t i a t e d D o c s | C a c h e Q u i c k H a n d l e r | C a c h e R e a d S i z e | C a c h e R e a d T i m e | C a c h e R o o t | C a c h e S o c a c h e | C a c h e S o c a c h e M a x S i z e | C a c h e S o c a c h e M a x T i m e | C a c h e S o c a c h e M i n T i m e | C a c h e S o c a c h e R e a d S i z e | C a c h e S o c a c h e R e a d T i m e | C a c h e S t a l e O n E r r o r | C a c h e S t o r e E x p i r e d | C a c h e S t o r e N o S t o r e | C a c h e S t o r e P r i v a t e | C G I D S c r i p t T i m e o u t | C G I M a p E x t e n s i o n | C h a r s e t D e f a u l t | C h a r s e t O p t i o n s | C h a r s e t S o u r c e E n c | C h e c k C a s e O n l y | C h e c k S p e l l i n g | C h r o o t D i r | C o n t e n t D i g e s t | C o o k i e D o m a i n | C o o k i e E x p i r e s | C o o k i e N a m e | C o o k i e S t y l e | C o o k i e T r a c k i n g | C o r e D u m p D i r e c t o r y | C u s t o m L o g | D a v | D a v D e p t h I n f i n i t y | D a v G e n e r i c L o c k D B | D a v L o c k D B | D a v M i n T i m e o u t | D B D E x p t i m e | D B D I n i t S Q L | D B D K e e p | D B D M a x | D B D M i n | D B D P a r a m s | D B D P e r s i s t | D B D P r e p a r e S Q L | D B D r i v e r | D e f a u l t I c o n | D e f a u l t L a n g u a g e | D e f a u l t R u n t i m e D i r | D e f a u l t T y p e | D e f i n e | D e f l a t e B u f f e r S i z e | D e f l a t e C o m p r e s s i o n L e v e l | D e f l a t e F i l t e r N o t e | D e f l a t e I n f l a t e L i m i t R e q u e s t B o d y | D e f l a t e I n f l a t e R a t i o B u r s t | D e f l a t e I n f l a t e R a t i o L i m i t | D e f l a t e M e m L e v e l | D e f l a t e W i n d o w S i z e | D e n y | D i r e c t o r y C h e c k H a n d l e r | D i r e c t o r y I n d e x | D i r e c t o r y I n d e x R e d i r e c t | D i r e c t o r y S l a s h | D o c u m e n t R o o t | D T r a c e P r i v i l e g e s | D u m p I O I n p u t | D u m p I O O u t p u t | E n a b l e E x c e p t i o n H o o k | E n a b l e M M A P | E n a b l e S e n d f i l e | E r r o r | E r r o r D o c u m e n t | E r r o r L o g | E r r o r L o g F o r m a t | E x a m p l e | E x p i r e s A c t i v e | E x p i r e s B y T y p e | E x p i r e s D e f a u l t | E x t e n d e d S t a t u s | E x t F i l t e r D e f i n e | E x t F i l t e r O p t i o n s | F a l l b a c k R e s o u r c e | F i l e E T a g | F i l t e r C h a i n | F i l t e r D e c l a r e | F i l t e r P r o t o c o l | F i l t e r P r o v i d e r | F i l t e r T r a c e | F o r c e L a n g u a g e P r i o r i t y | F o r c e T y p e | F o r e n s i c L o g | G p r o f D i r | G r a c e f u l S h u t d o w n T i m e o u t | G r o u p | H e a d e r | H e a d e r N a m e | H e a r t b e a t A d d r e s s | H e a r t b e a t L i s t e n | H e a r t b e a t M a x S e r v e r s | H e a r t b e a t S t o r a g e | H e a r t b e a t S t o r a g e | H o s t n a m e L o o k u p s | I d e n t i t y C h e c k | I d e n t i t y C h e c k T i m e o u t | I m a p B a s e | I m a p D e f a u l t | I m a p M e n u | I n c l u d e | I n c l u d e O p t i o n a l | I n d e x H e a d I n s e r t | I n d e x I g n o r e | I n d e x I g n o r e R e s e t | I n d e x O p t i o n s | I n d e x O r d e r D e f a u l t | I n d e x S t y l e S h e e t | I n p u t S e d |
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 _ a h k p a t h | a _ a h k v e r s i o n | a _ a p p d a t a | a _ a p p d a t a c o m m o n | a _ a u t o t r i m | a _ b a t c h l i n e s | a _ c a r e t x | a _ c a r e t y | a _ c o m p u t e r n a m e | a _ c o n t r o l d e l a y | a _ c u r s o r | a _ d d | a _ d d d | a _ d d d d | a _ d e f a u l t m o u s e s p e e d | a _ d e s k t o p | a _ d e s k t o p c o m m o n | a _ d e t e c t h i d d e n t e x t | a _ d e t e c t h i d d e n w i n d o w s | a _ e n d c h a r | a _ e v e n t i n f o | a _ e x i t r e a s o n | a _ f o r m a t f l o a t | a _ f o r m a t i n t e g e r | a _ g u i | a _ g u i e v e n t | a _ g u i c o n t r o l | a _ g u i c o n t r o l e v e n t | a _ g u i h e i g h t | a _ g u i w i d t h | a _ g u i x | a _ g u i y | a _ h o u r | a _ i c o n f i l e | a _ i c o n h i d d e n | a _ i c o n n u m b e r | a _ i c o n t i p | a _ i n d e x | a _ i p a d d r e s s 1 | a _ i p a d d r e s s 2 | a _ i p a d d r e s s 3 | a _ i p a d d r e s s 4 | a _ i s a d m i n | a _ i s c o m p i l e d | a _ i s c r i t i c a l | a _ i s p a u s e d | a _ i s s u s p e n d e d | a _ i s u n i c o d e | a _ k e y d e l a y | a _ l a n g u a g e | a _ l a s t e r r o r | a _ l i n e f i l e | a _ l i n e n u m b e r | a _ l o o p f i e l d | a _ l o o p f i l e a t t r i b | a _ l o o p f i l e d i r | a _ l o o p f i l e e x t | a _ l o o p f i l e f u l l p a t h | a _ l o o p f i l e l o n g p a t h | a _ l o o p f i l e n a m e | a _ l o o p f i l e s h o r t n a m e | a _ l o o p f i l e s h o r t p a t h | a _ l o o p f i l e s i z e | a _ l o o p f i l e s i z e k b | a _ l o o p f i l e s i z e m b | a _ l o o p f i l e t i m e a c c e s s e d | a _ l o o p f i l e t i m e c r e a t e d | a _ l o o p f i l e t i m e m o d i f i e d | a _ l o o p r e a d l i n e | a _ l o o p r e g k e y | a _ l o o p r e g n a m e | a _ l o o p r e g s u b k e y | a _ l o o p r e g t i m e m o d i f i e d | a _ l o o p r e g t y p e | a _ m d a y | a _ m i n | a _ m m | a _ m m m | a _ m m m m | a _ m o n | a _ m o u s e d e l a y | a _ m s e c | a _ m y d o c u m e n t s | a _ n o w | a _ n o w u t c | a _ n u m b a t c h l i n e s | a _ o s t y p e | a _ o s v e r s i o n | a _ p r i o r h o t k e y | p r o g r a m f i l e s | a _ p r o g r a m f i l e s | a _ p r o g r a m s | a _ p r o g r a m s c o m m o n | a _ s c r e e n h e i g h t | a _ s c r e e n w i d t h | a _ s c r i p t d i r | a _ s c r i p t f u l l p a t h | a _ s c r i p t n a m e | a _ s e c | a _ s p a c e | a _ s t a r t m e n u | a _ s t a r t m e n u c o m m o n | a _ s t a r t u p | a _ s t a r t u p c o m m o n | a _ s t r i n g c a s e s e n s e | a _ t a b | a _ t e m p | a _ t h i s f u n c | a _ t h i s h o t k e y | a _ t h i s l a b e l | a _ t h i s m e n u | a _ t h i s m e n u i t e m | a _ t h i s m e n u i t e m p o s | a _ t i c k c o u n t | a _ t i m e i d l e | a _ t i m e i d l e p h y s i c a l | a _ t i m e s i n c
! 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 ] * ) ( A b s t r a c t S c e n a r i o | A b s t r a k t S c e n a r i o | A c h t e r g r o n d | A e r | Æ r | A g t e r g r o n d | A l l y ' a l l | A n t e c e d e n t e s | A n t e c e d e n t s | A t b u r ð a r á s | A t b u r ð a r á s i r | A w w w , l o o k m a t e | B 4 | B a c k g r o u n d | B a g g r u n d | B a k g r u n d | B a k g r u n n | B a k g r u n n u r | B e i s p i e l e | B e i s p i l l e r | B ố i c ả n h | C e f n d i r | C e n a r i o | C e n á r i o | C e n a r i o d e F u n d o | C e n á r i o d e F u n d o | C e n a r i o s | C e n á r i o s | C o n t e s t o | C o n t e x t | C o n t e x t e | C o n t e x t o | C o n t o | C o n t o h | C o n t o n e | D æ m i | D a s a r | D e a d m e n t e l l n o t a l e s | D e l i n e a c a o d o C e n a r i o | D e l i n e a ç ã o d o C e n á r i o | D i s i s w h a t w e n t d o w n | D ữ l i ệ u | D y a g r a m s e n a r y o | D y a g r a m S e n a r y o | E g z a n p | E j e m p l o s | E k s e m p l e r | E k z e m p l o j | E n g h r e i f f t i a u | E s b o z o d o e s c e n a r i o | E s c e n a r i | E s c e n a r i o | E s e m p i | E s q u e m a d e l ' e s c e n a r i | E s q u e m a d e l e s c e n a r i o | E s q u e m a d o C e n a r i o | E s q u e m a d o C e n á r i o | E x a m p l e s | E X A M P L Z | E x e m p e l | E x e m p l e | E x e m p l e s | E x e m p l o s | F i r s t o f f | F o n o | F o r g a t ó k ö n y v | F o r g a t ó k ö n y v v á z l a t | F u n d o | G e ç m i ş | g h a n t o H | G r u n d l a g e | H a n n e r g r o n d | H á t t é r | H e a v e t o | I s t o r i k | J u h t u m i d | K e a d a a n | K h u n g k ị c h b ả n | K h u n g t ì n h h u ố n g | K ị c h b ả n | K o n c e p t | K o n s e p s k e n a r i o | K o n t è k s | K o n t e k s t | K o n t e k s t a s | K o n t e k s t s | K o n t e x t | K o n t u r o d e l a s c e n a r o | L a t a r B e l a k a n g | l u t | l u t c h o v n a t l h | l u t m e y | L ý s i n g A t b u r ð a r á s a r | L ý s i n g D æ m a | M e n g g a r i s k a n S e n a r i o | M I S H U N | M I S H U N S R S L Y | m o ' | N á č r t S c e n á r a | N á č r t S c é n á ř e | N á č r t S c e n á r u | O r i s s c e n a r i j a | Ö r n e k l e r | O s n o v a | O s n o v a S c e n á r a | O s n o v a s c é n á ř e | O s n u t e k | O z a d j e | P a r a u g s | P a v y z d ž i a i | P é l d á k | P i e m ē r i | P l a n d u s c é n a r i o | P l a n d u S c é n a r i o | P l a n s e n a r y o | P l a n S e n a r y o | P l a n g v u m S z e n a r i o | P o z a d í | P o z a d i e | P o z a d i n a | P r í k l a d y | P ř í k l a d y | P r i m e r | P r i m e r i | P r i m j e r i | P r z y k ł a d y | R a a m s t s e n a a r i u m | R e c k o n i t ' s l i k e | R e r e f o n s | S c e n á r | S c é n á ř | S c e n a r i e | S c e n a r i j | S c e n a r i j a i | S c e n a r i j a u s š a b l o n a s | S c e n a r i j i | S c e n ā r i j s | S c e n ā r i j s p ē c p a r a u g a | S c e n a r i j u s | S c e n a r i o | S c é n a r i o | S c e n a r i o A m l i n e l l o l | S c e n a r i o O u t l i n e | S c e n a r i o T e m p l a t e | S c e n a r i o m a l | S c e n a r i o m a l l | S c e n a r i o s | S c e n a r i u | S c e n a r i u s z | S c e n a r o | S c h e m a d e l l o s c e n a r i o | S e ð e | S e t h e | S e þ e | S e n a r i o | S e n a r y o | S e n a r y o d e s k r i p s y o n | S e n a r y o D e s k r i p s y o n | S e n a r y o t a s l a ğ ı | S h i v e r m e t i m b e r s | S i t u ā c i j a | S i t u a i | S i t u a s i e | S i t u a s i e U i t e e n s e t t i n g | S k e n a r i o | S k e n a r i o k o n s e p | S k i c a | S t r u c t u r a s c e n a r i u | S t r u c t u r ă s c e n a r i u | S t r u k t u r a s c e n a r i j a | S t s e n a a r i u m | S w a | S w a h w a e r s w a | S w a h w æ r s w a | S z a b l o n s c e n a r i u s z a | S z e n a r i o | S z e n a r i o g r u n d r i s s | T a p a u k s e t | T a p a u s | T a p a u s a i h i o | T a u s t | T a u s t a | T e m p l a t e K e a d a a n | T e m p l a t e S e n a r i o | T e m p l a t e S i t u a i | T h e t h i n g o f i t i s | T ì n h h u ố n g | V a r i a n t a i | V o o r b e e l d e | V o o r b e e l d e n | W h a r r i m e a n i s | Y o \ - h o \ - h o | Y o u ' l l w a n n a | Z a ł o ż e n i a | Π α ρ α δ ε ί γ μ α τ α | Π ε ρ ι γ ρ α φ ή Σ ε <EFBFBD>
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 ( ? : a b o u t | a b s | a d d A t t r | a d d A t t r i b u t e E d i t o r N o d e H e l p | a d d D y n a m i c | a d d N e w S h e l f T a b | a d d P P | a d d P a n e l C a t e g o r y | a d d P r e f i x T o N a m e | a d v a n c e T o N e x t D r i v e n K e y | a f f e c t e d N e t | a f f e c t s | a i m C o n s t r a i n t | a i r | a l i a s | a l i a s A t t r | a l i g n | a l i g n C t x | a l i g n C u r v e | a l i g n S u r f a c e | a l l V i e w F i t | a m b i e n t L i g h t | a n g l e | a n g l e B e t w e e n | a n i m C o n e | a n i m C u r v e E d i t o r | a n i m D i s p l a y | a n i m V i e w | a n n o t a t e | a p p e n d S t r i n g A r r a y | a p p l i c a t i o n N a m e | a p p l y A t t r P r e s e t | a p p l y T a k e | a r c L e n D i m C o n t e x t | a r c L e n g t h D i m e n s i o n | a r c l e n | a r r a y M a p p e r | a r t 3 d P a i n t C t x | a r t A t t r C t x | a r t A t t r P a i n t V e r t e x C t x | a r t A t t r S k i n P a i n t C t x | a r t A t t r T o o l | a r t B u i l d P a i n t M e n u | a r t F l u i d A t t r C t x | a r t P u t t y C t x | a r t S e l e c t C t x | a r t S e t P a i n t C t x | a r t U s e r P a i n t C t x | a s s i g n C o m m a n d | a s s i g n I n p u t D e v i c e | a s s i g n V i e w p o r t F a c t o r i e s | a t t a c h C u r v e | a t t a c h D e v i c e A t t r | a t t a c h S u r f a c e | a t t r C o l o r S l i d e r G r p | a t t r C o m p a t i b i l i t y | a t t r C o n t r o l G r p | a t t r E n u m O p t i o n M e n u | a t t r E n u m O p t i o n M e n u G r p | a t t r F i e l d G r p | a t t r F i e l d S l i d e r G r p | a t t r N a v i g a t i o n C o n t r o l G r p | a t t r P r e s e t E d i t W i n | a t t r i b u t e E x i s t s | a t t r i b u t e I n f o | a t t r i b u t e M e n u | a t t r i b u t e Q u e r y | a u t o K e y f r a m e | a u t o P l a c e | b a k e C l i p | b a k e F l u i d S h a d i n g | b a k e P a r t i a l H i s t o r y | b a k e R e s u l t s | b a k e S i m u l a t i o n | b a s e n a m e | b a s e n a m e E x | b a t c h R e n d e r | b e s s e l | b e v e l | b e v e l P l u s | b i n M e m b e r s h i p | b i n d S k i n | b l e n d 2 | b l e n d S h a p e | b l e n d S h a p e E d i t o r | b l e n d S h a p e P a n e l | b l e n d T w o A t t r | b l i n d D a t a T y p e | b o n e L a t t i c e | b o u n d a r y | b o x D o l l y C t x | b o x Z o o m C t x | b u f f e r C u r v e | b u i l d B o o k m a r k M e n u | b u i l d K e y f r a m e M e n u | b u t t o n | b u t t o n M a n i p | C B G | c a c h e F i l e | c a c h e F i l e C o m b i n e | c a c h e F i l e M e r g e | c a c h e F i l e T r a c k | c a m e r a | c a m e r a V i e w | c a n C r e a t e M a n i p | c a n v a s | c a p i t a l i z e S t r i n g | c a t c h | c a t c h Q u i e t | c e i l | c h a n g e S u b d i v C o m p o n e n t D i s p l a y L e v e l | c h a n g e S u b d i v R e g i o n | c h a n n e l B o x | c h a r a c t e r | c h a r a c t e r M a p | c h a r a c t e r O u t l i n e E d i t o r | c h a r a c t e r i z e | c h d i r | c h e c k B o x | c h e c k B o x G r p | c h e c k D e f a u l t R e n d e r G l o b a l s | c h o i c e | c i r c l e | c i r c u l a r F i l l e t | c l a m p | c l e a r | c l e a r C a c h e | c l i p | c l i p E d i t o r | c l i p E d i t o r C u r r e n t T i m e C t x | c l i p S c h e d u l e | c l i p S c h e d u l e r O u t l i n e r | c l i p T r i m B e f o r e | c l o s e C u r v e | c l o s e S u r f a c e | c l u s t e r | c m d F i l e O u t p u t | c m d S c r o l l F i e l d E x e c u t e r | c m d S c r o l l F i e l d R e p o r t e r | c m d S h e l l | c o a r s e n S u b d i v S e l e c t i o n L i s t | c o l l i s i o n | c o l o r | c o l o r A t P o i n t | c o l o r E d i t o r | c o l o r I n d e x | c o l o r I n d e x S l i d e r G r p | c o l o r S l i d e r B u t t o n G r p | c o l o r S l i d e r G r p | c o l u m n L a y o u t | c o m m a n d E c h o | c o m m a n d L i n e | c o m m a n d P o r t | c o m p a c t H a i r S y s t e m | c o m p o n e n t E d i t o r | c o m p o s i t i n g I n t e r o p | c o m p u t e P o l y s e t V o l u m e | c o n d i t i o n | c o n e | c o n f i r m D i a l o g | c o n n e c t A t t r | c o n n e c t C o n t r o l | c o n n e c t D y n a m i c | c o n n e c t J o i n t | c o n n e c t i o n I n f o | c o n s t r a i n | c o n s t r a i n V a l u e | c o n s t r u c t i o n H i s t o r y | c o n t a i n e r | c o n t a i n s M u l t i b y t e | c o n t e x t I n f o | c o n t r o l | c o n v e r t F r o m O l d L a y e r s | c o n v e r t I f f T o P s d | c o n v e r t L i g h t m a p | c o n v e r t S o l i d T x | c o n v e r t T e s s e l l a t i o n | c o n v e r t U n i t | c o p y A r r a y | c o p y F l e x o r | c o p y K e y | c o p y S k i n W e i g h t s | c o s | c p B u t t o n | c p C a c h e | c p C l o t h S e t | c p C o l l i s i o n | c p C o n s t r a i n t | c p C o n v C l o t h T o M e s h | c p F o r c e s | c p G e t S o l v e r A t t r | c p P a n e l | c p P r o p e r t y | c p R i g i d C o l l i s i o n F i l t e r | c p S e a m | c p S e t E d i t | c p S e t S o l v e r A t t r | c p S o l v e r | c p S o l v e r T y p e s | c p T o o l | c p U p d a t e C l o t h U V s | c r e a t e D i s p l a y L a y e r | c r e a t e D r a w C t x | c r e a t e E d i t o r | c r e a t e L a y e r e d P s d F i l e | c r e a t e M o t i o n F i e l d | c r e a t e N e w S h e l f | c r e a t e N o d e | c r e a t e R e n d e r L a y e r | c r e a t e S u b d i v R e g i o n | c r o s s | c r o s s P r o d u c t | c t x A b o r t | c t x C o m p l e t i o n | c t x E d i t M o d e | c t x T r a v e r s e | c u r r e n t C t x | c u r r e n t T i m e | c u r r e n t T i m e C t x | c u r r e n t U n i t | c u r v e | c u r v e A d d P t C t x | c u r v e C V C t x | c u r v e E P C t x | c u r v e E d i t o r C t x | c u r v e I n t e r s e c t | c u r v e M o v e E P C t x | c u r v e O n S u r f a c e | c u r v e S k e t c h C t x | c u t K e y | c y c l e C h e c k | c y l i n d e r | d a g P o s e | d a t e | d e f a u l t L i g h t L i s t C h e c k B o x | d e f a u l t N a v i g a t i o n | d e f i n e D a t a S e r v e r | d e f i n e V i r t u a l D e v i c e | d e f o r m e r | d e g _ t o _ r a d | d e l e t e | d e l e t e A t t r | d e l e t e S h a d i n g G r o u p s A n d M a t e r i a l s | d e l e t e S h e l f T a b | d e l e t e U I | d e l e t e U n u s e d B r u s h e s | d e l r a n d s t r | d e t a c h C u r v e | d e t a c h D e v i c e A t t r | d e t a c h S u r f a c e | d e v i c e E d i t o r | d e v i c e P a n e l | d g I n f o | d g d i r t y | d g e v a l | d g t i m e r | d i m W h e n | d i r e c t K e y C t x | d i r e c t i o n a l L i g h t | d i r m a p | d i r n a m e | d i s a b l e | d i s c o n n e c t A t t r | d i s c o n n e c t J o i n t | d i s k C a c h e | d i s p l a c e m e n t T o P o l y | d i s p l a y A f f e c t e d | d i s p l a y C o l o r | d i s p l a y C u l l | d i s p l a y L e v e l O f D e t a i l | d i s p l a y P r e f | d i s p l a y R G B C o l o r | d i s p l a y S m o o t h n e
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 ( ? : C O N T E N T _ | D O C U M E N T _ | G A T E W A Y _ | H T T P _ | H T T P S | i f _ n o t _ e m p t y | P A T H _ | Q U E R Y _ | R E D I R E C T _ | R E M O T E _ | R E Q U E S T _ | S C G I | S C R I P T _ | S E R V E R _ | h t t p | s e r v e r | e v e n t s | l o c a t i o n | i n c l u d e | a c c e p t _ m u t e x | a c c e p t _ m u t e x _ d e l a y | a c c e s s _ l o g | a d d _ a f t e r _ b o d y | a d d _ b e f o r e _ b o d y | a d d _ h e a d e r | a d d i t i o n _ t y p e s | a i o | a l i a s | a l l o w | a n c i e n t _ b r o w s e r | a n c i e n t _ b r o w s e r _ v a l u e | a u t h | a u t h _ b a s i c | a u t h _ b a s i c _ u s e r _ f i l e | a u t h _ h t t p | a u t h _ h t t p _ h e a d e r | a u t h _ h t t p _ t i m e o u t | a u t o i n d e x | a u t o i n d e x _ e x a c t _ s i z e | a u t o i n d e x _ l o c a l t i m e | b r e a k | c h a r s e t | c h a r s e t _ m a p | c h a r s e t _ t y p e s | c h u n k e d _ t r a n s f e r _ e n c o d i n g | c l i e n t _ b o d y _ b u f f e r _ s i z e | c l i e n t _ b o d y _ i n _ f i l e _ o n l y | c l i e n t _ b o d y _ i n _ s i n g l e _ b u f f e r | c l i e n t _ b o d y _ t e m p _ p a t h | c l i e n t _ b o d y _ t i m e o u t | c l i e n t _ h e a d e r _ b u f f e r _ s i z e | c l i e n t _ h e a d e r _ t i m e o u t | c l i e n t _ m a x _ b o d y _ s i z e | c o n n e c t i o n _ p o o l _ s i z e | c r e a t e _ f u l l _ p u t _ p a t h | d a e m o n | d a v _ a c c e s s | d a v _ m e t h o d s | d e b u g _ c o n n e c t i o n | d e b u g _ p o i n t s | d e f a u l t _ t y p e | d e n y | d e v p o l l _ c h a n g e s | d e v p o l l _ e v e n t s | d i r e c t i o | d i r e c t i o _ a l i g n m e n t | d i s a b l e _ s y m l i n k s | e m p t y _ g i f | e n v | e p o l l _ e v e n t s | e r r o r _ l o g | e r r o r _ p a g e | e x p i r e s | f a s t c g i _ b u f f e r _ s i z e | f a s t c g i _ b u f f e r s | f a s t c g i _ b u s y _ b u f f e r s _ s i z e | f a s t c g i _ c a c h e | f a s t c g i _ c a c h e _ b y p a s s | f a s t c g i _ c a c h e _ k e y | f a s t c g i _ c a c h e _ l o c k | f a s t c g i _ c a c h e _ l o c k _ t i m e o u t | f a s t c g i _ c a c h e _ m e t h o d s | f a s t c g i _ c a c h e _ m i n _ u s e s | f a s t c g i _ c a c h e _ p a t h | f a s t c g i _ c a c h e _ p u r g e | f a s t c g i _ c a c h e _ u s e _ s t a l e | f a s t c g i _ c a c h e _ v a l i d | f a s t c g i _ c o n n e c t _ t i m e o u t | f a s t c g i _ h i d e _ h e a d e r | f a s t c g i _ i g n o r e _ c l i e n t _ a b o r t | f a s t c g i _ i g n o r e _ h e a d e r s | f a s t c g i _ i n d e x | f a s t c g i _ i n t e r c e p t _ e r r o r s | f a s t c g i _ k e e p _ c o n n | f a s t c g i _ m a x _ t e m p _ f i l e _ s i z e | f a s t c g i _ n e x t _ u p s t r e a m | f a s t c g i _ n o _ c a c h e | f a s t c g i _ p a r a m | f a s t c g i _ p a s s | f a s t c g i _ p a s s _ h e a d e r | f a s t c g i _ r e a d _ t i m e o u t | f a s t c g i _ r e d i r e c t _ e r r o r s | f a s t c g i _ s e n d _ t i m e o u t | f a s t c g i _ s p l i t _ p a t h _ i n f o | f a s t c g i _ s t o r e | f a s t c g i _ s t o r e _ a c c e s s | f a s t c g i _ t e m p _ f i l e _ w r i t e _ s i z e | f a s t c g i _ t e m p _ p a t h | f l v | g e o | g e o i p _ c i t y | g e o i p _ c o u n t r y | g o o g l e _ p e r f t o o l s _ p r o f i l e s | g z i p | g z i p _ b u f f e r s | g z i p _ c o m p _ l e v e l | g z i p _ d i s a b l e | g z i p _ h t t p _ v e r s i o n | g z i p _ m i n _ l e n g t h | g z i p _ p r o x i e d | g z i p _ s t a t i c | g z i p _ t y p e s | g z i p _ v a r y | i f | i f _ m o d i f i e d _ s i n c e | i g n o r e _ i n v a l i d _ h e a d e r s | i m a g e _ f i l t e r | i m a g e _ f i l t e r _ b u f f e r | i m a g e _ f i l t e r _ j p e g _ q u a l i t y | i m a g e _ f i l t e r _ s h a r p e n | i m a g e _ f i l t e r _ t r a n s p a r e n c y | i m a p _ c a p a b i l i t i e s | i m a p _ c l i e n t _ b u f f e r | i n c l u d e | i n d e x | i n t e r n a l | i p _ h a s h | k e e p a l i v e | k e e p a l i v e _ d i s a b l e | k e e p a l i v e _ r e q u e s t s | k e e p a l i v e _ t i m e o u t | k q u e u e _ c h a n g e s | k q u e u e _ e v e n t s | l a r g e _ c l i e n t _ h e a d e r _ b u f f e r s | l i m i t _ c o n n | l i m i t _ c o n n _ l o g _ l e v e l | l i m i t _ c o n n _ z o n e | l i m i t _ e x c e p t | l i m i t _ r a t e | l i m i t _ r a t e _ a f t e r | l i m i t _ r e q | l i m i t _ r e q _ l o g _ l e v e l | l i m i t _ r e q _ z o n e | l i m i t _ z o n e | l i n g e r i n g _ c l o s e | l i n g e r i n g _ t i m e | l i n g e r i n g _ t i m e o u t | l i s t e n | l o c a t i o n | l o c k _ f i l e | l o g _ f o r m a t | l o g _ f o r m a t _ c o m b i n e d | l o g _ n o t _ f o u n d | l o g _ s u b r e q u e s t | m a p | m a p _ h a s h _ b u c k e t _ s i z e | m a p _ h a s h _ m a x _ s i z e | m a s t e r _ p r o c e s s | m a x _ r a n g e s | m e m c a c h e d _ b u f f e r _ s i z e | m e m c a c h e d _ c o n n e c t _ t i m e o u t | m e m c a c h e d _ n e x t _ u p s t r e a m | m e m c a c h e d _ p a s s | m e m c a c h e d _ r e a d _ t i m e o u t | m e m c a c h e d _ s e n d _ t i m e o u t | m e r g e _ s l a s h e s | m i n _ d e l e t e _ d e p t h | m o d e r n _ b r o w s e r | m o d e r n _ b r o w s e r _ v a l u e | m p 4 | m p 4 _ b u f f e r _ s i z e | m p 4 _ m a x _ b u f f e r _ s i z e | m s i e _ p a d d i n g | m s i e _ r e f r e s h | m u l t i _ a c c e p t | o p e n _ f i l e _ c a c h e | o p e n _ f i l e _ c a c h e _ e r r o r s | o p e n _ f i l e _ c a c h e _ m i n _ u s e s | o p e n _ f i l e _ c a c h e _ v a l i d | o p e n _ l o g _ f i l e _ c a c h e | o p t i m i z e _ s e r v e r _ n a m e s | o v e r r i d e _ c h a r s e t | p c r e _ j i t | p e r l | p e r l _ m o d u l e s | p e r l _ r e q u i r e | p e r l _ s e t | p i d | p o p 3 _ a u t h | p o p 3 _ c a p a b i l i t i e s | p o r t _ i n _ r e d i r e c t | p o s t _ a c t i o n | p o s t p o n e _ o u t p u t | p r o t o c o l | p r o x y | p r o x y _ b u f f e r | p r o x y _ b u f f e r _ s i z e | p r o x y _ b u f f e r i n g | p r o x y _ b u f f e r s | p r o x y _ b u s y _ b u f f e r s _ s i z e | p r o x y _ c a c h e | p r o x y _ c a c h e _ b y p a s s | p r o x y _ c a c h e _ k e y | p r o x y _ c a c h e _ l o c k | p r o x y _ c a c h e _ l o c k _ t i m e o u t | p r o x y _ c a c h e _ m e t h o d s | p r o x y _ c a c h e _ m i n _ u s e s | p r o x y _ c a c h e _ p a t h | p r o x y _ c a c h e _ u s e _ s t a l e | p r o x y _ c a c h e _ v a l i d | p r o x y _ c o n n e c t _ t i m e o u t | p r o x y _ c o o k i e _ d o m a i n | p r o x y _ c o o k i e _ p a t h | p r o x y _ h e a d e r s _ h a s h _ b u c k e t _ s i z e | p r o x y _ h e a d e r s _ h a s h _ m a x _ s i z e | p r o x y _ h i d e _ h e a d e r | p r o x y _ h t t p _ v e r s i o n | p r o x y _ i g n o r e _ c l i e n t _ a b o r t | p r o x y _ i g n o r e _ h e a d e r s | p r o x y _ i n t e r c e p t _ e r r o r s | p r o x y _ m a x _ t e m p _ f i l e _ s i z e | p r o x y _ m e t h o d | p r o x y _ n e x t _ u p s t r e a m | p r o x y _ n o _ c a c h e | p r o x y _ p a s s | p r o x y _ p a s s _ e r r o r _ m e s s a g e | p r o x y _ p a s s _ h e a d e r | p r o x y _ p a s s _ r e q u e s t _ b o d y | p r o x y _ p a s s _ r e q u e s t _ h e a d e r s | p r o x y _ r e a d _ t i m e o u t | p r o x y _ r e d i r e c t | p r o x y _ r e d i r e c t _ e r r o r s | p r o x y _ s e n d _ l o w a t | p r o x y _ s e n d _ t i m e o u t | p r o x y _ s e t _ b o d y | p r o x y _ s e t _ h e a d e r | p r o x y _ s s l _ s e s s i o n _ r e u s e | p r o x y _ s t o r e | p r o x y _ s t o r e _ a c c e s s | p r o x y _ t e m p _ f i
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 ( ? : a b | a b b r e v i a t e | a b c | a b c l e a r | a b o | a b o v e l e f t | a l | a l l | a r g a | a r g a d d | a r g d | a r g d e l e t e | a r g d o | a r g e | a r g e d i t | a r g g | a r g g l o b a l | a r g l | a r g l o c a l | a r | a r g s | a r g u | a r g u m e n t | a s | a s c i i | b a d | b a d d | b a | b a l l | b d | b d e l e t e | b e | b e l | b e l o w r i g h t | b f | b f i r s t | b l | b l a s t | b m | b m o d i f i e d | b n | b n e x t | b N | b N e x t | b o | b o t r i g h t | b p | b p r e v i o u s | b r e a | b r e a k | b r e a k a | b r e a k a d d | b r e a k d | b r e a k d e l | b r e a k l | b r e a k l i s t | b r | b r e w i n d | b r o | b r o w s e | b u f d o | b | b u f f e r | b u f f e r s | b u n | b u n l o a d | b w | b w i p e o u t | c a | c a b b r e v | c a b c | c a b c l e a r | c a d d b | c a d d b u f f e r | c a d | c a d d e x p r | c a d d f | c a d d f i l e | c a l | c a l l | c a t | c a t c h | c b | c b u f f e r | c c | c c l | c c l o s e | c d | c e | c e n t e r | c e x | c e x p r | c f | c f i l e | c f i r | c f i r s t | c g e t b | c g e t b u f f e r | c g e t e | c g e t e x p r | c g | c g e t f i l e | c | c h a n g e | c h a n g e s | c h d | c h d i r | c h e | c h e c k p a t h | c h e c k t | c h e c k t i m e | c l a | c l a s t | c l | c l i s t | c l o | c l o s e | c m a p c | c m a p c l e a r | c n e w | c n e w e r | c n | c n e x t | c N | c N e x t | c n f | c n f i l e | c N f c N f i l e | c n o r e a | c n o r e a b b r e v | c o l | c o l d e r | c o l o | c o l o r s c h e m e | c o m c | c o m c l e a r | c o m p | c o m p i l e r | c o n f | c o n f i r m | c o n | c o n t i n u e | c o p e | c o p e n | c o | c o p y | c p f | c p f i l e | c p | c p r e v i o u s | c q | c q u i t | c r | c r e w i n d | c u n a | c u n a b b r e v | c u | c u n m a p | c w | c w i n d o w | d e b u g g | d e b u g g r e e d y | d e l c | d e l c o m m a n d | d | d e l e t e | d e l f | d e l f u n c t i o n | d e l m | d e l m a r k s | d i f f g | d i f f g e t | d i f f o f f | d i f f p a t c h | d i f f p u | d i f f p u t | d i f f s p l i t | d i f f t h i s | d i f f u | d i f f u p d a t e | d i g | d i g r a p h s | d i | d i s p l a y | d j | d j u m p | d l | d l i s t | d r | d r o p | d s | d s e a r c h | d s p | d s p l i t | e a r l i e r | e c h o e | e c h o e r r | e c h o m | e c h o m s g | e c h o n | e | e d i t | e l | e l s e | e l s e i | e l s e i f | e m | e m e n u | e n d f o | e n d f o r | e n d f | e n d f u n c t i o n | e n d f u n | e n | e n d i f | e n d t | e n d t r y | e n d w | e n d w h i l e | e n e | e n e w | e x | e x i | e x i t | e x u | e x u s a g e | f | f i l e | f i l e s | f i l e t y p e | f i n a | f i n a l l y | f i n | f i n d | f i n i | f i n i s h | f i r | f i r s t | f i x | f i x d e l | f o | f o l d | f o l d c | f o l d c l o s e | f o l d d o c | f o l d d o c l o s e d | f o l d d | f o l d d o o p e n | f o l d o | f o l d o p e n | f o r | f u | f u n | f u n c t i o n | g o | g o t o | g r | g r e p | g r e p a | g r e p a d d | h a | h a r d c o p y | h | h e l p | h e l p f | h e l p f i n d | h e l p g | h e l p g r e p | h e l p t | h e l p t a g s | h i d | h i d e | h i s | h i s t o r y | i a | i a b b r e v | i a b c | i a b c l e a r | i f | i j | i j u m p | i l | i l i s t | i m a p c | i m a p c l e a r | i n | i n o r e a | i n o r e a b b r e v | i s e a r c h | i s p | i s p l i t | i u n a | i u n a b b r e v | i u | i u n m a p | j | j o i n | j u | j u m p s | k | k e e p a l t | k e e p j | k e e p j u m p s | k e e | k e e p m a r k s | l a d d b | l a d d b u f f e r | l a d | l a d d e x p r | l a d d f | l a d d f i l e | l a n | l a n g u a g e | l a | l a s t | l a t e r | l b | l b u f f e r | l c | l c d | l c h | l c h d i r | l c l | l c l o s e | l e t | l e f t | l e f t a | l e f t a b o v e | l e x | l e x p r | l f | l f i l e | l f i r | l f i r s t | l g e t b | l g e t b u f f e r | l g e t e | l g e t e x p r | l g | l g e t f i l e | l g r | l g r e p | l g r e p a | l g r e p a d d | l h | l h e l p g r e p | l | l i s t | l l | l l a | l l a s t | l l i | l l i s t | l m a k | l m a k e | l m | l m a p | l m a p c | l m a p c l e a r | l n e w | l n e w e r | l n e | l n e x t | l N | l N e x t | l n f | l n f i l e | l N f | l N f i l e | l n | l n o r e m a p | l o | l o a d v i e w | l o c | l o c k m a r k s | l o c k v | l o c k v a r | l o l | l o l d e r | l o p | l o p e n | l p f | l p f i l e | l p | l p r e v i o u s | l r | l r e w i n d | l s | l t | l t a g | l u | l u n m a p | l v | l v i m g r e p | l v i m g r e p a | l v i m g r e p a d d | l w | l w i n d o w | m a k | m a k e | m a | m a r k | m a r k s | m a t | m a t c h | m e n u t | m e n u t r a n s l a t e | m k | m k e x r c | m k s | m k s e s s i o n | m k s p | m k s p e l l | m k v i e | m k v i e w | m k v | m k v i m r c | m o d | m o d e | m | m o v e | m z f | m z f i l e | m z | m z s c h e m e | n b k e y | n e w | n | n e x t | N | N e x t | n m a p c | n m a p c l e a r | n o h | n o h l s e a r c h | n o r e a | n o r e a b b r e v | n u | n u m b e r | n u n | n u n m a p | o m a p c | o m a p c l e a r | o n | o n l y | o | o p e n | o p t | o p t i o n s | o u | o u n m a p | p c | p c l o s e | p e d | p e d i t | p e | p e r l | p e r l d | p e r l d o | p o | p o p | p o p u | p o p u | p o p u p | p p | p p o p | p r e | p r e s e r v e | p r e v | p r e v i o u s | p | p r i n t | P | P r i n t | p r o f d | p r o f d e l | p r o f | p r o f i l e | p r o m p t f | p r o m p t f i n d | p r o m p t r | p r o m p t r e p l | p s | p s e a r c h | p t a | p t a g | p t f | p t f i r s t | p t j | p t j u m p | p t l | p t l a s t | p t n | p t n e x t | p t N | p t N e x t | p t p | p t p r e v i o u s | p t r | p t r e w i n d | p t s | p t s e l e c t | p u | p u t | p w | p w d | p y f | p y f i l e | p y | p y t h o n | q a | q a l l | q | q u i t | q u i t a | q u i t a l l | r | r e a d | r e c | r e c o v e r | r e d i | r e d i r | r e d | r e d o | r e d r | r e d r a w | r e d r a w s | r e d r a w s t a t u s | r e g | r e g i s t e r s | r e s | r e s i z e | r e t | r e t a b | r e t u | r e t u r n | r e w | r e w i n d | r i | r i g h t | r i g h t b | r i g h t b e l o w | r u b | r u b y | r u b y d | r u b y d o | r u b y f | r u b y f i l e | r u | r u n t i m e | r v | r v i m i n f o | s a l | s a l l | s a n | s a n d b o x | s a | s a r g u m e n t | s a v | s a v e a s | s b a | s b a l l | s b f | s b f i r s t | s b l | s b l a s t | s b m | s b m o d i f i e d | s b n | s b n e x t | s b N | s b N e x t | s b p | s b p r e v i o u s | s b r | s b r e w i n d | s b | s b u f f e r | s c r i p t e | s c r i p t e n c o d i n g | s c r i p | s c r i p t n a m e s | s e | s e t | s e t f | s e t f i l e t y p e | s e t g | s e t g l o b a l | s e t l | s e t l o c a l | s f | s f i n d | s f i r | s f i r s t | s h | s h e l l | s i g n | s i l | s i l e n t | s i m | s i m a l t | s l a | s l a s t | s l | s l e e p | s m | s m a g i c | s m | s m a p | s m a p c | s m a p c l e a r | s m e | s m e n u | s n | s n e x t | s N | s N e x t | s n i | s n i f f | s n o | s n o m a g i c | s n o r | s n o r e m a p | s n o r e m e | s n o r e m e n u | s o r | s o r t | s o | s o u r c e | s p e l l d | s p e l l d u m p | s p e | s p e l l g o o d | s p e l l i | s p e l l i n f o | s p e l l r | s p e l l r e p a l l | s p e l l u | s p e l l u n d o | s p e l l w | s p e l l w r o n g | s p | s p l i t | s p r | s p r e v i o u s | s r e | s r e w i n d | s t a | s t a g | s t a r t g | s t a r t g r e p l a c e | s t a r | s t a r t i n s e r t | s t a r t r | s t a r t r e p l a c e | s t j | s t j u m p | s t | s t o p | s t o p i | s t o p i n s e r t | s t s | s t
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 } ) } } ( ) ;