ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_rexx.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_rexx extends HFile{
6  function HFile_rexx(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // REXX
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
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();
28 $this->unindent = array();
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  "ADDRESS" => "1",
46  "ADDITIONAL" => "1",
47  "ANY" => "1",
48  "ARG" => "1",
49  "ARGUMENTS" => "1",
50  "ARRAY" => "1",
51  "BY" => "1",
52  "CALL" => "1",
53  "CASELESS" => "1",
54  "CONTINUE" => "1",
55  "CLASS" => "1",
56  "DESCRIPTION" => "1",
57  "DIGITS" => "1",
58  "DO" => "1",
59  "DROP" => "1",
60  "END" => "1",
61  "ENGINEERING" => "1",
62  "ERROR" => "1",
63  "EXIT" => "1",
64  "EXPOSE" => "1",
65  "ELSE" => "1",
66  "FAILURE" => "1",
67  "FOR" => "1",
68  "FOREVER" => "1",
69  "FORM" => "1",
70  "FORWARD" => "1",
71  "FUZZ" => "1",
72  "GUARD" => "1",
73  "HALT" => "1",
74  "IF" => "1",
75  "INTERPRET" => "1",
76  "ITERATE" => "1",
77  "LEAVE" => "1",
78  "LOWER" => "1",
79  "LOSTDIGITS" => "1",
80  "MESSAGE" => "1",
81  "NAME" => "1",
82  "NOP" => "1",
83  "NOMETHOD" => "1",
84  "NOSTRING" => "1",
85  "NOTREADY" => "1",
86  "NOVALUE" => "1",
87  "NUMERIC" => "1",
88  "ON" => "1",
89  "OFF" => "1",
90  "OTHERWISE" => "1",
91  "PARSE" => "1",
92  "PROCEDURE" => "1",
93  "PULL" => "1",
94  "PUSH" => "1",
95  "PROPAGATE" => "1",
96  "QUEUE" => "1",
97  "RAISE" => "1",
98  "REPLY" => "1",
99  "RETURN" => "1",
100  "RET" => "1",
101  "RC" => "1",
102  "SAY" => "1",
103  "SCIENTIFIC" => "1",
104  "SELECT" => "1",
105  "SIGL" => "1",
106  "SIGNAL" => "1",
107  "SOURCE" => "1",
108  "SYNTAX" => "1",
109  "THEN" => "1",
110  "TO" => "1",
111  "TRACE" => "1",
112  "UPPER" => "1",
113  "UNTIL" => "1",
114  "USE" => "1",
115  "USER" => "1",
116  "VERSION" => "1",
117  "WHEN" => "1",
118  "WHILE" => "1",
119  "WITH" => "1",
120  "ABBREV" => "2",
121  "ABS" => "2",
122  "APPEND" => "2",
123  "BEEP" => "2",
124  "BINARY" => "2",
125  "BITAND" => "2",
126  "BITOR" => "2",
127  "BITXOR" => "2",
128  "BOTH" => "2",
129  "B2X" => "2",
130  "CENTER" => "2",
131  "CHANGESTR" => "2",
132  "CHAR" => "2",
133  "CHARIN" => "2",
134  "CHAROUT" => "2",
135  "CHARS" => "2",
136  "COMPARE" => "2",
137  "CONDITION" => "2",
138  "COPIES" => "2",
139  "COUNTSTR" => "2",
140  "CLOSE" => "2",
141  "C2D" => "2",
142  "C2X" => "2",
143  "DATETIME" => "2",
144  "DATATYPE" => "2",
145  "DATE" => "2",
146  "DELSTR" => "2",
147  "DELWORD" => "2",
148  "DIRECTORY" => "2",
149  "D2C" => "2",
150  "D2X" => "2",
151  "ERRORTEXT" => "2",
152  "EXISTS" => "2",
153  "FILESPEC" => "2",
154  "FLUSH" => "2",
155  "FORMAT" => "2",
156  "HANDLE" => "2",
157  "INSERT" => "2",
158  "LASTPOS" => "2",
159  "LEFT" => "2",
160  "LENGTH" => "2",
161  "LINE" => "2",
162  "LINEIN" => "2",
163  "LINEOUT" => "2",
164  "LINES" => "2",
165  "MAX" => "2",
166  "MIN" => "2",
167  "NOBUFFER" => "2",
168  "OPEN" => "2",
169  "OVERLAY" => "2",
170  "POS" => "2",
171  "POSITION" => "2",
172  "QUEUED" => "2",
173  "QUERY" => "2",
174  "RANDOM" => "2",
175  "RECLENGTH" => "2",
176  "READ" => "2",
177  "REPLACE" => "2",
178  "REVERSE" => "2",
179  "RIGHT" => "2",
180  "SEEK" => "2",
181  "SIGN" => "2",
182  "SIZE" => "2",
183  "SHARED" => "2",
184  "SHAREREAD" => "2",
185  "SHAREWRITE" => "2",
186  "SOURCELINE" => "2",
187  "SPACE" => "2",
188  "STREAM" => "2",
189  "STREAMTYPE" => "2",
190  "STRIP" => "2",
191  "SUBWORD" => "2",
192  "SUBSTR" => "2",
193  "SYMBOL" => "2",
194  "SYS" => "2",
195  "TIME" => "2",
196  "TIMESTAMP" => "2",
197  "TRANSLATE" => "2",
198  "TRUNC" => "2",
199  "VAR" => "2",
200  "VALUE" => "2",
201  "VERIFY" => "2",
202  "WORD" => "2",
203  "WORDINDEX" => "2",
204  "WORDLENGTH" => "2",
205  "WORDPOS" => "2",
206  "WORDS" => "2",
207  "WRITE" => "2",
208  "XRANGE" => "2",
209  "X2B" => "2",
210  "X2C" => "2",
211  "X2D" => "2",
212  "PID" => "3",
213  "PPRIO" => "3",
214  "PTIME" => "3",
215  "RxFuncAdd" => "3",
216  "RxFuncDrop" => "3",
217  "RxFuncQuery" => "3",
218  "RxQueue" => "3",
219  "RxMessageBox" => "3",
220  "RxWinExec" => "3",
221  "SysAddRexxMacro" => "3",
222  "SysBootDrive" => "3",
223  "SysClearRexxMacroSpace" => "3",
224  "SysCloseEventSem" => "3",
225  "SysCloseMutexSem" => "3",
226  "SysCls" => "3",
227  "SysCreateEventSem" => "3",
228  "SysCreateMutexSem" => "3",
229  "SysCurPos" => "3",
230  "SysCurState" => "3",
231  "SysDriveInfo" => "3",
232  "SysDriveMap" => "3",
233  "SysDropFuncs" => "3",
234  "SysDropRexxMacro" => "3",
235  "SysDumpVariables" => "3",
236  "SysFileDelete" => "3",
237  "SysFileSearch" => "3",
238  "SysFileSystemType" => "3",
239  "SysGetFileDateTime" => "3",
240  "SysFileTree" => "3",
241  "SysGetKey" => "3",
242  "SysIni" => "3",
243  "SysLoadFuncs" => "3",
244  "SysLoadRexxMacroSpace" => "3",
245  "SysMkDir" => "3",
246  "SysOpenEventSem" => "3",
247  "SysOpenMutexSem" => "3",
248  "SysPostEventSem" => "3",
249  "SysPulseEventSem" => "3",
250  "SysQueryProcess" => "3",
251  "SysQueryRexxMacro" => "3",
252  "SysReleaseMutexSem" => "3",
253  "SysReorderRexxMacro" => "3",
254  "SysRequestMutexSem" => "3",
255  "SysResetEventSem" => "3",
256  "SysRmDir" => "3",
257  "SysSaveRexxMacroSpace" => "3",
258  "SysSearchPath" => "3",
259  "SysSetFileDateTime" => "3",
260  "SysSetPriority" => "3",
261  "SysSleep" => "3",
262  "SysStemCopy" => "3",
263  "SysStemDelete" => "3",
264  "SysStemInsert" => "3",
265  "SysStemSort" => "3",
266  "SysSwitchSession" => "3",
267  "SysSystemDirectory" => "3",
268  "SysTempFileName" => "3",
269  "SysTextScreenRead" => "3",
270  "SysTextScreenSize" => "3",
271  "SysUtilVersion" => "3",
272  "SysVolumeLabel" => "3",
273  "SysWaitEventSem" => "3",
274  "SysWaitNamedPipe" => "3",
275  "SysVersion" => "3",
276  "SysWinVer" => "3",
277  "TID" => "3",
278  "TPRIO" => "3",
279  "TTIME" => "3");
280 
281 // Special extensions
282 
283 // Each category can specify a PHP function that returns an altered
284 // version of the keyword.
285 
286 
287 
288 $this->linkscripts = array(
289  "1" => "donothing",
290  "2" => "donothing",
291  "3" => "donothing");
292 }
293 
294 
295 function donothing($keywordin)
296 {
297  return $keywordin;
298 }
299 
300 }?>