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_bkshell extends HFile{
00006 function HFile_bkshell(){
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", "brown", "purple", "gray");
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 "bg" => "1",
00046 "break" => "1",
00047 "cd" => "1",
00048 "continue" => "1",
00049 "echo" => "1",
00050 "eval" => "1",
00051 "exec" => "1",
00052 "exit" => "1",
00053 "export" => "1",
00054 "fg" => "1",
00055 "function" => "1",
00056 "getopts" => "1",
00057 "hash" => "1",
00058 "jobs" => "1",
00059 "kill" => "1",
00060 "newgrp" => "1",
00061 "pwd" => "1",
00062 "read" => "1",
00063 "readonly" => "1",
00064 "return" => "1",
00065 "select" => "1",
00066 "set" => "1",
00067 "shift" => "1",
00068 "stop" => "1",
00069 "stty" => "1",
00070 "suspend" => "1",
00071 "test" => "1",
00072 "times" => "1",
00073 "trap" => "1",
00074 "type" => "1",
00075 "ulimit" => "1",
00076 "umask" => "1",
00077 "unset" => "1",
00078 "wait" => "1",
00079 "CDPATH" => "2",
00080 "EDITOR" => "2",
00081 "HOME" => "2",
00082 "IFS" => "2",
00083 "LANG" => "2",
00084 "MAIL" => "2",
00085 "MAILCHECK" => "2",
00086 "MAILPATH" => "2",
00087 "OLDPWD" => "2",
00088 "PATH" => "2",
00089 "PPID" => "2",
00090 "PS1" => "2",
00091 "PS2" => "2",
00092 "REPLY" => "2",
00093 "SHACCT" => "2",
00094 "SHELL" => "2",
00095 "TERM" => "2",
00096 "case" => "3",
00097 "do" => "3",
00098 "done" => "3",
00099 "elif" => "3",
00100 "else" => "3",
00101 "esac" => "3",
00102 "fi" => "3",
00103 "for" => "3",
00104 "if" => "3",
00105 "then" => "3",
00106 "while" => "3",
00107 "+" => "4",
00108 "-" => "4",
00109 "=" => "4",
00110 "//" => "4",
00111 "/" => "4",
00112 "%" => "4",
00113 "&" => "4",
00114 "^" => "4",
00115 "!" => "4",
00116 "|" => "4",
00117 ">>" => "8",
00118 ">&" => "8",
00119 "<<" => "8",
00120 "<&" => "8",
00121 "<" => "8",
00122 ">" => "8",
00123 "$#" => "6",
00124 "$-" => "6",
00125 "$?" => "6",
00126 "$!" => "6",
00127 "$*" => "6",
00128 "$@" => "6",
00129 "$$" => "6",
00130 "$0" => "6",
00131 "$1" => "6",
00132 "$2" => "6",
00133 "$3" => "6",
00134 "$4" => "6",
00135 "$5" => "6",
00136 "$6" => "6",
00137 "$7" => "6",
00138 "$8" => "6",
00139 "$9" => "6",
00140 "-a" => "7",
00141 "-o" => "7",
00142 "-eq" => "7",
00143 "-ne" => "7",
00144 "-le" => "7",
00145 "-lt" => "7",
00146 "-ge" => "7",
00147 "-gt" => "7",
00148 "-b" => "7",
00149 "-c" => "7",
00150 "-d" => "7",
00151 "-f" => "7",
00152 "-g" => "7",
00153 "-k" => "7",
00154 "-l" => "7",
00155 "-p" => "7",
00156 "-r" => "7",
00157 "-s" => "7",
00158 "-S" => "7",
00159 "-t" => "7",
00160 "-u" => "7",
00161 "-w" => "7",
00162 "-x" => "7",
00163 "-n" => "7",
00164 "-z" => "7");
00165
00166
00167
00168
00169
00170
00171
00172
00173 $this->linkscripts = array(
00174 "1" => "donothing",
00175 "2" => "donothing",
00176 "3" => "donothing",
00177 "4" => "donothing",
00178 "8" => "donothing",
00179 "6" => "donothing",
00180 "7" => "donothing");
00181 }
00182
00183
00184 function donothing($keywordin)
00185 {
00186 return $keywordin;
00187 }
00188
00189 }?>