2021-03-10 11:35:00 -05:00
hljs . registerLanguage ( "actionscript" , ( ( ) => { "use strict" ; function e ( ... e ) {
return e . map ( ( e => { return ( n = e ) ? "string" == typeof n ? n : n . source : null ; var n
} ) ) . join ( "" ) } return n => ( { name : "ActionScript" , aliases : [ "as" ] , keywords : {
keyword : "as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with" ,
literal : "true false null undefined" } ,
contains : [ n . APOS _STRING _MODE , n . QUOTE _STRING _MODE , n . C _LINE _COMMENT _MODE , n . C _BLOCK _COMMENT _MODE , n . C _NUMBER _MODE , {
className : "class" , beginKeywords : "package" , end : /\{/ , contains : [ n . TITLE _MODE ] } , {
className : "class" , beginKeywords : "class interface" , end : /\{/ , excludeEnd : ! 0 ,
contains : [ { beginKeywords : "extends implements" } , n . TITLE _MODE ] } , { className : "meta" ,
beginKeywords : "import include" , end : /;/ , keywords : { "meta-keyword" : "import include"
} } , { className : "function" , beginKeywords : "function" , end : /[{;]/ , excludeEnd : ! 0 ,
illegal : /\S/ , contains : [ n . TITLE _MODE , { className : "params" , begin : /\(/ , end : /\)/ ,
contains : [ n . APOS _STRING _MODE , n . QUOTE _STRING _MODE , n . C _LINE _COMMENT _MODE , n . C _BLOCK _COMMENT _MODE , {
className : "rest_arg" , begin : /[.]{3}/ , end : /[a-zA-Z_$][a-zA-Z0-9_$]*/ , relevance : 10
} ] } , { begin : e ( /:\s*/ , /([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/ ) } ] } , n . METHOD _GUARD ] ,
illegal : /#/ } ) } ) ( ) ) ;