ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_sas.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_sas extends HFile
8 {
9 public function HFile_sas()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // SAS
15 /*************************************/
16 // Flags
17
18 $this->nocase = "1";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22 // Colours
23
24 $this->colours = array("blue", "purple", "gray", "brown");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29 // Indent Strings
30
31 $this->indent = array();
32 $this->unindent = array();
33
34 // String characters and delimiters
35
36 $this->stringchars = array();
37 $this->delimiters = array("~", "!", "@", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38 $this->escchar = "";
39
40 // Comment settings
41
42 $this->linecommenton = array("*");
43 $this->blockcommenton = array("/*");
44 $this->blockcommentoff = array("*/");
45
46 // Keywords (keyword mapping to colour number)
47
48 $this->keywords = array(
49 "_null_" => "1",
50 "abort" => "1",
51 "array" => "1",
52 "attrib" => "1",
53 "and" => "1",
54 "by" => "1",
55 "call" => "1",
56 "cards" => "1",
57 "cards4" => "1",
58 "center" => "1",
59 "data" => "1",
60 "delete" => "1",
61 "do" => "1",
62 "drop" => "1",
63 "dim" => "1",
64 "else" => "1",
65 "end" => "1",
66 "eof" => "1",
67 "file" => "1",
68 "format" => "2",
69 "formchar" => "1",
70 "footenote" => "1",
71 "footenote1" => "1",
72 "footenote2" => "1",
73 "footenote3" => "1",
74 "footenote4" => "1",
75 "footenote5" => "1",
76 "footenote6" => "1",
77 "footenote7" => "1",
78 "footenote8" => "1",
79 "footenote9" => "1",
80 "footenote10" => "1",
81 "firstobs" => "1",
82 "filename" => "1",
83 "go" => "1",
84 "if" => "1",
85 "infile" => "1",
86 "informat" => "1",
87 "input" => "1",
88 "in" => "1",
89 "keep" => "1",
90 "label" => "1",
91 "length" => "1",
92 "link" => "1",
93 "lostcard" => "1",
94 "ls" => "1",
95 "libname" => "1",
96 "left" => "1",
97 "lrecl" => "1",
98 "lastobs" => "1",
99 "merge" => "1",
100 "missing" => "1",
101 "mtrace" => "1",
102 "mprint" => "1",
103 "min" => "1",
104 "max" => "1",
105 "mlogic" => "1",
106 "missover" => "1",
107 "mdy" => "1",
108 "nonumber" => "1",
109 "nobs" => "1",
110 "nomprint" => "1",
111 "nomtrace" => "1",
112 "nosymbolgen" => "1",
113 "noovp" => "1",
114 "null" => "1",
115 "over" => "1",
116 "output" => "3",
117 "out" => "2",
118 "options" => "2",
119 "or" => "1",
120 "otherwise" => "1",
121 "put" => "1",
122 "ps" => "1",
123 "pad" => "1",
124 "rename" => "1",
125 "retain" => "1",
126 "return" => "1",
127 "run" => "1",
128 "rank" => "2",
129 "select" => "1",
130 "set" => "1",
131 "skip" => "2",
132 "stop" => "1",
133 "symbolgen" => "1",
134 "sum" => "1",
135 "source2" => "1",
136 "symput" => "1",
137 "same" => "1",
138 "substr" => "1",
139 "then" => "1",
140 "to" => "1",
141 "title" => "1",
142 "title1" => "1",
143 "title2" => "1",
144 "title3" => "1",
145 "title4" => "1",
146 "title5" => "1",
147 "title6" => "1",
148 "title7" => "1",
149 "title8" => "1",
150 "title9" => "1",
151 "title10" => "1",
152 "trim" => "1",
153 "time" => "1",
154 "until" => "1",
155 "update" => "1",
156 "where" => "1",
157 "while" => "1",
158 "window" => "1",
159 "when" => "1",
160 "as" => "2",
161 "after" => "2",
162 "append" => "2",
163 "break" => "2",
164 "calender" => "2",
165 "catalog" => "2",
166 "chart" => "2",
167 "cimport" => "2",
168 "class" => "2",
169 "contents" => "2",
170 "compare" => "2",
171 "copy" => "2",
172 "corr" => "2",
173 "cport" => "2",
174 "create" => "2",
175 "column" => "2",
176 "datasets" => "2",
177 "define" => "2",
178 "display" => "2",
179 "ERROR" => "2",
180 "endsas" => "2",
181 "forms" => "2",
182 "freq" => "3",
183 "from" => "2",
184 "group" => "2",
185 "headline" => "2",
186 "headskip" => "2",
187 "id" => "2",
188 "intervals" => "2",
189 "into" => "2",
190 "lifetest" => "3",
191 "list" => "2",
192 "line" => "2",
193 "lsmeans" => "2",
194 "method" => "2",
195 "means" => "2",
196 "model" => "2",
197 "new" => "2",
198 "noobs" => "2",
199 "noprint" => "2",
200 "n" => "2",
201 "NOTE" => "2",
202 "order" => "2",
203 "obs" => "2",
204 "outsurv" => "2",
205 "proc" => "2",
206 "print" => "2",
207 "plots" => "2",
208 "plot" => "2",
209 "pmenu" => "2",
210 "printto" => "2",
211 "pageby" => "2",
212 "report" => "2",
213 "repeated" => "2",
214 "sort" => "2",
215 "spell" => "2",
216 "strata" => "2",
217 "standard" => "2",
218 "summary" => "2",
219 "sql" => "2",
220 "split" => "2",
221 "sumby" => "2",
222 "tables" => "2",
223 "tabulate" => "2",
224 "test" => "2",
225 "timeplot" => "2",
226 "ttest" => "3",
227 "table" => "2",
228 "transpose" => "2",
229 "uniform" => "2",
230 "univariate" => "2",
231 "var" => "2",
232 "value" => "2",
233 "v5tov6" => "2",
234 "width" => "2",
235 "WARNING" => "2",
236 "aceclus" => "3",
237 "anova" => "3",
238 "calis" => "3",
239 "cancorr" => "3",
240 "candisc" => "3",
241 "catmod" => "3",
242 "cluster" => "3",
243 "corresp" => "3",
244 "discrim" => "3",
245 "factor" => "3",
246 "fastclus" => "3",
247 "genmod" => "3",
248 "glm" => "3",
249 "glmmod" => "3",
250 "inbreed" => "3",
251 "lattice" => "3",
252 "lifereg" => "3",
253 "logistic" => "3",
254 "mds" => "3",
255 "mixed" => "3",
256 "modeclus" => "3",
257 "multtest" => "3",
258 "nested" => "3",
259 "nlin" => "3",
260 "npar1way" => "3",
261 "orthoreg" => "3",
262 "phreg" => "3",
263 "plan" => "3",
264 "princomp" => "3",
265 "prinqual" => "3",
266 "reg" => "3",
267 "rsreg" => "3",
268 "score" => "3",
269 "stepdisc" => "3",
270 "template" => "3",
271 "transreg" => "3",
272 "tree" => "3",
273 "varclus" => "3",
274 "varcomp" => "3",
275 "%bquote" => "4",
276 "%display" => "4",
277 "%do" => "4",
278 "%end" => "4",
279 "%else" => "4",
280 "%eval" => "4",
281 "%goto" => "4",
282 "%global" => "4",
283 "%if" => "4",
284 "%include" => "4",
285 "%input" => "4",
286 "%keydef" => "4",
287 "%label" => "4",
288 "%let" => "4",
289 "%local" => "4",
290 "%macro" => "4",
291 "%mend" => "4",
292 "%put" => "4",
293 "%str" => "4",
294 "%scan" => "4",
295 "%syscall" => "4",
296 "%sysexec" => "4",
297 "%sysrput" => "4",
298 "%symget" => "4",
299 "%symput" => "4",
300 "%then" => "4",
301 "%to" => "4",
302 "%upcase" => "4",
303 "%until" => "4",
304 "%while" => "4",
305 "%window" => "4",
306 "MPRINT" => "4",
307 "MLOGIC" => "4",
308 "MTRACE" => "4",
309 "SYMBOLGEN" => "4");
310
311 // Special extensions
312
313 // Each category can specify a PHP function that returns an altered
314 // version of the keyword.
315
316
317
318 $this->linkscripts = array(
319 "1" => "donothing",
320 "2" => "donothing",
321 "3" => "donothing",
322 "4" => "donothing");
323 }
324
325
326 public function donothing($keywordin)
327 {
328 return $keywordin;
329 }
330 }
$BEAUT_PATH
Definition: HFile_sas.php:2
An exception for terminatinating execution or to throw for unit testing.
HFile_sas()
Definition: HFile_sas.php:9
donothing($keywordin)
Definition: HFile_sas.php:326