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_spin extends HFile{
00006 function HFile_spin(){
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", "brown", "blue", "purple", "gray", "brown");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
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 "bit" => "1",
00046 "bool" => "1",
00047 "byte" => "1",
00048 "chan" => "1",
00049 "int" => "1",
00050 "local" => "1",
00051 "mtype" => "1",
00052 "short" => "1",
00053 "typedef" => "1",
00054 "unsigned" => "1",
00055 "assert" => "2",
00056 "init" => "2",
00057 "priority" => "2",
00058 "proctype" => "2",
00059 "provided" => "2",
00060 "active" => "3",
00061 "break" => "3",
00062 "do" => "3",
00063 "else" => "3",
00064 "empty" => "3",
00065 "enabled" => "3",
00066 "eval" => "3",
00067 "fi" => "3",
00068 "full" => "3",
00069 "goto" => "3",
00070 "if" => "3",
00071 "inline" => "3",
00072 "len" => "3",
00073 "nempty" => "3",
00074 "nfull" => "3",
00075 "od" => "3",
00076 "of" => "3",
00077 "printf" => "3",
00078 "run" => "3",
00079 "skip" => "3",
00080 "timeout" => "3",
00081 "xr" => "3",
00082 "xs" => "3",
00083 "?" => "4",
00084 "??" => "4",
00085 "!" => "4",
00086 "!!" => "4",
00087 "@" => "4",
00088 "!=" => "5",
00089 "+" => "5",
00090 "-" => "5",
00091 "->" => "5",
00092 "::" => "5",
00093 "<" => "5",
00094 "<=" => "5",
00095 "==" => "5",
00096 ">" => "5",
00097 ">=" => "5",
00098 "unless" => "5",
00099 "_" => "6",
00100 "_last" => "6",
00101 "_pid" => "6",
00102 "cond_expr" => "6",
00103 "false" => "6",
00104 "np_" => "6",
00105 "pc_value" => "6",
00106 "STDIN" => "6",
00107 "true" => "6",
00108 "accept" => "7",
00109 "end" => "7",
00110 "progress" => "7",
00111 "atomic" => "8",
00112 "d_step" => "8",
00113 "hidden" => "8",
00114 "ltl" => "8",
00115 "never" => "8",
00116 "notrace" => "8",
00117 "trace" => "8",
00118 "show" => "8");
00119
00120
00121
00122
00123
00124
00125
00126
00127 $this->linkscripts = array(
00128 "1" => "donothing",
00129 "2" => "donothing",
00130 "3" => "donothing",
00131 "4" => "donothing",
00132 "5" => "donothing",
00133 "6" => "donothing",
00134 "7" => "donothing",
00135 "8" => "donothing");
00136 }
00137
00138
00139 function donothing($keywordin)
00140 {
00141 return $keywordin;
00142 }
00143
00144 }?>