ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_vhdl.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_vhdl extends HFile{
6 function HFile_vhdl(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// VHDL
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", "brown", "blue", "purple");
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 "abs" => "1",
46 "access" => "1",
47 "after" => "1",
48 "alias" => "1",
49 "all" => "1",
50 "and" => "1",
51 "architecture" => "1",
52 "array" => "1",
53 "assert" => "1",
54 "attribute" => "1",
55 "begin" => "1",
56 "block" => "1",
57 "body" => "1",
58 "buffer" => "1",
59 "bus" => "1",
60 "case" => "1",
61 "component" => "1",
62 "configuration" => "1",
63 "constant" => "1",
64 "disconnect" => "1",
65 "downto" => "1",
66 "else" => "1",
67 "elsif" => "1",
68 "end" => "1",
69 "entity" => "1",
70 "exit" => "1",
71 "file" => "1",
72 "for" => "1",
73 "function" => "1",
74 "generate" => "1",
75 "generic" => "1",
76 "group" => "1",
77 "guarded" => "1",
78 "if" => "1",
79 "impure" => "1",
80 "in" => "1",
81 "inertial" => "1",
82 "inout" => "1",
83 "is" => "1",
84 "label" => "1",
85 "library" => "1",
86 "linkage" => "1",
87 "literal" => "1",
88 "loop" => "1",
89 "map" => "1",
90 "mod" => "1",
91 "nand" => "1",
92 "new" => "1",
93 "next" => "1",
94 "nor" => "1",
95 "not" => "1",
96 "null" => "1",
97 "of" => "1",
98 "on" => "1",
99 "open" => "1",
100 "or" => "1",
101 "others" => "1",
102 "out" => "1",
103 "package" => "1",
104 "port" => "1",
105 "postponed" => "1",
106 "procedure" => "1",
107 "process" => "1",
108 "pure" => "1",
109 "range" => "1",
110 "record" => "1",
111 "register" => "1",
112 "reject" => "1",
113 "rem" => "1",
114 "report" => "1",
115 "return" => "1",
116 "rol" => "1",
117 "ror" => "1",
118 "select" => "1",
119 "severity" => "1",
120 "signal" => "1",
121 "shared" => "1",
122 "sla" => "1",
123 "sll" => "1",
124 "sra" => "1",
125 "srl" => "1",
126 "subtype" => "1",
127 "then" => "1",
128 "to" => "1",
129 "transport" => "1",
130 "type" => "1",
131 "unaffected" => "1",
132 "units" => "1",
133 "until" => "1",
134 "use" => "1",
135 "variable" => "1",
136 "wait" => "1",
137 "when" => "1",
138 "while" => "1",
139 "with" => "1",
140 "xnor" => "1",
141 "xor" => "1",
142 "bit" => "2",
143 "bit_vector" => "2",
144 "boolean" => "2",
145 "integer" => "2",
146 "real" => "2",
147 "std_logic" => "2",
148 "std_logic_vector" => "2",
149 "=" => "3",
150 "<" => "3",
151 ">" => "3",
152 ":" => "3",
153 "\'event" => "4",
154 "\'right" => "4",
155 "ActivPullUp" => "5",
156 "AndN" => "5",
157 "And2FF" => "5",
158 "AndNFF" => "5",
159 "Cnt1Bit" => "5",
160 "CntNBit" => "5",
161 "CntNBitDown" => "5",
162 "CntNBitMod" => "5",
163 "CntNBitOe" => "5",
164 "CntNBitSLd" => "5",
165 "CntNBitSR" => "5",
166 "CntNBitUpDown" => "5",
167 "CompNBit" => "5",
168 "CompNBitFF" => "5",
169 "DiffH2LWithFF" => "5",
170 "DiffL2HWithFF" => "5",
171 "Dff1" => "5",
172 "Dff1NegClk" => "5",
173 "Dffn" => "5",
174 "Encode4to5" => "5",
175 "Mux1of2" => "5",
176 "Mux1of8" => "5",
177 "Mux1Vof2V" => "5",
178 "Mux1Vof3V" => "5",
179 "Mux1Vof4V" => "5",
180 "PreScale1Bit" => "5",
181 "PreScale1BitAR" => "5",
182 "PreScale1BitARNegClk" => "5",
183 "PreScaleNBit" => "5",
184 "PreScaleNBitAR" => "5",
185 "Reg1Bit" => "5",
186 "Reg1BitAR" => "5",
187 "Reg1BitR" => "5",
188 "RegNBit" => "5",
189 "RegNBitAR" => "5",
190 "RSFFAsync" => "5",
191 "RSFFsync" => "5",
192 "RsSynchronizer" => "5",
193 "ShiftP2SRegNBitAR" => "5",
194 "ShiftRegNBitAR" => "5",
195 "ShiftS2SRegNBit" => "5",
196 "SRFFsync" => "5",
197 "SyncAndDiffL2HWithFF" => "5",
198 "SyncAndDiffH2LWithFF" => "5",
199 "SyncAndDiffL2HWithFFAndFg" => "5",
200 "SyncAndDiffH2LWithFFAndFg" => "5",
201 "SyncAndDiffLL2HHWithFF" => "5",
202 "SyncAndDiffHH2LLWithFF" => "5",
203 "SyncAndDiffLL2HHWithFFAndFg" => "5",
204 "SyncAndDiffHH2LLWithFFAndFg" => "5",
205 "ActivPullUp_arch" => "6",
206 "AndN_arch" => "6",
207 "And2FF_arch" => "6",
208 "AndNFF_arch" => "6",
209 "Cnt1Bit_arch" => "6",
210 "CntNBit_arch" => "6",
211 "CntNBitDown_arch" => "6",
212 "CntNBitMod_arch" => "6",
213 "CntNBitOe_arch" => "6",
214 "CntNBitSLd_arch" => "6",
215 "CntNBitSR_arch" => "6",
216 "CntNBitUpDown_arch" => "6",
217 "CompNBit_arch" => "6",
218 "CompNBitFF_arch" => "6",
219 "DiffH2LWithFF_arch" => "6",
220 "DiffL2HWithFF_arch" => "6",
221 "Dff1_arch" => "6",
222 "Dff1NegClk_arch" => "6",
223 "Dffn_arch" => "6",
224 "Encode4to5_arch" => "6",
225 "Mux1of2_arch" => "6",
226 "Mux1of8_arch" => "6",
227 "Mux1Vof2V_arch" => "6",
228 "Mux1Vof3V_arch" => "6",
229 "Mux1Vof4V_arch" => "6",
230 "PreScale1Bit_arch" => "6",
231 "PreScale1BitAR_arch" => "6",
232 "PreScale1BitARNegClk_arch" => "6",
233 "PreScaleNBit_arch" => "6",
234 "PreScaleNBitAR_arch" => "6",
235 "Reg1Bit_arch" => "6",
236 "Reg1BitAR_arch" => "6",
237 "Reg1BitR_arch" => "6",
238 "RegNBit_arch" => "6",
239 "RegNBitAR_arch" => "6",
240 "RSFFAsync_arch" => "6",
241 "RSFFsync_arch" => "6",
242 "RsSynchronizer_arch" => "6",
243 "ShiftP2SRegNBitAR_arch" => "6",
244 "ShiftRegNBitAR_arch" => "6",
245 "ShiftS2SRegNBit_arch" => "6",
246 "SRFFsync_arch" => "6",
247 "SyncAndDiffL2HWithFF_arch" => "6",
248 "SyncAndDiffH2LWithFF_arch" => "6",
249 "SyncAndDiffL2HWithFFAndFg_arch" => "6",
250 "SyncAndDiffH2LWithFFAndFg_arch" => "6",
251 "SyncAndDiffLL2HHWithFF_arch" => "6",
252 "SyncAndDiffHH2LLWithFF_arch" => "6",
253 "SyncAndDiffLL2HHWithFFAndFg_arch" => "6",
254 "SyncAndDiffHH2LLWithFFAndFg_arch" => "6");
255
256// Special extensions
257
258// Each category can specify a PHP function that returns an altered
259// version of the keyword.
260
261
262
263$this->linkscripts = array(
264 "1" => "donothing",
265 "2" => "donothing",
266 "3" => "donothing",
267 "4" => "donothing",
268 "5" => "donothing",
269 "6" => "donothing");
270}
271
272
273function donothing($keywordin)
274{
275 return $keywordin;
276}
277
278}?>
$BEAUT_PATH
Definition: HFile_vhdl.php:2
donothing($keywordin)
Definition: HFile_vhdl.php:273