plugins/geshi/geshi/actionscript3.php
changeset 3 f3e2bbbd2155
parent 2 9e3258dfae15
equal deleted inserted replaced
2:9e3258dfae15 3:f3e2bbbd2155
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * actionscript3.php
     3  * actionscript3.php
     4  * ----------------
     4  * ----------------
     5  * Author: Jordi Boggiano (j.boggiano@seld.be)
     5  * Author: Jordi Boggiano (j.boggiano@seld.be)
     6  * Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter)
     6  * Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter)
     7  * Release Version: 1.0.8.2
     7  * Release Version: 1.0.8.4
     8  * Date Started: 2007/11/26
     8  * Date Started: 2007/11/26
     9  *
     9  *
    10  * ActionScript3 language file for GeSHi.
    10  * ActionScript3 language file for GeSHi.
    11  *
    11  *
    12  * All keywords scraped from the Flex 2.0.1 Documentation
    12  * All keywords scraped from the Flex 2.0.1 Documentation
    56 
    56 
    57 $language_data = array (
    57 $language_data = array (
    58     'LANG_NAME' => 'ActionScript 3',
    58     'LANG_NAME' => 'ActionScript 3',
    59     'COMMENT_SINGLE' => array(1 => '//'),
    59     'COMMENT_SINGLE' => array(1 => '//'),
    60     'COMMENT_MULTI' => array('/*' => '*/'),
    60     'COMMENT_MULTI' => array('/*' => '*/'),
       
    61     'COMMENT_REGEXP' => array(
       
    62         //Regular expressions
       
    63         2 => "/(?<=[\\s^])(s|tr|y)\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\/\\\\])*\\/[msixpogcde]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])(m|q[qrwx]?)?\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[msixpogc]*(?=[\\s$\\.\\,\\;\\)])/iU",
       
    64         ),
    61     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    65     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    62     'QUOTEMARKS' => array("'", '"'),
    66     'QUOTEMARKS' => array("'", '"'),
    63     'ESCAPE_CHAR' => '\\',
    67     'ESCAPE_CHAR' => '\\',
    64     'KEYWORDS' => array(
    68     'KEYWORDS' => array(
    65         1 => array(
    69         1 => array(
    66             'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true',
    70             'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true',
    67             'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected',
    71             'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected',
    68             'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in',
    72             'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in',
    69             'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do',
    73             'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do',
    70             'delete', 'default', 'continue', 'catch', 'case', 'break', 'as'
    74             'delete', 'default', 'continue', 'catch', 'case', 'break', 'as',
       
    75             'extends'
    71             ),
    76             ),
    72         2 => array(
    77         2 => array(
    73             'var'
    78             'var'
    74             ),
    79             ),
    75         3 => array(
    80         3 => array(
   388             'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties',
   393             'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties',
   389             'Accessibility', 'AVM1Movie'
   394             'Accessibility', 'AVM1Movie'
   390             )
   395             )
   391         ),
   396         ),
   392     'SYMBOLS' => array(
   397     'SYMBOLS' => array(
   393         '(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':'
   398         '(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':', ';', '.', ','
   394         ),
   399         ),
   395     'CASE_SENSITIVE' => array(
   400     'CASE_SENSITIVE' => array(
   396         GESHI_COMMENTS => false,
   401         GESHI_COMMENTS => false,
   397         1 => true,
   402         1 => true,
   398         2 => true,
   403         2 => true,
   413             6 => 'color: #004993;',
   418             6 => 'color: #004993;',
   414             7 => 'color: #004993;',
   419             7 => 'color: #004993;',
   415             8 => 'color: #004993;'
   420             8 => 'color: #004993;'
   416             ),
   421             ),
   417         'COMMENTS' => array(
   422         'COMMENTS' => array(
   418             1 => 'color: #009900;',
   423             1 => 'color: #009900; font-style: italic;',
       
   424             2 => 'color: #009966; font-style: italic;',
   419             'MULTI' => 'color: #3f5fbf;'
   425             'MULTI' => 'color: #3f5fbf;'
   420             ),
   426             ),
   421         'ESCAPE_CHAR' => array(
   427         'ESCAPE_CHAR' => array(
   422             0 => ''
   428             0 => ''
   423             ),
   429             ),
   432             ),
   438             ),
   433         'METHODS' => array(
   439         'METHODS' => array(
   434             0 => 'color: #000000;',
   440             0 => 'color: #000000;',
   435             ),
   441             ),
   436         'SYMBOLS' => array(
   442         'SYMBOLS' => array(
   437             0 => 'color: #000000; font-weight: bold;'
   443             0 => 'color: #000066; font-weight: bold;'
   438             ),
   444             ),
   439         'REGEXPS' => array(
   445         'REGEXPS' => array(
   440             ),
   446             ),
   441         'SCRIPT' => array(
   447         'SCRIPT' => array(
   442             )
   448             )
   444     'URLS' => array(
   450     'URLS' => array(
   445         1 => '',
   451         1 => '',
   446         2 => '',
   452         2 => '',
   447         3 => '',
   453         3 => '',
   448         4 => '',
   454         4 => '',
   449         5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html&amp;filter=0&amp;num=100&amp;btnI=lucky',
   455         5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html',
   450         6 => '',
   456         6 => '',
   451         7 => '',
   457         7 => '',
   452         8 => ''
   458         8 => ''
   453         ),
   459         ),
   454     'OOLANG' => false,//Save some time as OO identifiers aren't used
   460     'OOLANG' => false,//Save some time as OO identifiers aren't used