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

syntax_highlight/php/HFile/HFile_vhdl.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   class HFile_vhdl extends HFile{
00006    function HFile_vhdl(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // VHDL
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "1";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("blue", "purple", "gray", "brown", "blue", "purple");
00021 $this->quotecolour              = "blue";
00022 $this->blockcommentcolour       = "green";
00023 $this->linecommentcolour        = "green";
00024 
00025 // Indent Strings
00026 
00027 $this->indent                   = array();
00028 $this->unindent                 = array();
00029 
00030 // String characters and delimiters
00031 
00032 $this->stringchars              = array();
00033 $this->delimiters               = array("~", "!", "@", "$", "%", "^", "&", "*", "(", ")", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "<", ">", " ", "        ", ",", ".", "?", "/", "        ");
00034 $this->escchar                  = "";
00035 
00036 // Comment settings
00037 
00038 $this->linecommenton            = array("--");
00039 $this->blockcommenton           = array("--");
00040 $this->blockcommentoff          = array("--");
00041 
00042 // Keywords (keyword mapping to colour number)
00043 
00044 $this->keywords                 = array(
00045                         "abs" => "1", 
00046                         "access" => "1", 
00047                         "after" => "1", 
00048                         "alias" => "1", 
00049                         "all" => "1", 
00050                         "and" => "1", 
00051                         "architecture" => "1", 
00052                         "array" => "1", 
00053                         "assert" => "1", 
00054                         "attribute" => "1", 
00055                         "begin" => "1", 
00056                         "block" => "1", 
00057                         "body" => "1", 
00058                         "buffer" => "1", 
00059                         "bus" => "1", 
00060                         "case" => "1", 
00061                         "component" => "1", 
00062                         "configuration" => "1", 
00063                         "constant" => "1", 
00064                         "disconnect" => "1", 
00065                         "downto" => "1", 
00066                         "else" => "1", 
00067                         "elsif" => "1", 
00068                         "end" => "1", 
00069                         "entity" => "1", 
00070                         "exit" => "1", 
00071                         "file" => "1", 
00072                         "for" => "1", 
00073                         "function" => "1", 
00074                         "generate" => "1", 
00075                         "generic" => "1", 
00076                         "group" => "1", 
00077                         "guarded" => "1", 
00078                         "if" => "1", 
00079                         "impure" => "1", 
00080                         "in" => "1", 
00081                         "inertial" => "1", 
00082                         "inout" => "1", 
00083                         "is" => "1", 
00084                         "label" => "1", 
00085                         "library" => "1", 
00086                         "linkage" => "1", 
00087                         "literal" => "1", 
00088                         "loop" => "1", 
00089                         "map" => "1", 
00090                         "mod" => "1", 
00091                         "nand" => "1", 
00092                         "new" => "1", 
00093                         "next" => "1", 
00094                         "nor" => "1", 
00095                         "not" => "1", 
00096                         "null" => "1", 
00097                         "of" => "1", 
00098                         "on" => "1", 
00099                         "open" => "1", 
00100                         "or" => "1", 
00101                         "others" => "1", 
00102                         "out" => "1", 
00103                         "package" => "1", 
00104                         "port" => "1", 
00105                         "postponed" => "1", 
00106                         "procedure" => "1", 
00107                         "process" => "1", 
00108                         "pure" => "1", 
00109                         "range" => "1", 
00110                         "record" => "1", 
00111                         "register" => "1", 
00112                         "reject" => "1", 
00113                         "rem" => "1", 
00114                         "report" => "1", 
00115                         "return" => "1", 
00116                         "rol" => "1", 
00117                         "ror" => "1", 
00118                         "select" => "1", 
00119                         "severity" => "1", 
00120                         "signal" => "1", 
00121                         "shared" => "1", 
00122                         "sla" => "1", 
00123                         "sll" => "1", 
00124                         "sra" => "1", 
00125                         "srl" => "1", 
00126                         "subtype" => "1", 
00127                         "then" => "1", 
00128                         "to" => "1", 
00129                         "transport" => "1", 
00130                         "type" => "1", 
00131                         "unaffected" => "1", 
00132                         "units" => "1", 
00133                         "until" => "1", 
00134                         "use" => "1", 
00135                         "variable" => "1", 
00136                         "wait" => "1", 
00137                         "when" => "1", 
00138                         "while" => "1", 
00139                         "with" => "1", 
00140                         "xnor" => "1", 
00141                         "xor" => "1", 
00142                         "bit" => "2", 
00143                         "bit_vector" => "2", 
00144                         "boolean" => "2", 
00145                         "integer" => "2", 
00146                         "real" => "2", 
00147                         "std_logic" => "2", 
00148                         "std_logic_vector" => "2", 
00149                         "=" => "3", 
00150                         "<" => "3", 
00151                         ">" => "3", 
00152                         ":" => "3", 
00153                         "\'event" => "4", 
00154                         "\'right" => "4", 
00155                         "ActivPullUp" => "5", 
00156                         "AndN" => "5", 
00157                         "And2FF" => "5", 
00158                         "AndNFF" => "5", 
00159                         "Cnt1Bit" => "5", 
00160                         "CntNBit" => "5", 
00161                         "CntNBitDown" => "5", 
00162                         "CntNBitMod" => "5", 
00163                         "CntNBitOe" => "5", 
00164                         "CntNBitSLd" => "5", 
00165                         "CntNBitSR" => "5", 
00166                         "CntNBitUpDown" => "5", 
00167                         "CompNBit" => "5", 
00168                         "CompNBitFF" => "5", 
00169                         "DiffH2LWithFF" => "5", 
00170                         "DiffL2HWithFF" => "5", 
00171                         "Dff1" => "5", 
00172                         "Dff1NegClk" => "5", 
00173                         "Dffn" => "5", 
00174                         "Encode4to5" => "5", 
00175                         "Mux1of2" => "5", 
00176                         "Mux1of8" => "5", 
00177                         "Mux1Vof2V" => "5", 
00178                         "Mux1Vof3V" => "5", 
00179                         "Mux1Vof4V" => "5", 
00180                         "PreScale1Bit" => "5", 
00181                         "PreScale1BitAR" => "5", 
00182                         "PreScale1BitARNegClk" => "5", 
00183                         "PreScaleNBit" => "5", 
00184                         "PreScaleNBitAR" => "5", 
00185                         "Reg1Bit" => "5", 
00186                         "Reg1BitAR" => "5", 
00187                         "Reg1BitR" => "5", 
00188                         "RegNBit" => "5", 
00189                         "RegNBitAR" => "5", 
00190                         "RSFFAsync" => "5", 
00191                         "RSFFsync" => "5", 
00192                         "RsSynchronizer" => "5", 
00193                         "ShiftP2SRegNBitAR" => "5", 
00194                         "ShiftRegNBitAR" => "5", 
00195                         "ShiftS2SRegNBit" => "5", 
00196                         "SRFFsync" => "5", 
00197                         "SyncAndDiffL2HWithFF" => "5", 
00198                         "SyncAndDiffH2LWithFF" => "5", 
00199                         "SyncAndDiffL2HWithFFAndFg" => "5", 
00200                         "SyncAndDiffH2LWithFFAndFg" => "5", 
00201                         "SyncAndDiffLL2HHWithFF" => "5", 
00202                         "SyncAndDiffHH2LLWithFF" => "5", 
00203                         "SyncAndDiffLL2HHWithFFAndFg" => "5", 
00204                         "SyncAndDiffHH2LLWithFFAndFg" => "5", 
00205                         "ActivPullUp_arch" => "6", 
00206                         "AndN_arch" => "6", 
00207                         "And2FF_arch" => "6", 
00208                         "AndNFF_arch" => "6", 
00209                         "Cnt1Bit_arch" => "6", 
00210                         "CntNBit_arch" => "6", 
00211                         "CntNBitDown_arch" => "6", 
00212                         "CntNBitMod_arch" => "6", 
00213                         "CntNBitOe_arch" => "6", 
00214                         "CntNBitSLd_arch" => "6", 
00215                         "CntNBitSR_arch" => "6", 
00216                         "CntNBitUpDown_arch" => "6", 
00217                         "CompNBit_arch" => "6", 
00218                         "CompNBitFF_arch" => "6", 
00219                         "DiffH2LWithFF_arch" => "6", 
00220                         "DiffL2HWithFF_arch" => "6", 
00221                         "Dff1_arch" => "6", 
00222                         "Dff1NegClk_arch" => "6", 
00223                         "Dffn_arch" => "6", 
00224                         "Encode4to5_arch" => "6", 
00225                         "Mux1of2_arch" => "6", 
00226                         "Mux1of8_arch" => "6", 
00227                         "Mux1Vof2V_arch" => "6", 
00228                         "Mux1Vof3V_arch" => "6", 
00229                         "Mux1Vof4V_arch" => "6", 
00230                         "PreScale1Bit_arch" => "6", 
00231                         "PreScale1BitAR_arch" => "6", 
00232                         "PreScale1BitARNegClk_arch" => "6", 
00233                         "PreScaleNBit_arch" => "6", 
00234                         "PreScaleNBitAR_arch" => "6", 
00235                         "Reg1Bit_arch" => "6", 
00236                         "Reg1BitAR_arch" => "6", 
00237                         "Reg1BitR_arch" => "6", 
00238                         "RegNBit_arch" => "6", 
00239                         "RegNBitAR_arch" => "6", 
00240                         "RSFFAsync_arch" => "6", 
00241                         "RSFFsync_arch" => "6", 
00242                         "RsSynchronizer_arch" => "6", 
00243                         "ShiftP2SRegNBitAR_arch" => "6", 
00244                         "ShiftRegNBitAR_arch" => "6", 
00245                         "ShiftS2SRegNBit_arch" => "6", 
00246                         "SRFFsync_arch" => "6", 
00247                         "SyncAndDiffL2HWithFF_arch" => "6", 
00248                         "SyncAndDiffH2LWithFF_arch" => "6", 
00249                         "SyncAndDiffL2HWithFFAndFg_arch" => "6", 
00250                         "SyncAndDiffH2LWithFFAndFg_arch" => "6", 
00251                         "SyncAndDiffLL2HHWithFF_arch" => "6", 
00252                         "SyncAndDiffHH2LLWithFF_arch" => "6", 
00253                         "SyncAndDiffLL2HHWithFFAndFg_arch" => "6", 
00254                         "SyncAndDiffHH2LLWithFFAndFg_arch" => "6");
00255 
00256 // Special extensions
00257 
00258 // Each category can specify a PHP function that returns an altered
00259 // version of the keyword.
00260         
00261         
00262 
00263 $this->linkscripts      = array(
00264                         "1" => "donothing", 
00265                         "2" => "donothing", 
00266                         "3" => "donothing", 
00267                         "4" => "donothing", 
00268                         "5" => "donothing", 
00269                         "6" => "donothing");
00270 }
00271 
00272 
00273 function donothing($keywordin)
00274 {
00275         return $keywordin;
00276 }
00277 
00278 }?>

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