2022-09-20 11:43:28 -04:00
/*! `haxe` grammar compiled for Highlight.js 11.6.0 */
( ( ) => { var e = ( ( ) => { "use strict" ; return e => ( { name : "Haxe" , aliases : [ "hx" ] , keywords : {
2021-03-10 11:35:00 -05:00
keyword : "break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array " ,
built _in : "trace this" , literal : "true false null _" } , contains : [ {
className : "string" , begin : "'" , end : "'" , contains : [ e . BACKSLASH _ESCAPE , {
className : "subst" , begin : "\\$\\{" , end : "\\}" } , { className : "subst" , begin : "\\$" ,
end : /\W\}/ } ]
} , e . QUOTE _STRING _MODE , e . C _LINE _COMMENT _MODE , e . C _BLOCK _COMMENT _MODE , e . C _NUMBER _MODE , {
className : "meta" , begin : "@:" , end : "$" } , { className : "meta" , begin : "#" , end : "$" ,
2022-09-20 11:43:28 -04:00
keywords : { keyword : "if else elseif end error" } } , { className : "type" ,
2021-03-10 11:35:00 -05:00
begin : ":[ \t]*" , end : "[^A-Za-z0-9_ \t\\->]" , excludeBegin : ! 0 , excludeEnd : ! 0 ,
relevance : 0 } , { className : "type" , begin : ":[ \t]*" , end : "\\W" , excludeBegin : ! 0 ,
excludeEnd : ! 0 } , { className : "type" , begin : "new *" , end : "\\W" , excludeBegin : ! 0 ,
excludeEnd : ! 0 } , { className : "class" , beginKeywords : "enum" , end : "\\{" ,
contains : [ e . TITLE _MODE ] } , { className : "class" , beginKeywords : "abstract" ,
end : "[\\{$]" , contains : [ { className : "type" , begin : "\\(" , end : "\\)" , excludeBegin : ! 0 ,
excludeEnd : ! 0 } , { className : "type" , begin : "from +" , end : "\\W" , excludeBegin : ! 0 ,
excludeEnd : ! 0 } , { className : "type" , begin : "to +" , end : "\\W" , excludeBegin : ! 0 ,
excludeEnd : ! 0 } , e . TITLE _MODE ] , keywords : { keyword : "abstract from to" } } , {
className : "class" , begin : "\\b(class|interface) +" , end : "[\\{$]" , excludeEnd : ! 0 ,
keywords : "class interface" , contains : [ { className : "keyword" ,
begin : "\\b(extends|implements) +" , keywords : "extends implements" , contains : [ {
className : "type" , begin : e . IDENT _RE , relevance : 0 } ] } , e . TITLE _MODE ] } , {
className : "function" , beginKeywords : "function" , end : "\\(" , excludeEnd : ! 0 ,
2022-09-20 11:43:28 -04:00
illegal : "\\S" , contains : [ e . TITLE _MODE ] } ] , illegal : /<\// } ) } ) ( )
; hljs . registerLanguage ( "haxe" , e ) } ) ( ) ;