00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_verify extends HFile{
00006 function HFile_verify(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array("begin");
00028 $this->unindent = array("end");
00029
00030
00031
00032 $this->stringchars = array("\"", "'");
00033 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("//");
00039 $this->blockcommenton = array("/*");
00040 $this->blockcommentoff = array("*/");
00041
00042
00043
00044 $this->keywords = array(
00045 "begin" => "1",
00046 "case" => "1",
00047 "else" => "1",
00048 "end" => "1",
00049 "endcase" => "1",
00050 "for" => "1",
00051 "if" => "1",
00052 "join" => "1",
00053 "memory" => "1",
00054 "negedge" => "1",
00055 "posedge" => "1",
00056 "pullup" => "1",
00057 "pulldown" => "1",
00058 "while" => "1",
00059 "`define" => "2",
00060 "`include" => "2",
00061 "`timescale" => "2",
00062 "`ifdef" => "2",
00063 "`else" => "2",
00064 "`endif" => "2",
00065 "\'b" => "2",
00066 "\'d" => "2",
00067 "\'h" => "2",
00068 "$display" => "2",
00069 "$monitor" => "2",
00070 "$fopen" => "2",
00071 "$fclose" => "2",
00072 "$fdisplay" => "2",
00073 "$dumfile" => "2",
00074 "$dumpvars" => "2",
00075 "$finish" => "2",
00076 "$stop" => "2",
00077 "$setup" => "2",
00078 "$hold" => "2",
00079 "$readmemh" => "2",
00080 "deassign" => "2",
00081 "endfunction" => "2",
00082 "endmodule" => "2",
00083 "endspecify" => "2",
00084 "endtask" => "2",
00085 "fork" => "2",
00086 "function" => "2",
00087 "initial" => "2",
00088 "module" => "2",
00089 "reg" => "2",
00090 "repeat" => "2",
00091 "specify" => "2",
00092 "task" => "2",
00093 "wait" => "2",
00094 "wire" => "2",
00095 "+" => "3",
00096 "-" => "3",
00097 "*" => "3",
00098 "//" => "3",
00099 "/" => "3",
00100 ":" => "3",
00101 "=" => "3",
00102 "~" => "3",
00103 "%" => "3",
00104 "&" => "3",
00105 ">" => "3",
00106 "<" => "3",
00107 "^" => "3",
00108 "!" => "3",
00109 "|" => "3",
00110 "always" => "3",
00111 "assign" => "3",
00112 "input" => "3",
00113 "inout" => "3",
00114 "or" => "3",
00115 "output" => "3");
00116
00117
00118
00119
00120
00121
00122
00123
00124 $this->linkscripts = array(
00125 "1" => "donothing",
00126 "2" => "donothing",
00127 "3" => "donothing");
00128 }
00129
00130
00131 function donothing($keywordin)
00132 {
00133 return $keywordin;
00134 }
00135
00136 }?>