|
1 <?php |
|
2 /************************************************************************************* |
|
3 * ada.php |
|
4 * ------- |
|
5 * Author: Tux (tux@inmail.cz) |
|
6 * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) |
|
7 * Release Version: 1.0.7.20 |
|
8 * Date Started: 2004/07/29 |
|
9 * |
|
10 * Ada language file for GeSHi. |
|
11 * Words are from SciTe configuration file |
|
12 * |
|
13 * CHANGES |
|
14 * ------- |
|
15 * 2004/11/27 (1.0.2) |
|
16 * - Added support for multiple object splitters |
|
17 * 2004/10/27 (1.0.1) |
|
18 * - Removed apostrophe as string delimiter |
|
19 * - Added URL support |
|
20 * 2004/08/05 (1.0.0) |
|
21 * - First Release |
|
22 * |
|
23 * TODO (updated 2004/11/27) |
|
24 * ------------------------- |
|
25 * |
|
26 ************************************************************************************* |
|
27 * |
|
28 * This file is part of GeSHi. |
|
29 * |
|
30 * GeSHi is free software; you can redistribute it and/or modify |
|
31 * it under the terms of the GNU General Public License as published by |
|
32 * the Free Software Foundation; either version 2 of the License, or |
|
33 * (at your option) any later version. |
|
34 * |
|
35 * GeSHi is distributed in the hope that it will be useful, |
|
36 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
37 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
38 * GNU General Public License for more details. |
|
39 * |
|
40 * You should have received a copy of the GNU General Public License |
|
41 * along with GeSHi; if not, write to the Free Software |
|
42 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
43 * |
|
44 ************************************************************************************/ |
|
45 |
|
46 $language_data = array ( |
|
47 'LANG_NAME' => 'Ada', |
|
48 'COMMENT_SINGLE' => array(1 => '--'), |
|
49 'COMMENT_MULTI' => array('/*' => '*/'), |
|
50 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
|
51 'QUOTEMARKS' => array('"'), |
|
52 'ESCAPE_CHAR' => '\\', |
|
53 'KEYWORDS' => array( |
|
54 1 => array( |
|
55 'begin', 'declare', 'do', 'else', 'elsif', 'exception', 'for', 'if', |
|
56 'is', 'loop', 'while', 'then', 'is', 'end', 'select', 'case', 'while', 'until', |
|
57 'goto', 'return' |
|
58 ), |
|
59 2 => array( |
|
60 'abs', 'and', 'mod', 'not', 'or', 'rem', 'xor' |
|
61 ), |
|
62 3 => array( |
|
63 'abort', 'abstract', 'accept', 'access', 'aliased', 'all', 'array', 'at', 'body', |
|
64 'constant', 'delay', 'delta', 'digits', 'entry', 'exit', |
|
65 'function', 'generic', 'in', 'limited', 'new', 'null', 'of', 'others', 'out', 'package', 'pragma', |
|
66 'private', 'procedure', 'protected', 'raise', 'range', 'record', 'renames', 'requeue', 'reverse', |
|
67 'separate', 'subtype', 'tagged', 'task', 'terminate', 'type', 'use', 'when', 'with' |
|
68 ) |
|
69 ), |
|
70 'SYMBOLS' => array( |
|
71 '(', ')' |
|
72 ), |
|
73 'CASE_SENSITIVE' => array( |
|
74 GESHI_COMMENTS => true, |
|
75 1 => false, |
|
76 2 => false, |
|
77 3 => false, |
|
78 ), |
|
79 'STYLES' => array( |
|
80 'KEYWORDS' => array( |
|
81 1 => 'color: #00007f;', |
|
82 2 => 'color: #0000ff;', |
|
83 3 => 'color: #46aa03; font-weight:bold;', |
|
84 ), |
|
85 'BRACKETS' => array( |
|
86 0 => 'color: #66cc66;' |
|
87 ), |
|
88 'COMMENTS' => array( |
|
89 1 => 'color: #adadad; font-style: italic;', |
|
90 'MULTI' => 'color: #808080; font-style: italic;' |
|
91 ), |
|
92 'ESCAPE_CHAR' => array( |
|
93 0 => 'color: #000099; font-weight: bold;' |
|
94 ), |
|
95 'BRACKETS' => array( |
|
96 0 => 'color: #66cc66;' |
|
97 ), |
|
98 'STRINGS' => array( |
|
99 0 => 'color: #7f007f;' |
|
100 ), |
|
101 'NUMBERS' => array( |
|
102 0 => 'color: #ff0000;' |
|
103 ), |
|
104 'METHODS' => array( |
|
105 1 => 'color: #202020;' |
|
106 ), |
|
107 'SYMBOLS' => array( |
|
108 0 => 'color: #66cc66;' |
|
109 ), |
|
110 'REGEXPS' => array( |
|
111 ), |
|
112 'SCRIPT' => array( |
|
113 ) |
|
114 ), |
|
115 'URLS' => array( |
|
116 1 => '', |
|
117 2 => '', |
|
118 3 => '' |
|
119 ), |
|
120 'OOLANG' => true, |
|
121 'OBJECT_SPLITTERS' => array( |
|
122 1 => '.' |
|
123 ), |
|
124 'REGEXPS' => array( |
|
125 ), |
|
126 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
|
127 'SCRIPT_DELIMITERS' => array( |
|
128 ), |
|
129 'HIGHLIGHT_STRICT_BLOCK' => array( |
|
130 ) |
|
131 ); |
|
132 |
|
133 ?> |