ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_mincdsl.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_mincdsl extends HFile
8  {
9  public function HFile_mincdsl()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14 //
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");
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  "/L10" => "",
50  "\"MINC" => "",
51  "DSL\"" => "",
52  "Line" => "",
53  "Comment" => "",
54  "=" => "",
55  "\"" => "",
56  "Block" => "",
57  "On" => "",
58  "'" => "",
59  "Off" => "",
60  ";" => "",
61  "File" => "",
62  "Extensions" => "",
63  "SRC" => "",
64  "PI" => "",
65  "STM" => "",
66  "OPI" => "",
67  "NPI" => "",
68  "SIM" => "",
69  "AND" => "1",
70  "BIN" => "1",
71  "BIPUT" => "1",
72  "BLOWN" => "1",
73  "CASE" => "1",
74  "CLOCK_ENABLED_BY" => "1",
75  "CLOCKED_BY" => "1",
76  "CLOCKF" => "1",
77  "COMP_OFF" => "1",
78  "COMP_ON" => "1",
79  "D_FLOP" => "1",
80  "D_LATCH" => "1",
81  "DEC" => "1",
82  "DEFAULT" => "1",
83  "DEFAULT_TO" => "1",
84  "DEMORGAN_SYNTH" => "1",
85  "DEVICE" => "1",
86  "DISABLED_ONLY_FOR_TEST" => "1",
87  "DO" => "1",
88  "ELSE" => "1",
89  "ELSIF" => "1",
90  "ENABLED_BY" => "1",
91  "END" => "1",
92  "FF_SYNTH" => "1",
93  "FIT_WITH" => "1",
94  "FIXED" => "1",
95  "FOOTPRINT" => "1",
96  "FOR" => "1",
97  "FUNKTION" => "1",
98  "GOTO" => "1",
99  "GRAY_CODE" => "1",
100  "GROUP" => "1",
101  "SECTIONS" => "1",
102  "HEX" => "1",
103  "HIGH_VALUE" => "1",
104  "IF" => "1",
105  "INCLUDE" => "1",
106  "INITIAL" => "1",
107  "INITIAL_TO" => "1",
108  "INPUT" => "1",
109  "INTACT" => "1",
110  "JK_FLOP" => "1",
111  "LAST_VALUE" => "1",
112  "LATCHED_BY" => "1",
113  "LOW_POWER" => "1",
114  "LOW_TRUE" => "1",
115  "LOW_VALUE" => "1",
116  "MACRO" => "1",
117  "MAX_PTERMS" => "1",
118  "MAX_SYMBOLS" => "1",
119  "MAX_FOR_PTERMS" => "1",
120  "MESSAGE" => "1",
121  "MOD" => "1",
122  "NAME" => "1",
123  "NO_COLLAPSE" => "1",
124  "NO_CONNECT" => "1",
125  "NO_REDUCE" => "1",
126  "NODE" => "1",
127  "NOT" => "1",
128  "OCT" => "1",
129  "ONE_HOT" => "1",
130  "OR" => "1",
131  "OUTPUT" => "1",
132  "PART_NUMBER" => "1",
133  "PHYSICAL" => "1",
134  "POLARITY_CONTROL" => "1",
135  "PRESET_BY" => "1",
136  "POWER=" => "1",
137  "RETURN" => "1",
138  "RESET_BY" => "1",
139  "SECTION" => "1",
140  "SET" => "1",
141  "SIMULATION" => "1",
142  "SR_FLOP" => "1",
143  "STATE" => "1",
144  "STATE_BITS" => "1",
145  "STATE_MACHINE" => "1",
146  "STATE_VALUE" => "1",
147  "STEP" => "1",
148  "SYSTEM_TEST" => "1",
149  "T_FLOP" => "1",
150  "TARGET" => "1",
151  "TEMPLATE" => "1",
152  "TEST_VECTORS" => "1",
153  "THEN" => "1",
154  "TO" => "1",
155  "TRACE" => "1",
156  "TRUTH" => "1",
157  "TRUTH_TABLE" => "1",
158  "USE" => "1",
159  "VAR" => "1",
160  "VIRTUAL" => "1",
161  "WHEN" => "1",
162  "WHILE" => "1",
163  "WIRED_BUS" => "1",
164  "XOR_POLARITY_CONTROL" => "1",
165  "XOR_TO_SOP_SYNTH" => "1");
166 
167  // Special extensions
168 
169  // Each category can specify a PHP function that returns an altered
170  // version of the keyword.
171 
172 
173 
174  $this->linkscripts = array(
175  "" => "donothing",
176  "1" => "donothing");
177  }
178 
179 
180  public function donothing($keywordin)
181  {
182  return $keywordin;
183  }
184  }
Create styles array
The data for the language used.
Definition: HFile.php:21
$BEAUT_PATH
donothing($keywordin)