ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_4gl.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_4gl extends HFile{
6  function HFile_4gl(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // INFORMIX
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("MAIN", "THEN");
28 $this->unindent = array("END MAIN", "END IF", "END FOR", "END FOREACH");
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array('"');
33 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("--");
39 $this->blockcommenton = array("{");
40 $this->blockcommentoff = array("}");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "ADD" => "1",
46  "AFTER" => "1",
47  "ALL" => "1",
48  "ALLOWING" => "1",
49  "AND" => "1",
50  "ANY" => "1",
51  "ARG_VAL" => "1",
52  "ARRAY" => "1",
53  "ARR_COUNT" => "1",
54  "ARR_CURR" => "1",
55  "AS" => "1",
56  "ASC" => "1",
57  "AT" => "1",
58  "ATTRIBUTE" => "1",
59  "ATTRIBUTES" => "1",
60  "AUTO" => "1",
61  "AUTONEXT" => "1",
62  "AVERAGE" => "1",
63  "AVG" => "1",
64  "BEFORE" => "1",
65  "BETWEEN" => "1",
66  "BOTTOM" => "1",
67  "BY" => "1",
68  "CALL" => "1",
69  "CASE" => "1",
70  "CHECK" => "1",
71  "CLEAR" => "1",
72  "CLIPPED" => "1",
73  "CLOSE" => "1",
74  "COLUMN" => "1",
75  "COLUMNS" => "1",
76  "COMMAND" => "1",
77  "COMMENT" => "1",
78  "COMMENTS" => "1",
79  "COMMIT" => "1",
80  "COMPOSITES" => "1",
81  "CONNECT" => "1",
82  "CONSTRUCT" => "1",
83  "CONTINUE" => "1",
84  "CORRECT" => "1",
85  "COUNT" => "1",
86  "CURRENT" => "1",
87  "CURSOR" => "1",
88  "DATABASE" => "1",
89  "DECLARE" => "1",
90  "DEFAULT" => "1",
91  "DEFER" => "1",
92  "DEFINE" => "1",
93  "DELIMITERS" => "1",
94  "DESC" => "1",
95  "DESCRIBE" => "1",
96  "DISPLAY" => "1",
97  "DISPLAYONLY" => "1",
98  "DISTINCT" => "1",
99  "DO" => "1",
100  "DOWN" => "1",
101  "DOWNSHIFT" => "1",
102  "ELSE" => "1",
103  "END" => "1",
104  "ENTRY" => "1",
105  "EVERY" => "1",
106  "EXECUTE" => "1",
107  "EXISTS" => "1",
108  "EXIT" => "1",
109  "EXTERN" => "1",
110  "FALSE" => "1",
111  "FETCH" => "1",
112  "FIELD" => "1",
113  "FINISH" => "1",
114  "FIRST" => "1",
115  "FOR" => "1",
116  "FOREACH" => "1",
117  "FORM" => "1",
118  "FORMAT" => "1",
119  "FORMONLY" => "1",
120  "FOUND" => "1",
121  "FROM" => "1",
122  "FUNCTION" => "1",
123  "GLOGALS" => "1",
124  "GROUP" => "1",
125  "HAVING" => "1",
126  "HEADER" => "1",
127  "HELP" => "1",
128  "IF" => "1",
129  "IN" => "1",
130  "INCLUDE" => "1",
131  "INPUT" => "1",
132  "INSERT" => "1",
133  "INSTRUCTIONS" => "1",
134  "INTO" => "1",
135  "IS" => "1",
136  "JOINING" => "1",
137  "KEY" => "1",
138  "LABEL" => "1",
139  "LAST" => "1",
140  "LENGHT" => "1",
141  "LET" => "1",
142  "LINE" => "1",
143  "LINENO" => "1",
144  "LINES" => "1",
145  "LOG" => "1",
146  "MAIN" => "1",
147  "MARGIN" => "1",
148  "MASTER" => "1",
149  "MATCHES" => "1",
150  "MAX" => "1",
151  "MDY" => "1",
152  "MENU" => "1",
153  "MESSAGE" => "1",
154  "MIN" => "1",
155  "MODE" => "1",
156  "NAME" => "1",
157  "NEED" => "1",
158  "NEXT" => "1",
159  "NEXTFIELD" => "1",
160  "NO" => "1",
161  "NORMAL" => "1",
162  "NOT" => "1",
163  "NOTFOUND" => "1",
164  "NULL" => "1",
165  "NUM_ARGS" => "1",
166  "OF" => "1",
167  "ON" => "1",
168  "OPEN" => "1",
169  "OPTION" => "1",
170  "OPTIONS" => "1",
171  "OR" => "1",
172  "ORDER" => "1",
173  "OTHERWISE" => "1",
174  "OUTER" => "1",
175  "OUTPUT" => "1",
176  "PAGE" => "1",
177  "PAGENO" => "1",
178  "PREPARE" => "1",
179  "PREVIOUS" => "1",
180  "PRINT" => "1",
181  "PRINTER" => "1",
182  "PRIVILEGES" => "1",
183  "PROGRAM" => "1",
184  "PROMPT" => "1",
185  "QUERY" => "1",
186  "QUERYCLEAR" => "1",
187  "QUIT" => "1",
188  "RECORD" => "1",
189  "REGISTER" => "1",
190  "REPORT" => "1",
191  "RESOURCE" => "1",
192  "RETURN" => "1",
193  "RETURNING" => "1",
194  "REVERSE" => "1",
195  "RIGHT" => "1",
196  "ROW" => "1",
197  "ROWID" => "1",
198  "RUN" => "1",
199  "SCREEN" => "1",
200  "SCROLL" => "1",
201  "SCR_LINE" => "1",
202  "SELECT" => "1",
203  "SET" => "1",
204  "SET_COUNT" => "1",
205  "SHARE" => "1",
206  "SIZEOF" => "1",
207  "SKIP" => "1",
208  "SOME" => "1",
209  "SQLCA" => "1",
210  "START" => "1",
211  "STARTLOG" => "1",
212  "STATIC" => "1",
213  "STATISTICS" => "1",
214  "STATUS" => "1",
215  "STEP" => "1",
216  "STOP" => "1",
217  "SUM" => "1",
218  "SWITCH" => "1",
219  "SYNONYM" => "1",
220  "SYSTABLES" => "1",
221  "THEN" => "1",
222  "THROUGH" => "1",
223  "THRU" => "1",
224  "TO" => "1",
225  "TOP" => "1",
226  "TRAILER" => "1",
227  "TRUE" => "1",
228  "UNION" => "1",
229  "UNIQUE" => "1",
230  "UNLOCK" => "1",
231  "UP" => "1",
232  "UBeautifierIFT" => "1",
233  "USER" => "1",
234  "USING" => "1",
235  "VALIDATE" => "1",
236  "VALUE" => "1",
237  "VALUES" => "1",
238  "VERIFY" => "1",
239  "VIEW" => "1",
240  "WAITING" => "1",
241  "WARNING" => "1",
242  "WHEN" => "1",
243  "WHENEVER" => "1",
244  "WHERE" => "1",
245  "WHILE" => "1",
246  "WITH" => "1",
247  "WITHOUT" => "1",
248  "WORK" => "1",
249  "WRAP" => "1",
250  "ALTER" => "2",
251  "BREAK" => "2",
252  "CREATE" => "2",
253  "DELETE" => "2",
254  "DROP" => "2",
255  "EDITADD" => "2",
256  "EDITUPDATE" => "2",
257  "ERROR" => "2",
258  "ERRORLOG" => "2",
259  "ERR_GET" => "2",
260  "ERR_PRINT" => "2",
261  "ERR_QUIT" => "2",
262  "EXCLUSIVE" => "2",
263  "EXITNOW" => "2",
264  "GOTO" => "2",
265  "GRANT" => "2",
266  "INITIALIZE" => "2",
267  "INTERRUPT" => "2",
268  "LOCK" => "2",
269  "MODIFY" => "2",
270  "PAUSE" => "2",
271  "PIPE" => "2",
272  "PUBLIC" => "2",
273  "RECOVER" => "2",
274  "REMOVE" => "2",
275  "RENAME" => "2",
276  "REVOKE" => "2",
277  "ROLLBACK" => "2",
278  "ROLLFORWARD" => "2",
279  "SLEEP" => "2",
280  "SQLERRD" => "2",
281  "TABLE" => "2",
282  "TABLES" => "2",
283  "TEMP" => "2",
284  "UPDATE" => "2",
285  "CHAR" => "3",
286  "DATE" => "3",
287  "DAY" => "3",
288  "DBA" => "3",
289  "DECIMAL" => "3",
290  "DOUBLE" => "3",
291  "DEC" => "3",
292  "FLOAT" => "3",
293  "INDEX" => "3",
294  "INT" => "3",
295  "INTEGER" => "3",
296  "LIKE" => "3",
297  "LONG" => "3",
298  "LOOKUP" => "3",
299  "MONEY" => "3",
300  "MONTH" => "3",
301  "NOENTRY" => "3",
302  "NOUPDATE" => "3",
303  "PERCENT" => "3",
304  "PICTURE" => "3",
305  "REQUIRED" => "3",
306  "SHORT" => "3",
307  "SMALLFLOAT" => "3",
308  "SMALLINT" => "3",
309  "STRUCT" => "3",
310  "SERIAL" => "3",
311  "SPACE" => "3",
312  "SPACES" => "3",
313  "TIME" => "3",
314  "TODAY" => "3",
315  "TYPE" => "3",
316  "TYPEDEF" => "3",
317  "UNSIGNED" => "3",
318  "WEEKDAY" => "3",
319  "YEAR" => "3",
320  "ZEROFILL" => "3");
321 
322 // Special extensions
323 
324 // Each category can specify a PHP function that returns an altered
325 // version of the keyword.
326 
327 
328 
329 $this->linkscripts = array(
330  "1" => "donothing",
331  "2" => "donothing",
332  "3" => "donothing");
333 }
334 
335 
336 function donothing($keywordin)
337 {
338  return $keywordin;
339 }
340 
341 }?>