ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_verify.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_verify extends HFile{
6  function HFile_verify(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Verilog
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("begin");
28 $this->unindent = array("end");
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  "begin" => "1",
46  "case" => "1",
47  "else" => "1",
48  "end" => "1",
49  "endcase" => "1",
50  "for" => "1",
51  "if" => "1",
52  "join" => "1",
53  "memory" => "1",
54  "negedge" => "1",
55  "posedge" => "1",
56  "pullup" => "1",
57  "pulldown" => "1",
58  "while" => "1",
59  "`define" => "2",
60  "`include" => "2",
61  "`timescale" => "2",
62  "`ifdef" => "2",
63  "`else" => "2",
64  "`endif" => "2",
65  "\'b" => "2",
66  "\'d" => "2",
67  "\'h" => "2",
68  "$display" => "2",
69  "$monitor" => "2",
70  "$fopen" => "2",
71  "$fclose" => "2",
72  "$fdisplay" => "2",
73  "$dumfile" => "2",
74  "$dumpvars" => "2",
75  "$finish" => "2",
76  "$stop" => "2",
77  "$setup" => "2",
78  "$hold" => "2",
79  "$readmemh" => "2",
80  "deassign" => "2",
81  "endfunction" => "2",
82  "endmodule" => "2",
83  "endspecify" => "2",
84  "endtask" => "2",
85  "fork" => "2",
86  "function" => "2",
87  "initial" => "2",
88  "module" => "2",
89  "reg" => "2",
90  "repeat" => "2",
91  "specify" => "2",
92  "task" => "2",
93  "wait" => "2",
94  "wire" => "2",
95  "+" => "3",
96  "-" => "3",
97  "*" => "3",
98  "//" => "3",
99  "/" => "3",
100  ":" => "3",
101  "=" => "3",
102  "~" => "3",
103  "%" => "3",
104  "&" => "3",
105  ">" => "3",
106  "<" => "3",
107  "^" => "3",
108  "!" => "3",
109  "|" => "3",
110  "always" => "3",
111  "assign" => "3",
112  "input" => "3",
113  "inout" => "3",
114  "or" => "3",
115  "output" => "3");
116 
117 // Special extensions
118 
119 // Each category can specify a PHP function that returns an altered
120 // version of the keyword.
121 
122 
123 
124 $this->linkscripts = array(
125  "1" => "donothing",
126  "2" => "donothing",
127  "3" => "donothing");
128 }
129 
130 
131 function donothing($keywordin)
132 {
133  return $keywordin;
134 }
135 
136 }?>