• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

syntax_highlight/php/HFile/HFile_eiffel.php

Go to the documentation of this file.
00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 
00006 class HFile_eiffel extends HFile
00007 {
00008 
00009 function HFile_eiffel()
00010 {
00011 
00012 $this->HFile(); 
00013 /*************************************/
00014 // Beautifier Highlighting Configuration File 
00015 // Eiffel
00016 /*************************************/
00017 // Flags
00018 
00019 $this->nocase                   = "1";
00020 $this->notrim                   = "0";
00021 $this->perl                     = "0";
00022 
00023 // Colours
00024 
00025 $this->colours          = array("blue", "purple", "gray", "brown", "blue", "purple");
00026 $this->quotecolour              = "blue";
00027 $this->blockcommentcolour       = "green";
00028 $this->linecommentcolour        = "green";
00029 
00030 // Indent Strings
00031 
00032 $this->indent                   = array("do");
00033 $this->unindent                 = array("end");
00034 
00035 // String characters and delimiters
00036 
00037 $this->stringchars              = array();
00038 $this->delimiters               = array("~", "%", "^", "&", "(", ")", "|", "{", "}", "[", "]", ";", "\"", "'", "<", ">", "      ", ",", " ", ".", "?");
00039 $this->escchar                  = "";
00040 
00041 // Comment settings
00042 
00043 $this->linecommenton            = array("--");
00044 $this->blockcommenton           = array("");
00045 $this->blockcommentoff          = array("");
00046 
00047 // Keywords (keyword mapping to colour number)
00048 
00049 $this->keywords                 = array(
00050                         "alias" => "1", 
00051                         "all" => "1", 
00052                         "and" => "1", 
00053                         "as" => "1", 
00054                         "check" => "1", 
00055                         "class" => "1", 
00056                         "creation" => "1", 
00057                         "debug" => "1", 
00058                         "deferred" => "1", 
00059                         "do" => "1", 
00060                         "else" => "1", 
00061                         "elseif" => "1", 
00062                         "end" => "1", 
00063                         "expanded" => "1", 
00064                         "export" => "1", 
00065                         "external" => "1", 
00066                         "feature" => "1", 
00067                         "from" => "1", 
00068                         "frozen" => "1", 
00069                         "if" => "1", 
00070                         "implies" => "1", 
00071                         "indexing" => "1", 
00072                         "infix" => "1", 
00073                         "inherit" => "1", 
00074                         "inspect" => "1", 
00075                         "is" => "1", 
00076                         "like" => "1", 
00077                         "local" => "1", 
00078                         "loop" => "1", 
00079                         "not" => "1", 
00080                         "obsolete" => "1", 
00081                         "old" => "1", 
00082                         "once" => "1", 
00083                         "or" => "1", 
00084                         "prefix" => "1", 
00085                         "redefine" => "1", 
00086                         "rename" => "1", 
00087                         "rescue" => "1", 
00088                         "retry" => "1", 
00089                         "select" => "1", 
00090                         "separate" => "1", 
00091                         "strip" => "1", 
00092                         "then" => "1", 
00093                         "true" => "1", 
00094                         "undefine" => "1", 
00095                         "unique" => "1", 
00096                         "until" => "1", 
00097                         "when" => "1", 
00098                         "xor" => "1", 
00099                         "," => "1", 
00100                         "." => "1", 
00101                         ";" => "1", 
00102                         ":" => "1", 
00103                         "Result" => "2", 
00104                         "Current" => "2", 
00105                         "False" => "2", 
00106                         "True" => "2", 
00107                         "Void" => "2", 
00108                         "@" => "2", 
00109                         "!" => "2", 
00110                         "!!" => "2", 
00111                         "=" => "2", 
00112                         ":=" => "2", 
00113                         "\\" => "2", 
00114                         "\\\\" => "2", 
00115                         "-" => "2", 
00116                         "(" => "2", 
00117                         ")" => "2", 
00118                         "[" => "2", 
00119                         "]" => "2", 
00120                         "{" => "2", 
00121                         "}" => "2", 
00122                         "<" => "2", 
00123                         "<=" => "2", 
00124                         ">" => "2", 
00125                         ">=" => "2", 
00126                         "?" => "2", 
00127                         "'" => "2", 
00128                         "`" => "2", 
00129                         "+" => "2", 
00130                         "$" => "2", 
00131                         "%" => "2", 
00132                         "//" => "2", 
00133                         "/" => "2", 
00134                         "/=" => "2", 
00135                         "ANY" => "3", 
00136                         "ARGUMENTS" => "3", 
00137                         "ARRAY" => "3", 
00138                         "BIT" => "3", 
00139                         "BOOLEAN" => "3", 
00140                         "BOOLEAN_REF" => "3", 
00141                         "CHARACTER" => "3", 
00142                         "CHARACTER_REF" => "3", 
00143                         "COMPARABLE" => "3", 
00144                         "DOUBLE" => "3", 
00145                         "DOUBLE_REF" => "3", 
00146                         "EXCEPTIONS" => "3", 
00147                         "INTEGER" => "3", 
00148                         "INTEGER_REF" => "3", 
00149                         "MEMORY" => "3", 
00150                         "NONE" => "3", 
00151                         "NUMERIC" => "3", 
00152                         "POINTER" => "3", 
00153                         "PLATFORM" => "3", 
00154                         "POINTER_REF" => "3", 
00155                         "REAL" => "3", 
00156                         "REAL_REF" => "3", 
00157                         "STRING" => "3", 
00158                         "STD_FILES" => "3", 
00159                         "STORABLE" => "3", 
00160                         "ensure" => "4", 
00161                         "interface" => "4", 
00162                         "invariant" => "4", 
00163                         "require" => "4", 
00164                         "variant" => "4", 
00165                         "io" => "5", 
00166                         "i" => "5", 
00167                         "j" => "5", 
00168                         "k" => "5", 
00169                         "y" => "5", 
00170                         "x" => "5", 
00171                         "abs" => "6", 
00172                         "add_first" => "6", 
00173                         "add_last" => "6", 
00174                         "append" => "6", 
00175                         "append_in" => "6", 
00176                         "binary_to_integer" => "6", 
00177                         "blank" => "6", 
00178                         "clear" => "6", 
00179                         "compare" => "6", 
00180                         "copy" => "6", 
00181                         "digit" => "6", 
00182                         "even" => "6", 
00183                         "fill_blank" => "6", 
00184                         "fill_with" => "6", 
00185                         "first" => "6", 
00186                         "gcd" => "6", 
00187                         "has" => "6", 
00188                         "has_prefix" => "6", 
00189                         "has_string" => "6", 
00190                         "has_suffix" => "6", 
00191                         "head" => "6", 
00192                         "index_of" => "6", 
00193                         "index_of_string" => "6", 
00194                         "insert" => "6", 
00195                         "is_bit" => "6", 
00196                         "is_equal" => "6", 
00197                         "is_integer" => "6", 
00198                         "item" => "6", 
00199                         "last" => "6", 
00200                         "left_adjust" => "6", 
00201                         "log" => "6", 
00202                         "lower" => "6", 
00203                         "occurrences" => "6", 
00204                         "occurrences_of" => "6", 
00205                         "odd" => "6", 
00206                         "precede" => "6", 
00207                         "prepend" => "6", 
00208                         "put" => "6", 
00209                         "put_boolean" => "6", 
00210                         "put_integer" => "6", 
00211                         "put_new_line" => "6", 
00212                         "put_string" => "6", 
00213                         "remove" => "6", 
00214                         "remove_all_occurrences" => "6", 
00215                         "remove_between" => "6", 
00216                         "remove_first" => "6", 
00217                         "remove_last" => "6", 
00218                         "remove_prefix" => "6", 
00219                         "remove_suffix" => "6", 
00220                         "reverse" => "6", 
00221                         "right_adjust" => "6", 
00222                         "same_as" => "6", 
00223                         "set_last" => "6", 
00224                         "shrink" => "6", 
00225                         "split" => "6", 
00226                         "split_in" => "6", 
00227                         "sqrt" => "6", 
00228                         "substring" => "6", 
00229                         "substring_index" => "6", 
00230                         "swap" => "6", 
00231                         "tail" => "6", 
00232                         "to_bit" => "6", 
00233                         "to_boolean" => "6", 
00234                         "to_double" => "6", 
00235                         "to_integer" => "6", 
00236                         "to_lower" => "6", 
00237                         "to_octal" => "6", 
00238                         "to_real" => "6", 
00239                         "to_string" => "6", 
00240                         "to_upper" => "6", 
00241                         "upper" => "6");
00242 
00243 // Special extensions
00244 
00245 // Each category can specify a PHP function that returns an altered
00246 // version of the keyword.
00247 
00248 
00249 
00250 $this->linkscripts      = array(
00251                         "1" => "donothing", 
00252                         "2" => "donothing", 
00253                         "3" => "donothing", 
00254                         "4" => "donothing", 
00255                         "5" => "donothing", 
00256                         "6" => "donothing");
00257 
00258 }
00259 
00260 
00261 
00262 function donothing($keywordin)
00263 {
00264         return $keywordin;
00265 }
00266 
00267 }
00268 ?>

Generated on Fri Dec 13 2013 13:52:16 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1