plugins/geshi/geshi/applescript.php
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
equal deleted inserted replaced
1:c715631f809a 2:9e3258dfae15
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * applescript.php
     3  * applescript.php
     4  * --------
     4  * --------
     5  * Author: Stephan Klimek (http://www.initware.org)
     5  * Author: Stephan Klimek (http://www.initware.org)
     6  * Copyright: Stephan Klimek (http://www.initware.org)
     6  * Copyright: Stephan Klimek (http://www.initware.org)
     7  * Release Version: 1.0.7.20
     7  * Release Version: 1.0.8.2
     8  * Date Started: 2005/07/20
     8  * Date Started: 2005/07/20
     9  *
     9  *
    10  * AppleScript language file for GeSHi.
    10  * AppleScript language file for GeSHi.
    11  *
    11  *
    12  * CHANGES
    12  * CHANGES
    13  * -------
    13  * -------
       
    14  * 2008/05/23 (1.0.7.22)
       
    15  *  -  Added description of extra language features (SF#1970248)
    14  *
    16  *
    15  * TODO 
    17  * TODO
    16  * -------------------------
    18  * -------------------------
    17  * URL settings to references
    19  * URL settings to references
    18  *
    20  *
    19  **************************************************************************************
    21  **************************************************************************************
    20  *
    22  *
    35  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    37  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    36  *
    38  *
    37  ************************************************************************************/
    39  ************************************************************************************/
    38 
    40 
    39 $language_data = array (
    41 $language_data = array (
    40 	'LANG_NAME' => 'AppleScript',
    42     'LANG_NAME' => 'AppleScript',
    41 	'COMMENT_SINGLE' => array(1 => '--'),
    43     'COMMENT_SINGLE' => array(1 => '--'),
    42 	'COMMENT_MULTI' => array( '(*' => '*)'),
    44     'COMMENT_MULTI' => array( '(*' => '*)'),
    43 	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    45     'COMMENT_REGEXP' => array(
    44 	'QUOTEMARKS' => array('"',"'"),
    46         2 => '/(?<=[a-z])\'/i',
    45 	'ESCAPE_CHAR' => '\\',
    47         3 => '/(?<![a-z])\'.*?\'/i',
    46 	'KEYWORDS' => array(
    48         ),
    47 		1 => array(
    49     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    48             'script','property','prop','end','copy','to','set','global','local','on','to','of',
    50     'QUOTEMARKS' => array('"'),
       
    51     'ESCAPE_CHAR' => '\\',
       
    52     'KEYWORDS' => array(
       
    53         1 => array(
       
    54             'script','property','prop','end','to','set','global','local','on','of',
    49             'in','given','with','without','return','continue','tell','if','then','else','repeat',
    55             'in','given','with','without','return','continue','tell','if','then','else','repeat',
    50             'times','while','until','from','exit','try','error','considering','ignoring','timeout',
    56             'times','while','until','from','exit','try','error','considering','ignoring','timeout',
    51             'transaction','my','get','put','into','is'
    57             'transaction','my','get','put','into','is'
    52 			),
    58             ),
    53 		2 => array(
    59         2 => array(
    54             'each','some','every','whose','where','id','index','first','second','third','fourth',
    60             'each','some','every','whose','where','id','index','first','second','third','fourth',
    55             'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
    61             'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
    56             'rd','th','middle','named','through','thru','before','after','beginning','the'
    62             'rd','th','middle','named','through','thru','before','after','beginning','the'
    57 			),
    63             ),
    58 		3 => array(
    64         3 => array(
    59             'close','copy','count','delete','duplicate','exists','launch','make','move','open',
    65             'close','copy','count','delete','duplicate','exists','launch','make','move','open',
    60             'print','quit','reopen','run','save','saving',
    66             'print','quit','reopen','run','save','saving',
    61             'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
    67             'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
    62             'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
    68             'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
    63             'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false',
    69             'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false',
    64             'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
    70             'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
    65             'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
    71             'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
    66             'mar','april','apr','may','june','jun','july','jul','august','aug','september',
    72             'mar','april','apr','may','june','jun','july','jul','august','aug','september',
    67             'sep','october','oct','november','nov','december','dec','minutes','hours',
    73             'sep','october','oct','november','nov','december','dec','minutes','hours',
    68             'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt'
    74             'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt'
    69 			)
    75             )
    70 		),
    76         ),
    71 	'SYMBOLS' => array(
    77     'SYMBOLS' => array(
    72         ')','+','-','^','*','/','&','<','>=','<','<=','=','�'
    78         ')','+','-','^','*','/','&','<','>=','<','<=','=','�'
    73 		),
    79         ),
    74 	'CASE_SENSITIVE' => array(
    80     'CASE_SENSITIVE' => array(
    75 		GESHI_COMMENTS => true,
    81         GESHI_COMMENTS => false,
    76 		1 => false,
    82         1 => false,
    77 		2 => false,
    83         2 => false,
    78 		3 => false,
    84         3 => false,
    79 		),
    85         ),
    80 	'STYLES' => array(
    86     'STYLES' => array(
    81 		'KEYWORDS' => array(
    87         'KEYWORDS' => array(
    82 			1 => 'color: #b1b100;',
    88             1 => 'color: #b1b100;',
    83 			2 => 'color: #000000; font-weight: bold;',
    89             2 => 'color: #000000; font-weight: bold;',
    84 			3 => 'color: #000066;'
    90             3 => 'color: #000066;'
    85 			),
    91             ),
    86 		'COMMENTS' => array(
    92         'COMMENTS' => array(
    87 			1 => 'color: #808080; font-style: italic;',
    93             1 => 'color: #808080; font-style: italic;',
    88 			'MULTI' => 'color: #808080; font-style: italic;'
    94             2 => '',
    89 			),
    95             3 => 'color: #ff0000;',
    90 		'ESCAPE_CHAR' => array(
    96             'MULTI' => 'color: #808080; font-style: italic;'
    91 			0 => 'color: #000099; font-weight: bold;'
    97             ),
    92 			),
    98         'ESCAPE_CHAR' => array(
    93 		'BRACKETS' => array(
    99             0 => 'color: #000099; font-weight: bold;'
    94 			0 => 'color: #66cc66;'
   100             ),
    95 			),
   101         'BRACKETS' => array(
    96 		'STRINGS' => array(
   102             0 => 'color: #66cc66;'
    97 			0 => 'color: #ff0000;'
   103             ),
    98 			),
   104         'STRINGS' => array(
    99 		'NUMBERS' => array(
   105             0 => 'color: #ff0000;'
   100 			0 => 'color: #cc66cc;'
   106             ),
   101 			),
   107         'NUMBERS' => array(
   102 		'METHODS' => array(
   108             0 => 'color: #cc66cc;'
   103 			1 => 'color: #006600;',
   109             ),
   104 			2 => 'color: #006600;'
   110         'METHODS' => array(
   105 			),
   111             1 => 'color: #006600;',
   106 		'SYMBOLS' => array(
   112             2 => 'color: #006600;'
   107 			0 => 'color: #66cc66;'
   113             ),
   108 			),
   114         'SYMBOLS' => array(
   109 		'REGEXPS' => array(
   115             0 => 'color: #66cc66;'
   110 			0 => 'color: #0000ff;',
   116             ),
   111 			4 => 'color: #009999;',
   117         'REGEXPS' => array(
   112 			),
   118             0 => 'color: #0000ff;',
   113 		'SCRIPT' => array(
   119             4 => 'color: #009999;',
   114 			)
   120             ),
   115 		),
   121         'SCRIPT' => array(
   116 	'URLS' => array(
   122             )
   117 		3 => ''
   123         ),
   118 		),
   124     'URLS' => array(
   119 	'OOLANG' => true,
   125         1 => '',
   120 	'OBJECT_SPLITTERS' => array(
   126         2 => '',
   121 		1 => ',+-=&lt;&gt;/?^&amp;*'
   127         3 => ''
   122 		),
   128         ),
   123 	'REGEXPS' => array(
   129     'OOLANG' => true,
   124 		0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
   130     'OBJECT_SPLITTERS' => array(
   125 		4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
   131         1 => ',+-=&lt;&gt;/?^&amp;*'
   126 		),
   132         ),
   127 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
   133     'REGEXPS' => array(
   128 	'SCRIPT_DELIMITERS' => array(
   134         //Variables
   129 		),
   135         0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
   130 	'HIGHLIGHT_STRICT_BLOCK' => array(
   136         //File descriptors
   131 		)
   137         4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
       
   138         ),
       
   139     'STRICT_MODE_APPLIES' => GESHI_NEVER,
       
   140     'SCRIPT_DELIMITERS' => array(
       
   141         ),
       
   142     'HIGHLIGHT_STRICT_BLOCK' => array(
       
   143         )
   132 );
   144 );
   133 
   145 
   134 ?>
   146 ?>