ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_ahdl.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_ahdl extends HFile
8  {
9  public function HFile_ahdl()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // AHDL
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");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("BEGIN");
32  $this->unindent = array("END");
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  "assert" => "1",
51  "begin" => "1",
52  "bidir" => "1",
53  "bits" => "1",
54  "buried" => "1",
55  "case" => "1",
56  "ceil" => "1",
57  "clique" => "1",
58  "connected_pins" => "1",
59  "constant" => "1",
60  "defaults" => "1",
61  "define" => "1",
62  "design" => "1",
63  "device" => "1",
64  "div" => "1",
65  "else" => "1",
66  "elsif" => "1",
67  "end" => "1",
68  "for" => "1",
69  "function" => "1",
70  "generate" => "1",
71  "gnd" => "1",
72  "help_id" => "1",
73  "if" => "1",
74  "include" => "1",
75  "input" => "1",
76  "is" => "1",
77  "log2" => "1",
78  "machine" => "1",
79  "mod" => "1",
80  "nand" => "1",
81  "node" => "1",
82  "nor" => "1",
83  "not" => "1",
84  "of" => "1",
85  "options" => "1",
86  "or" => "1",
87  "others" => "1",
88  "output" => "1",
89  "parameters" => "1",
90  "report" => "1",
91  "returns" => "1",
92  "segments" => "1",
93  "severity" => "1",
94  "states" => "1",
95  "subdesign" => "1",
96  "table" => "1",
97  "then" => "1",
98  "title" => "1",
99  "to" => "1",
100  "tri_state_node" => "1",
101  "variable" => "1",
102  "vcc" => "1",
103  "when" => "1",
104  "with" => "1",
105  "xnor" => "1",
106  "xor" => "1",
107  "carry" => "2",
108  "cascade" => "2",
109  "dff" => "2",
110  "dffe" => "2",
111  "exp" => "2",
112  "floor" => "2",
113  "global" => "2",
114  "jkff" => "2",
115  "jkffe" => "2",
116  "latch" => "2",
117  "lcell" => "2",
118  "mcell" => "2",
119  "memory" => "2",
120  "opendrn" => "2",
121  "soft" => "2",
122  "srff" => "2",
123  "srffe" => "2",
124  "tff" => "2",
125  "tffe" => "2",
126  "tri" => "2",
127  "used" => "2",
128  "wire" => "2",
129  "altdpram" => "3",
130  "busmux" => "3",
131  "csdpram" => "3",
132  "csfifo" => "3",
133  "dcfifo" => "3",
134  "divide" => "3",
135  "lpm_abs" => "3",
136  "lpm_add_sub" => "3",
137  "lpm_and" => "3",
138  "lpm_bustri" => "3",
139  "lpm_clshift" => "3",
140  "lpm_compare" => "3",
141  "lpm_constant" => "3",
142  "lpm_counter" => "3",
143  "lpm_decode" => "3",
144  "lpm_dff" => "3",
145  "lpm_divide" => "3",
146  "lpm_ff" => "3",
147  "lpm_fifo" => "3",
148  "lpm_fifo_dc" => "3",
149  "lpm_inv" => "3",
150  "lpm_latch" => "3",
151  "lpm_mult" => "3",
152  "lpm_mux" => "3",
153  "lpm_or" => "3",
154  "lpm_ram_dp" => "3",
155  "lpm_ram_dq" => "3",
156  "lpm_ram_io" => "3",
157  "lpm_rom" => "3",
158  "lpm_shiftreg" => "3",
159  "lpm_tff" => "3",
160  "lpm_xor" => "3",
161  "mux" => "3",
162  "ntsc" => "3",
163  "scfifo" => "3");
164 
165  // Special extensions
166 
167  // Each category can specify a PHP function that returns an altered
168  // version of the keyword.
169 
170 
171 
172  $this->linkscripts = array(
173  "1" => "donothing",
174  "2" => "donothing",
175  "3" => "donothing");
176  }
177 
178 
179  public function donothing($keywordin)
180  {
181  return $keywordin;
182  }
183  }
donothing($keywordin)
Definition: HFile_ahdl.php:179
Create styles array
The data for the language used.
Definition: HFile.php:21
$BEAUT_PATH
Definition: HFile_ahdl.php:2