1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * applescript.php |
4 | | | * -------- |
5 | | | * Author: Stephan Klimek (http://www.initware.org) |
6 | | | * Copyright: Stephan Klimek (http://www.initware.org) |
7 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * Date Started: 2005/07/20 |
9 | | | * |
10 | | | * AppleScript language file for GeSHi. |
11 | | | * |
12 | | | * CHANGES |
13 | | | * ------- |
14 | | | * 2008/05/23 (1.0.7.22) |
15 | | | * - Added description of extra language features (SF#1970248) |
16 | | | * |
17 | | | * TODO |
18 | | | * ------------------------- |
19 | | | * URL settings to references |
20 | | | * |
21 | | | ************************************************************************************** |
22 | | | * |
23 | | | * This file is part of GeSHi. |
24 | | | * |
25 | | | * GeSHi is free software; you can redistribute it and/or modify |
26 | | | * it under the terms of the GNU General Public License as published by |
27 | | | * the Free Software Foundation; either version 2 of the License, or |
28 | | | * (at your option) any later version. |
29 | | | * |
30 | | | * GeSHi is distributed in the hope that it will be useful, |
31 | | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
32 | | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
33 | | | * GNU General Public License for more details. |
34 | | | * |
35 | | | * You should have received a copy of the GNU General Public License |
36 | | | * along with GeSHi; if not, write to the Free Software |
37 | | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
38 | | | * |
39 | | | ************************************************************************************/ |
40 | | | |
41 | | | $language_data = array ( |
42 | | | 'LANG_NAME' => 'AppleScript', |
43 | | | 'COMMENT_SINGLE' => array(1 => '--'), |
44 | | | 'COMMENT_MULTI' => array( '(*' => '*)'), |
45 | | | 'COMMENT_REGEXP' => array( |
46 | | | 2 => '/(?<=[a-z])\'/i', |
47 | | | 3 => '/(?<![a-z])\'.*?\'/i', |
48 | | | ), |
49 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
50 | | | 'QUOTEMARKS' => array('"'), |
51 | | | 'ESCAPE_CHAR' => '\\', |
52 | | | 'KEYWORDS' => array( |
53 | | | 1 => array( |
54 | 3 | simandl | 'application','close','count','delete','duplicate','exists','launch','make','move','open', |
55 | | | 'print','quit','reopen','run','save','saving', 'idle', 'path to', 'number', 'alias', 'list', 'text', 'string', |
56 | | | 'integer', 'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion', |
57 | | | 'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain', |
58 | | | 'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false', 'id', |
59 | | | 'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday', |
60 | | | 'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march', |
61 | | | 'mar','april','apr','may','june','jun','july','jul','august','aug','september', 'quote', 'do JavaScript', |
62 | | | 'sep','october','oct','november','nov','december','dec','minutes','hours', 'name', 'default answer', |
63 | | | 'days','weeks', 'folder', 'folders', 'file', 'files', 'window', 'eject', 'disk', 'reveal', 'sleep', |
64 | | | 'shut down', 'restart', 'display dialog', 'buttons', 'invisibles', 'item', 'items', 'delimiters', 'offset of', |
65 | | | 'AppleScript\'s', 'choose file', 'choose folder', 'choose from list', 'beep', 'contents', 'do shell script', |
66 | | | 'paragraph', 'paragraphs', 'missing value', 'quoted form', 'desktop', 'POSIX path', 'POSIX file', |
67 | | | 'activate', 'document', 'adding', 'receiving', 'content', 'new', 'properties', 'info for', 'bounds', |
68 | | | 'selection', 'extension', 'into', 'onto', 'by', 'between', 'against', 'set the clipboard to', 'the clipboard' |
69 | 1 | simandl | ), |
70 | | | 2 => array( |
71 | 3 | simandl | 'each','some','every','whose','where','index','first','second','third','fourth', |
72 | 1 | simandl | 'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd', |
73 | 3 | simandl | 'rd','th','middle','named','through','thru','before','after','beginning','the', 'as', |
74 | | | 'div','mod','and','not','or','contains','equal','equals','isnt', 'less', 'greater' |
75 | 1 | simandl | ), |
76 | | | 3 => array( |
77 | 3 | simandl | 'script','property','prop','end','to','set','global','local','on','of', |
78 | | | 'in','given','with','without','return','continue','tell','if','then','else','repeat', |
79 | | | 'times','while','until','from','exit','try','error','considering','ignoring','timeout', |
80 | | | 'transaction','my','get','put','is', 'copy' |
81 | 1 | simandl | ) |
82 | | | ), |
83 | | | 'SYMBOLS' => array( |
84 | | | ')','+','-','^','*','/','&','<','>=','<','<=','=','ďż˝' |
85 | | | ), |
86 | | | 'CASE_SENSITIVE' => array( |
87 | | | GESHI_COMMENTS => false, |
88 | | | 1 => false, |
89 | | | 2 => false, |
90 | | | 3 => false, |
91 | | | ), |
92 | | | 'STYLES' => array( |
93 | | | 'KEYWORDS' => array( |
94 | 3 | simandl | 1 => 'color: #0066ff;', |
95 | | | 2 => 'color: #ff0033;', |
96 | | | 3 => 'color: #ff0033; font-weight: bold;' |
97 | 1 | simandl | ), |
98 | | | 'COMMENTS' => array( |
99 | | | 1 => 'color: #808080; font-style: italic;', |
100 | | | 2 => '', |
101 | | | 3 => 'color: #ff0000;', |
102 | | | 'MULTI' => 'color: #808080; font-style: italic;' |
103 | | | ), |
104 | | | 'ESCAPE_CHAR' => array( |
105 | 3 | simandl | |
106 | 1 | simandl | ), |
107 | | | 'BRACKETS' => array( |
108 | 3 | simandl | |
109 | 1 | simandl | ), |
110 | | | 'STRINGS' => array( |
111 | 3 | simandl | |
112 | 1 | simandl | ), |
113 | | | 'NUMBERS' => array( |
114 | 3 | simandl | |
115 | 1 | simandl | ), |
116 | | | 'METHODS' => array( |
117 | | | 1 => 'color: #006600;', |
118 | | | 2 => 'color: #006600;' |
119 | | | ), |
120 | | | 'SYMBOLS' => array( |
121 | 3 | simandl | |
122 | 1 | simandl | ), |
123 | | | 'REGEXPS' => array( |
124 | 3 | simandl | |
125 | | | 4 => 'color: #0066ff;', |
126 | 1 | simandl | ), |
127 | | | 'SCRIPT' => array( |
128 | | | ) |
129 | | | ), |
130 | | | 'URLS' => array( |
131 | | | 1 => '', |
132 | | | 2 => '', |
133 | | | 3 => '' |
134 | | | ), |
135 | | | 'OOLANG' => true, |
136 | | | 'OBJECT_SPLITTERS' => array( |
137 | | | 1 => ',+-=<>/?^&*' |
138 | | | ), |
139 | | | 'REGEXPS' => array( |
140 | | | //Variables |
141 | | | |
142 | | | //File descriptors |
143 | | | 4 => '<[a-zA-Z_][a-zA-Z0-9_]*>', |
144 | | | ), |
145 | | | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
146 | | | 'SCRIPT_DELIMITERS' => array( |
147 | | | ), |
148 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
149 | 3 | simandl | ), |
150 | | | 'PARSER_CONTROL' => array( |
151 | | | 'KEYWORDS' => array( |
152 | | | 'SPACE_AS_WHITESPACE' => true |
153 | | | ) |
154 | 1 | simandl | ) |
155 | | | ); |
156 | | | |
157 | 3 | simandl | ?> |