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 ), |