ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_cobol.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_cobol extends HFile
8 {
9 public function HFile_cobol()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Cobol
15 /*************************************/
16 // Flags
17
18 $this->nocase = "0";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22 // Colours
23
24 $this->colours = array("blue", "purple", "gray", "brown", "blue");
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 "accept" => "1",
50 "access" => "1",
51 "acquire" => "1",
52 "actual" => "1",
53 "add" => "1",
54 "address" => "1",
55 "advancing" => "1",
56 "after" => "1",
57 "all" => "1",
58 "allowing" => "1",
59 "alphabet" => "1",
60 "alphabetic" => "1",
61 "alphabetic-lower" => "1",
62 "alphabetic-upper" => "1",
63 "alphanumeric" => "1",
64 "alphanumeric-edited" => "1",
65 "also" => "1",
66 "alter" => "1",
67 "alternate" => "1",
68 "and" => "1",
69 "any" => "1",
70 "apply" => "1",
71 "are" => "1",
72 "area" => "1",
73 "areas" => "1",
74 "as" => "1",
75 "ascending" => "1",
76 "assign" => "1",
77 "at" => "1",
78 "attribute" => "1",
79 "author" => "1",
80 "auto" => "1",
81 "auto-hyphen-skip" => "1",
82 "auto-skip" => "1",
83 "automatic" => "1",
84 "autoterminate" => "1",
85 "background-color" => "1",
86 "background-colour" => "1",
87 "backward" => "1",
88 "basis" => "1",
89 "beep" => "1",
90 "before" => "1",
91 "beginning" => "1",
92 "bell" => "1",
93 "binary" => "1",
94 "blank" => "1",
95 "blink" => "1",
96 "blinking" => "1",
97 "block" => "1",
98 "bold" => "1",
99 "bottom" => "1",
100 "box" => "1",
101 "boxed" => "1",
102 "by" => "1",
103 "c01" => "1",
104 "c02" => "1",
105 "c04" => "1",
106 "c05" => "1",
107 "c06" => "1",
108 "c07" => "1",
109 "c08" => "1",
110 "c09" => "1",
111 "c10" => "1",
112 "c11" => "1",
113 "c12" => "1",
114 "cancel" => "1",
115 "cbl" => "1",
116 "cd" => "1",
117 "centered" => "1",
118 "cf" => "1",
119 "ch" => "1",
120 "chain" => "1",
121 "chaining" => "1",
122 "changed" => "1",
123 "character" => "1",
124 "characters" => "1",
125 "chart" => "1",
126 "class" => "1",
127 "clock-units" => "1",
128 "close" => "1",
129 "cobol" => "1",
130 "code" => "1",
131 "code-set" => "1",
132 "col" => "1",
133 "collating" => "1",
134 "color" => "1",
135 "colour" => "1",
136 "column" => "1",
137 "com-reg" => "1",
138 "comma" => "1",
139 "command-line" => "1",
140 "commit" => "1",
141 "commitment" => "1",
142 "common" => "1",
143 "communication" => "1",
144 "comp" => "1",
145 "comp-0" => "1",
146 "comp-1" => "1",
147 "comp-2" => "1",
148 "comp-3" => "1",
149 "comp-4" => "1",
150 "comp-5" => "1",
151 "comp-6" => "1",
152 "comp-x" => "1",
153 "compression" => "1",
154 "computational" => "1",
155 "computational-1" => "1",
156 "computational-2" => "1",
157 "computational-3" => "1",
158 "computational-4" => "1",
159 "computational-5" => "1",
160 "computational-6" => "1",
161 "computational-x" => "1",
162 "compute" => "1",
163 "configuration" => "1",
164 "console" => "1",
165 "contains" => "1",
166 "content" => "1",
167 "continue" => "1",
168 "control" => "1",
169 "control-area" => "1",
170 "controls" => "1",
171 "conversion" => "1",
172 "convert" => "1",
173 "converting" => "1",
174 "core-index" => "1",
175 "corr" => "1",
176 "corresponding" => "1",
177 "count" => "1",
178 "crt" => "1",
179 "crt-under" => "1",
180 "csp" => "1",
181 "currency" => "1",
182 "current-date" => "1",
183 "cursor" => "1",
184 "cycle" => "1",
185 "cyl-index" => "1",
186 "cyl-overflow" => "1",
187 "data" => "1",
188 "date" => "1",
189 "date-compiled" => "1",
190 "date-written" => "1",
191 "day" => "1",
192 "day-of-week" => "1",
193 "dbcs" => "1",
194 "de" => "1",
195 "debug" => "1",
196 "debug-contents" => "1",
197 "debug-item" => "1",
198 "debug-line" => "1",
199 "debug-name" => "1",
200 "debug-sub-1" => "1",
201 "debug-sub-2" => "1",
202 "debug-sub-3" => "1",
203 "debugging" => "1",
204 "decimal-point" => "1",
205 "declaratives" => "1",
206 "default" => "1",
207 "delete" => "1",
208 "delimited" => "1",
209 "delimiter" => "1",
210 "depending" => "1",
211 "descending" => "1",
212 "destination" => "1",
213 "detail" => "1",
214 "disable" => "1",
215 "disk" => "1",
216 "disp" => "1",
217 "display" => "1",
218 "display-1" => "1",
219 "display-st" => "1",
220 "divide" => "1",
221 "division" => "1",
222 "down" => "1",
223 "draw" => "1",
224 "drop" => "1",
225 "duplicates" => "1",
226 "dynamic" => "1",
227 "echo" => "1",
228 "egcs" => "1",
229 "egi" => "1",
230 "eject" => "1",
231 "emi" => "1",
232 "empty-check" => "1",
233 "enable" => "1",
234 "encryption" => "1",
235 "end" => "1",
236 "end-accept" => "1",
237 "end-add" => "1",
238 "end-call" => "1",
239 "end-chain" => "1",
240 "end-compute" => "1",
241 "end-delete" => "1",
242 "end-display" => "1",
243 "end-divide" => "1",
244 "end-invoke" => "1",
245 "end-multiply" => "1",
246 "end-of-page" => "1",
247 "end-perform" => "1",
248 "end-read" => "1",
249 "end-receive" => "1",
250 "end-return" => "1",
251 "end-rewrite" => "1",
252 "end-search" => "1",
253 "end-start" => "1",
254 "end-string" => "1",
255 "end-subtract" => "1",
256 "end-unstring" => "1",
257 "end-write" => "1",
258 "ending" => "1",
259 "enter" => "1",
260 "entry" => "1",
261 "environment" => "1",
262 "environment-division" => "1",
263 "eol" => "1",
264 "eop" => "1",
265 "eos" => "1",
266 "equal" => "1",
267 "equals" => "1",
268 "erase" => "1",
269 "error" => "1",
270 "escape" => "1",
271 "esi" => "1",
272 "every" => "1",
273 "examine" => "1",
274 "exceeds" => "1",
275 "exception" => "1",
276 "excess-3" => "1",
277 "exclusive" => "1",
278 "exec" => "1",
279 "execute" => "1",
280 "exhibit" => "1",
281 "extend" => "1",
282 "extended-search" => "1",
283 "external" => "1",
284 "externally-described-key" => "1",
285 "factory" => "1",
286 "false" => "1",
287 "fd" => "1",
288 "fh--fcd" => "1",
289 "fh--keydef" => "1",
290 "file" => "1",
291 "file-control" => "1",
292 "file-id" => "1",
293 "file-limit" => "1",
294 "file-limits" => "1",
295 "file-prefix" => "1",
296 "filler" => "1",
297 "final" => "1",
298 "first" => "1",
299 "fixed" => "1",
300 "footing" => "1",
301 "for" => "1",
302 "foreground-color" => "1",
303 "foreground-colour" => "1",
304 "format" => "1",
305 "from" => "1",
306 "full" => "1",
307 "function" => "1",
308 "generate" => "1",
309 "giving" => "1",
310 "global" => "1",
311 "go" => "1",
312 "goback" => "1",
313 "greater" => "1",
314 "grid" => "1",
315 "group" => "1",
316 "heading" => "1",
317 "high" => "1",
318 "high-value" => "1",
319 "high-values" => "1",
320 "highlight" => "1",
321 "i-o" => "1",
322 "i-o-control" => "1",
323 "id" => "1",
324 "identification" => "1",
325 "ignore" => "1",
326 "in" => "1",
327 "index" => "1",
328 "indexed" => "1",
329 "indic" => "1",
330 "indicate" => "1",
331 "indicator" => "1",
332 "indicators" => "1",
333 "inheriting" => "1",
334 "initial" => "1",
335 "initialize" => "1",
336 "initiate" => "1",
337 "input" => "1",
338 "input-output" => "1",
339 "insert" => "1",
340 "inspect" => "1",
341 "installation" => "1",
342 "into" => "1",
343 "invalid" => "1",
344 "invoke" => "1",
345 "invoked" => "1",
346 "is" => "1",
347 "japanese" => "1",
348 "just" => "1",
349 "justified" => "1",
350 "kanji" => "1",
351 "kept" => "1",
352 "key" => "1",
353 "keyboard" => "1",
354 "label" => "1",
355 "last" => "1",
356 "leading" => "1",
357 "leave" => "1",
358 "left" => "1",
359 "lrft-justify" => "1",
360 "leftline" => "1",
361 "length" => "1",
362 "length-check" => "1",
363 "less" => "1",
364 "limit" => "1",
365 "limits" => "1",
366 "lin" => "1",
367 "linage" => "1",
368 "linage-counter" => "1",
369 "line" => "1",
370 "line-counter" => "1",
371 "lines" => "1",
372 "linkage" => "1",
373 "local-storage" => "1",
374 "lock" => "1",
375 "lock-holding" => "1",
376 "locking" => "1",
377 "low" => "1",
378 "low-value" => "1",
379 "low-values" => "1",
380 "lower" => "1",
381 "lowlight" => "1",
382 "manual" => "1",
383 "mass-update" => "1",
384 "master-index" => "1",
385 "memory" => "1",
386 "merge" => "1",
387 "message" => "1",
388 "method" => "1",
389 "mode" => "1",
390 "modified" => "1",
391 "modules" => "1",
392 "more-labels" => "1",
393 "move" => "1",
394 "multiple" => "1",
395 "multiply" => "1",
396 "name" => "1",
397 "named" => "1",
398 "national" => "1",
399 "national-edited" => "1",
400 "native" => "1",
401 "nchar" => "1",
402 "negative" => "1",
403 "next" => "1",
404 "no" => "1",
405 "no-echo" => "1",
406 "nominal" => "1",
407 "not" => "1",
408 "note" => "1",
409 "nstd-reels" => "1",
410 "null" => "1",
411 "nulls" => "1",
412 "number" => "1",
413 "numeric" => "1",
414 "numeric-edited" => "1",
415 "numeric-fill" => "1",
416 "o-fill" => "1",
417 "object" => "1",
418 "object-computer" => "1",
419 "object-storage" => "1",
420 "occurs" => "1",
421 "of" => "1",
422 "off" => "1",
423 "omitted" => "1",
424 "on" => "1",
425 "oostackptr" => "1",
426 "open" => "1",
427 "optional" => "1",
428 "or" => "1",
429 "order" => "1",
430 "organization" => "1",
431 "other" => "1",
432 "others" => "1",
433 "otherwise" => "1",
434 "output" => "1",
435 "overflow" => "1",
436 "overline" => "1",
437 "packed-decimal" => "1",
438 "padding" => "1",
439 "page" => "1",
440 "page-counter" => "1",
441 "paragraph" => "1",
442 "password" => "1",
443 "pf" => "1",
444 "ph" => "1",
445 "pic" => "1",
446 "picture" => "1",
447 "plus" => "1",
448 "pointer" => "1",
449 "pop-up" => "1",
450 "pos" => "1",
451 "position" => "1",
452 "positioning" => "1",
453 "positive" => "1",
454 "previous" => "1",
455 "print" => "1",
456 "print-control" => "1",
457 "print-switch" => "1",
458 "printer" => "1",
459 "printer-1" => "1",
460 "printing" => "1",
461 "prior" => "1",
462 "private" => "1",
463 "procedure" => "1",
464 "procedure-pointer" => "1",
465 "procedures" => "1",
466 "proceed" => "1",
467 "process" => "1",
468 "processing" => "1",
469 "program" => "1",
470 "program-id" => "1",
471 "prompt" => "1",
472 "protected" => "1",
473 "public" => "1",
474 "purge" => "1",
475 "queue" => "1",
476 "quote" => "1",
477 "quotes" => "1",
478 "random" => "1",
479 "range" => "1",
480 "rd" => "1",
481 "read" => "1",
482 "readers" => "1",
483 "ready" => "1",
484 "receive" => "1",
485 "record" => "1",
486 "record-overflow" => "1",
487 "recording" => "1",
488 "records" => "1",
489 "redefines" => "1",
490 "reel" => "1",
491 "reference" => "1",
492 "references" => "1",
493 "relative" => "1",
494 "release" => "1",
495 "reload" => "1",
496 "remainder" => "1",
497 "remarks" => "1",
498 "removal" => "1",
499 "renames" => "1",
500 "reorg-criteria" => "1",
501 "repeated" => "1",
502 "replace" => "1",
503 "replacing" => "1",
504 "report" => "1",
505 "reporting" => "1",
506 "reports" => "1",
507 "required" => "1",
508 "reread" => "1",
509 "rerun" => "1",
510 "reserve" => "1",
511 "reset" => "1",
512 "resident" => "1",
513 "return" => "1",
514 "return-code" => "1",
515 "returning" => "1",
516 "reverse" => "1",
517 "reverse-video" => "1",
518 "reversed" => "1",
519 "rewind" => "1",
520 "rewrite" => "1",
521 "rf" => "1",
522 "rh" => "1",
523 "right" => "1",
524 "right-justify" => "1",
525 "rollback" => "1",
526 "rolling" => "1",
527 "rounded" => "1",
528 "run" => "1",
529 "s01" => "1",
530 "s02" => "1",
531 "s03" => "1",
532 "s04" => "1",
533 "s05" => "1",
534 "same" => "1",
535 "screen" => "1",
536 "scroll" => "1",
537 "sd" => "1",
538 "search" => "1",
539 "section" => "1",
540 "secure" => "1",
541 "security" => "1",
542 "seek" => "1",
543 "segment" => "1",
544 "segment-limit" => "1",
545 "select" => "1",
546 "selective" => "1",
547 "self" => "1",
548 "selfclass" => "1",
549 "send" => "1",
550 "sentence" => "1",
551 "separate" => "1",
552 "sequence" => "1",
553 "sequential" => "1",
554 "service" => "1",
555 "set" => "1",
556 "setshadow" => "1",
557 "shift-in" => "1",
558 "shift-out" => "1",
559 "sign" => "1",
560 "size" => "1",
561 "skip1" => "1",
562 "skip2" => "1",
563 "skip3" => "1",
564 "sort" => "1",
565 "sort-control" => "1",
566 "sort-core-size" => "1",
567 "sort-file-size" => "1",
568 "sort-merge" => "1",
569 "sort-message" => "1",
570 "sort-mode-size" => "1",
571 "sort-option" => "1",
572 "sort-return" => "1",
573 "source" => "1",
574 "source-computer" => "1",
575 "space" => "1",
576 "spaces" => "1",
577 "space-fill" => "1",
578 "special-names" => "1",
579 "standard" => "1",
580 "standard-1" => "1",
581 "standard-2" => "1",
582 "start" => "1",
583 "starting" => "1",
584 "status" => "1",
585 "stop" => "1",
586 "store" => "1",
587 "string" => "1",
588 "sub-queue-1" => "1",
589 "sub-queue-2" => "1",
590 "sub-queue-3" => "1",
591 "subfile" => "1",
592 "subtract" => "1",
593 "sum" => "1",
594 "super" => "1",
595 "supress" => "1",
596 "symbolic" => "1",
597 "sync" => "1",
598 "synchronized" => "1",
599 "sysin" => "1",
600 "sysipt" => "1",
601 "syslst" => "1",
602 "sysout" => "1",
603 "syspch" => "1",
604 "syspunch" => "1",
605 "system-info" => "1",
606 "tab" => "1",
607 "tallying" => "1",
608 "tape" => "1",
609 "terminal" => "1",
610 "terminal-info" => "1",
611 "terminate" => "1",
612 "test" => "1",
613 "text" => "1",
614 "than" => "1",
615 "through" => "1",
616 "thru" => "1",
617 "time" => "1",
618 "time-of-day" => "1",
619 "time-out" => "1",
620 "timeout" => "1",
621 "times" => "1",
622 "title" => "1",
623 "to" => "1",
624 "top" => "1",
625 "totaled" => "1",
626 "totaling" => "1",
627 "trace" => "1",
628 "track-area" => "1",
629 "track-limit" => "1",
630 "tracks" => "1",
631 "trailing" => "1",
632 "trailing-sign" => "1",
633 "transaction" => "1",
634 "transform" => "1",
635 "true" => "1",
636 "type" => "1",
637 "typedef" => "1",
638 "underline" => "1",
639 "underlined" => "1",
640 "unequal" => "1",
641 "unit" => "1",
642 "unlock" => "1",
643 "unstring" => "1",
644 "until" => "1",
645 "up" => "1",
646 "update" => "1",
647 "updaters" => "1",
648 "upon" => "1",
649 "upper" => "1",
650 "upsi-0" => "1",
651 "upsi-1" => "1",
652 "upsi-2" => "1",
653 "upsi-3" => "1",
654 "upsi-4" => "1",
655 "upsi-5" => "1",
656 "upsi-6" => "1",
657 "upsi-7" => "1",
658 "usage" => "1",
659 "use" => "1",
660 "user" => "1",
661 "using" => "1",
662 "value" => "1",
663 "values" => "1",
664 "variable" => "1",
665 "varying" => "1",
666 "wait" => "1",
667 "when-compiled" => "1",
668 "window" => "1",
669 "with" => "1",
670 "words" => "1",
671 "working-storage" => "1",
672 "wrap" => "1",
673 "write" => "1",
674 "write-only" => "1",
675 "write-verify" => "1",
676 "writerszero" => "1",
677 "zero" => "1",
678 "zero-fill" => "1",
679 "zeros" => "1",
680 "zeroes" => "1",
681 "call" => "2",
682 "exit" => "2",
683 "else" => "2",
684 "end-if" => "2",
685 "end-evaluate" => "2",
686 "evaluate" => "2",
687 "if" => "2",
688 "perform" => "2",
689 "then" => "2",
690 "when" => "2",
691 "01" => "3",
692 "15" => "3",
693 "77" => "3",
694 "78" => "3",
695 "z" => "3",
696 "88" => "3",
697 "x" => "4",
698 "02" => "4",
699 "03" => "4",
700 "04" => "4",
701 "05" => "4",
702 "copy" => "5",
703 "d" => "5",
704 "ddebug" => "5");
705
706 // Special extensions
707
708 // Each category can specify a PHP function that returns an altered
709 // version of the keyword.
710
711
712
713 $this->linkscripts = array(
714 "1" => "donothing",
715 "2" => "donothing",
716 "3" => "donothing",
717 "4" => "donothing",
718 "5" => "donothing");
719 }
720
721
722 public function donothing($keywordin)
723 {
724 return $keywordin;
725 }
726 }
$BEAUT_PATH
Definition: HFile_cobol.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)