openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

applescript.php (4568B)


      1 <?php
      2 /*************************************************************************************
      3  * applescript.php
      4  * --------
      5  * Author: Stephan Klimek (http://www.initware.org)
      6  * Copyright: Stephan Klimek (http://www.initware.org)
      7  * Release Version: 1.0.7.20
      8  * Date Started: 2005/07/20
      9  *
     10  * AppleScript language file for GeSHi.
     11  *
     12  * CHANGES
     13  * -------
     14  *
     15  * TODO 
     16  * -------------------------
     17  * URL settings to references
     18  *
     19  **************************************************************************************
     20  *
     21  *     This file is part of GeSHi.
     22  *
     23  *   GeSHi is free software; you can redistribute it and/or modify
     24  *   it under the terms of the GNU General Public License as published by
     25  *   the Free Software Foundation; either version 2 of the License, or
     26  *   (at your option) any later version.
     27  *
     28  *   GeSHi is distributed in the hope that it will be useful,
     29  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     30  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     31  *   GNU General Public License for more details.
     32  *
     33  *   You should have received a copy of the GNU General Public License
     34  *   along with GeSHi; if not, write to the Free Software
     35  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     36  *
     37  ************************************************************************************/
     38 
     39 $language_data = array (
     40 	'LANG_NAME' => 'AppleScript',
     41 	'COMMENT_SINGLE' => array(1 => '--'),
     42 	'COMMENT_MULTI' => array( '(*' => '*)'),
     43 	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
     44 	'QUOTEMARKS' => array('"',"'"),
     45 	'ESCAPE_CHAR' => '\\',
     46 	'KEYWORDS' => array(
     47 		1 => array(
     48             'script','property','prop','end','copy','to','set','global','local','on','to','of',
     49             'in','given','with','without','return','continue','tell','if','then','else','repeat',
     50             'times','while','until','from','exit','try','error','considering','ignoring','timeout',
     51             'transaction','my','get','put','into','is'
     52 			),
     53 		2 => array(
     54             'each','some','every','whose','where','id','index','first','second','third','fourth',
     55             'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
     56             'rd','th','middle','named','through','thru','before','after','beginning','the'
     57 			),
     58 		3 => array(
     59             'close','copy','count','delete','duplicate','exists','launch','make','move','open',
     60             'print','quit','reopen','run','save','saving',
     61             'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
     62             'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
     63             'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false',
     64             'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
     65             'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
     66             'mar','april','apr','may','june','jun','july','jul','august','aug','september',
     67             'sep','october','oct','november','nov','december','dec','minutes','hours',
     68             'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt'
     69 			)
     70 		),
     71 	'SYMBOLS' => array(
     72         ')','+','-','^','*','/','&','<','>=','<','<=','=','�'
     73 		),
     74 	'CASE_SENSITIVE' => array(
     75 		GESHI_COMMENTS => true,
     76 		1 => false,
     77 		2 => false,
     78 		3 => false,
     79 		),
     80 	'STYLES' => array(
     81 		'KEYWORDS' => array(
     82 			1 => 'color: #b1b100;',
     83 			2 => 'color: #000000; font-weight: bold;',
     84 			3 => 'color: #000066;'
     85 			),
     86 		'COMMENTS' => array(
     87 			1 => 'color: #808080; font-style: italic;',
     88 			'MULTI' => 'color: #808080; font-style: italic;'
     89 			),
     90 		'ESCAPE_CHAR' => array(
     91 			0 => 'color: #000099; font-weight: bold;'
     92 			),
     93 		'BRACKETS' => array(
     94 			0 => 'color: #66cc66;'
     95 			),
     96 		'STRINGS' => array(
     97 			0 => 'color: #ff0000;'
     98 			),
     99 		'NUMBERS' => array(
    100 			0 => 'color: #cc66cc;'
    101 			),
    102 		'METHODS' => array(
    103 			1 => 'color: #006600;',
    104 			2 => 'color: #006600;'
    105 			),
    106 		'SYMBOLS' => array(
    107 			0 => 'color: #66cc66;'
    108 			),
    109 		'REGEXPS' => array(
    110 			0 => 'color: #0000ff;',
    111 			4 => 'color: #009999;',
    112 			),
    113 		'SCRIPT' => array(
    114 			)
    115 		),
    116 	'URLS' => array(
    117 		3 => ''
    118 		),
    119 	'OOLANG' => true,
    120 	'OBJECT_SPLITTERS' => array(
    121 		1 => ',+-=&lt;&gt;/?^&amp;*'
    122 		),
    123 	'REGEXPS' => array(
    124 		0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
    125 		4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
    126 		),
    127 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
    128 	'SCRIPT_DELIMITERS' => array(
    129 		),
    130 	'HIGHLIGHT_STRICT_BLOCK' => array(
    131 		)
    132 );
    133 
    134 ?>