ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_modula.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_modula extends HFile
8 {
9 public function HFile_modula()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Modula3
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");
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 "AND" => "1",
50 "AS" => "1",
51 "ANY" => "1",
52 "ARRAY" => "1",
53 "BEGIN" => "1",
54 "BITS" => "1",
55 "BRANDED" => "1",
56 "BY" => "1",
57 "CASE" => "1",
58 "CONST" => "1",
59 "DIV" => "1",
60 "DO" => "1",
61 "END" => "1",
62 "EVAL" => "1",
63 "EXCEPT" => "1",
64 "EXCEPTION" => "1",
65 "EXIT" => "1",
66 "EXPORTS" => "1",
67 "ELSIF" => "1",
68 "ELSE" => "1",
69 "FROM" => "1",
70 "FINALLY" => "1",
71 "FOR" => "1",
72 "GENERIC" => "1",
73 "IF" => "1",
74 "IMPORT" => "1",
75 "IN" => "1",
76 "INTERFACE" => "1",
77 "LOCK" => "1",
78 "LOOP" => "1",
79 "METHODS" => "1",
80 "MOD" => "1",
81 "MODULE" => "1",
82 "NOT" => "1",
83 "OBJECT" => "1",
84 "OF" => "1",
85 "OR" => "1",
86 "OVERRIDES" => "1",
87 "PROCEDURE" => "1",
88 "REPEAT" => "1",
89 "RETURN" => "1",
90 "REVEAL" => "1",
91 "RAISE" => "1",
92 "RAISES" => "1",
93 "READONLY" => "1",
94 "RECORD" => "1",
95 "REF" => "1",
96 "ROOT" => "1",
97 "SET" => "1",
98 "THEN" => "1",
99 "TO" => "1",
100 "TRY" => "1",
101 "TYPE" => "1",
102 "TYPECASE" => "1",
103 "UNTIL" => "1",
104 "UNTRACED" => "1",
105 "UNSAFE" => "1",
106 "VALUE" => "1",
107 "VAR" => "1",
108 "WHILE" => "1",
109 "WITH" => "1",
110 "ABS" => "2",
111 "ADDRESS" => "2",
112 "ADR" => "2",
113 "ADRSIZE" => "2",
114 "BITSIZE" => "2",
115 "BOOLEAN" => "2",
116 "BYTESIZE" => "2",
117 "CARDINAL" => "2",
118 "CEILING" => "2",
119 "CHAR" => "2",
120 "DEC" => "2",
121 "DISPOSE" => "2",
122 "EXTENDED" => "2",
123 "FALSE" => "2",
124 "FIRST" => "2",
125 "FLOAT" => "2",
126 "FLOOR" => "2",
127 "INC" => "2",
128 "INTEGER" => "2",
129 "ISTYPE" => "2",
130 "LAST" => "2",
131 "LONGREAL" => "2",
132 "LOOPHOLE" => "2",
133 "MAX" => "2",
134 "MIN" => "2",
135 "MUTEX" => "2",
136 "NARROW" => "2",
137 "NEW" => "2",
138 "NIL" => "2",
139 "NULL" => "2",
140 "NUMBER" => "2",
141 "ORD" => "2",
142 "REAL" => "2",
143 "REFANY" => "2",
144 "ROUND" => "2",
145 "SUBARRAY" => "2",
146 "TEXT" => "2",
147 "TRUE" => "2",
148 "TRUNC" => "2",
149 "TYPECODE" => "2",
150 "VAL" => "2");
151
152 // Special extensions
153
154 // Each category can specify a PHP function that returns an altered
155 // version of the keyword.
156
157
158
159 $this->linkscripts = array(
160 "1" => "donothing",
161 "2" => "donothing");
162 }
163
164
165 public function donothing($keywordin)
166 {
167 return $keywordin;
168 }
169 }
$BEAUT_PATH
Definition: HFile_modula.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)