00001 <?php
00002
00003 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00004 if (!isset ($BEAUT_PATH)) return;
00005 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00006 class HFile_turbopascal extends HFile{
00007 function HFile_turbopascal(){
00008 $this->HFile();
00009
00010
00011
00012
00013
00014
00015
00016 $this->nocase = "1";
00017 $this->notrim = "0";
00018 $this->perl = "0";
00019
00020
00021
00022 $this->colours = array("blue", "purple", "gray", "brown", "blue");
00023 $this->quotecolour = "blue";
00024 $this->blockcommentcolour = "green";
00025 $this->linecommentcolour = "green";
00026
00027
00028
00029 $this->indent = array("begin", "type");
00030 $this->unindent = array("end");
00031
00032
00033
00034 $this->stringchars = array("\"", "'");
00035 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "|", "\\", "/", "{", "}", "[", "]", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00036 $this->escchar = "";
00037
00038
00039
00040 $this->linecommenton = array("//");
00041 $this->blockcommenton = array("{");
00042 $this->blockcommentoff = array("}");
00043
00044
00045
00046 $this->keywords = array(
00047 "begin" => "1",
00048 "const" => "1",
00049 "else" => "1",
00050 "end" => "1",
00051 "function" => "1",
00052 "goto" => "1",
00053 "if" => "1",
00054 "label" => "1",
00055 "procedure" => "1",
00056 "program" => "1",
00057 "readln" => "1",
00058 "repeat" => "1",
00059 "uses" => "1",
00060 "var" => "1",
00061 "write" => "1",
00062 "writeln" => "1",
00063 "and" => "2",
00064 "array" => "2",
00065 "asm" => "2",
00066 "case" => "2",
00067 "destructor" => "2",
00068 "div" => "2",
00069 "do" => "2",
00070 "downto" => "2",
00071 "exports" => "2",
00072 "file" => "2",
00073 "for" => "2",
00074 "implementation" => "2",
00075 "in" => "2",
00076 ":=" => "3",
00077 "inhertited" => "3",
00078 "inline" => "3",
00079 "interface" => "3",
00080 "library" => "3",
00081 "mod" => "3",
00082 "nil" => "3",
00083 "not" => "3",
00084 "object" => "3",
00085 "of" => "3",
00086 "or" => "3",
00087 ";" => "4",
00088 "+" => "4",
00089 "-" => "4",
00090 "=" => "4",
00091 "//" => "4",
00092 "/" => "4",
00093 "%" => "4",
00094 "&" => "4",
00095 ">" => "4",
00096 "<" => "4",
00097 "^" => "4",
00098 "!" => "4",
00099 "|" => "4",
00100 "packed" => "5",
00101 "private" => "5",
00102 "public" => "5",
00103 "record" => "5",
00104 "set" => "5",
00105 "shl" => "5",
00106 "shr" => "5",
00107 "string" => "5",
00108 "then" => "5",
00109 "to" => "5",
00110 "type" => "5",
00111 "unit" => "5",
00112 "until" => "5",
00113 "with" => "5",
00114 "xor" => "5");
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126 $this->linkscripts = array(
00127 "1" => "donothing",
00128 "2" => "donothing",
00129 "3" => "donothing",
00130 "4" => "donothing",
00131 "5" => "donothing");
00132 }
00133
00134
00135
00136 function donothing($keywordin)
00137 {
00138 return $keywordin;
00139 }
00140
00141 }
00142 ?>