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

syntax_highlight/php/HFile/HFile_arm.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_arm extends HFile{
00006    function HFile_arm(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // ARM Assembler
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "0";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("gray", "blue", "purple", "gray", "brown", "blue", "purple", "brown");
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("REM");
00040 $this->blockcommentoff          = array("");
00041 
00042 // Keywords (keyword mapping to colour number)
00043 
00044 $this->keywords                 = array(
00045                         "**" => "7", 
00046                         "B" => "1", 
00047                         "b" => "1", 
00048                         "BL" => "1", 
00049                         "bl" => "1", 
00050                         "BX" => "1", 
00051                         "bx" => "1", 
00052                         "BLX" => "1", 
00053                         "blx" => "1", 
00054                         "AND" => "2", 
00055                         "and" => "2", 
00056                         "EOR" => "2", 
00057                         "eor" => "2", 
00058                         "SUB" => "2", 
00059                         "sub" => "2", 
00060                         "RSB" => "2", 
00061                         "rsb" => "2", 
00062                         "ADD" => "2", 
00063                         "add" => "2", 
00064                         "ADC" => "2", 
00065                         "adc" => "2", 
00066                         "SBC" => "2", 
00067                         "sbc" => "2", 
00068                         "RSC" => "2", 
00069                         "rsc" => "2", 
00070                         "TST" => "2", 
00071                         "tst" => "2", 
00072                         "TEQ" => "2", 
00073                         "teq" => "2", 
00074                         "CMP" => "2", 
00075                         "cmp" => "2", 
00076                         "CMN" => "2", 
00077                         "cmn" => "2", 
00078                         "ORR" => "2", 
00079                         "orr" => "2", 
00080                         "MOV" => "2", 
00081                         "mov" => "2", 
00082                         "BIC" => "2", 
00083                         "bic" => "2", 
00084                         "MVN" => "2", 
00085                         "mvn" => "2", 
00086                         "LSL" => "2", 
00087                         "lsl" => "2", 
00088                         "LSR" => "2", 
00089                         "lsr" => "2", 
00090                         "ASL" => "2", 
00091                         "asl" => "2", 
00092                         "ASR" => "2", 
00093                         "asr" => "2", 
00094                         "ROR" => "2", 
00095                         "ror" => "2", 
00096                         "RRX" => "2", 
00097                         "rrx" => "2", 
00098                         "NEG" => "2", 
00099                         "neg" => "2", 
00100                         "MUL" => "3", 
00101                         "mul" => "3", 
00102                         "MLA" => "3", 
00103                         "mla" => "3", 
00104                         "SMULL" => "3", 
00105                         "smull" => "3", 
00106                         "UMULL" => "3", 
00107                         "umull" => "3", 
00108                         "SMLAL" => "3", 
00109                         "smlal" => "3", 
00110                         "UMLAL" => "3", 
00111                         "umlal" => "3", 
00112                         "LDR" => "4", 
00113                         "ldr" => "4", 
00114                         "STR" => "4", 
00115                         "str" => "4", 
00116                         "LDM" => "4", 
00117                         "ldm" => "4", 
00118                         "STM" => "4", 
00119                         "stm" => "4", 
00120                         "SWP" => "4", 
00121                         "swp" => "4", 
00122                         "PUSH" => "7", 
00123                         "push" => "4", 
00124                         "POP" => "7", 
00125                         "pop" => "4", 
00126                         "SWI" => "5", 
00127                         "swi" => "5", 
00128                         "BKPT" => "5", 
00129                         "bkpt" => "5", 
00130                         "CLZ" => "6", 
00131                         "clz" => "6", 
00132                         "MRS" => "6", 
00133                         "mrs" => "6", 
00134                         "MSR" => "6", 
00135                         "msr" => "6", 
00136                         "CDP" => "6", 
00137                         "cdp" => "6", 
00138                         "MRC" => "6", 
00139                         "mrc" => "6", 
00140                         "MCR" => "6", 
00141                         "mcr" => "6", 
00142                         "LDC" => "6", 
00143                         "ldc" => "6", 
00144                         "STC" => "6", 
00145                         "stc" => "6", 
00146                         "OPT" => "7", 
00147                         "EXT" => "7", 
00148                         "EQU" => "7", 
00149                         "DC" => "7", 
00150                         "ALIGN" => "7", 
00151                         "ADR" => "7", 
00152                         "RN" => "7", 
00153                         "FN" => "7", 
00154                         "DIV" => "7", 
00155                         "SQR" => "7", 
00156                         "SWAP" => "7", 
00157                         "VDU" => "7", 
00158                         "NOP" => "7", 
00159                         "BRK" => "7", 
00160                         "SMUL" => "7", 
00161                         "UMUL" => "7", 
00162                         "SMLA" => "7", 
00163                         "UMLA" => "7", 
00164                         "LDF" => "7", 
00165                         "STF" => "7", 
00166                         "ASSERT" => "7", 
00167                         "FILL" => "7", 
00168                         "FILE" => "7", 
00169                         "COND" => "7", 
00170                         "HEAD" => "7", 
00171                         "ORG" => "7", 
00172                         "CN" => "7", 
00173                         "CP" => "7", 
00174                         "DN" => "7", 
00175                         "EXPORT" => "7", 
00176                         "GLOBAL" => "7", 
00177                         "EXTERN" => "7", 
00178                         "GBL" => "7", 
00179                         "IMPORT" => "7", 
00180                         "KEEP" => "7", 
00181                         "LCL" => "7", 
00182                         "RLIST" => "7", 
00183                         "SET" => "7", 
00184                         "SN" => "7", 
00185                         "DATA" => "7", 
00186                         "FIELD" => "7", 
00187                         "LTORG" => "7", 
00188                         "MAP" => "7", 
00189                         "SPACE" => "7", 
00190                         "ELSE" => "7", 
00191                         "ENDIF" => "7", 
00192                         "GET" => "7", 
00193                         "INCLUDE" => "7", 
00194                         "IF" => "7", 
00195                         "INCBIN" => "7", 
00196                         "MACRO" => "7", 
00197                         "MEND" => "7", 
00198                         "MEXIT" => "7", 
00199                         "WEND" => "7", 
00200                         "WHILE" => "7", 
00201                         "ENDFUNC" => "7", 
00202                         "ENDP" => "7", 
00203                         "FRAME" => "7", 
00204                         "ADDRESS" => "7", 
00205                         "REGISTER" => "7", 
00206                         "RESTORE" => "7", 
00207                         "SAVE" => "7", 
00208                         "STATE" => "7", 
00209                         "REMEMBER" => "7", 
00210                         "FUNCTION" => "7", 
00211                         "PROC" => "7", 
00212                         "AREA" => "7", 
00213                         "CODE16" => "7", 
00214                         "CODE32" => "7", 
00215                         "END" => "7", 
00216                         "ENTRY" => "7", 
00217                         "INFO" => "7", 
00218                         "NOFP" => "7", 
00219                         "REQUIRE" => "7", 
00220                         "ROUT" => "7", 
00221                         "SUBT" => "7", 
00222                         "TTL" => "7", 
00223                         "VFPASSERT" => "7", 
00224                         "SCALAR" => "7", 
00225                         "VECTOR" => "7", 
00226                         "FLD" => "7", 
00227                         "A1" => "8", 
00228                         "A2" => "8", 
00229                         "A3" => "8", 
00230                         "A4" => "8", 
00231                         "F0" => "8", 
00232                         "F1" => "8", 
00233                         "F2" => "8", 
00234                         "F3" => "8", 
00235                         "F4" => "8", 
00236                         "F5" => "8", 
00237                         "F6" => "8", 
00238                         "F7" => "8", 
00239                         "FP" => "8", 
00240                         "IP" => "8", 
00241                         "LR" => "8", 
00242                         "PC" => "8", 
00243                         "R0" => "8", 
00244                         "R1" => "8", 
00245                         "R10" => "8", 
00246                         "R11" => "8", 
00247                         "R12" => "8", 
00248                         "R13" => "8", 
00249                         "R14" => "8", 
00250                         "R15" => "8", 
00251                         "R2" => "8", 
00252                         "R3" => "8", 
00253                         "R4" => "8", 
00254                         "R5" => "8", 
00255                         "R6" => "8", 
00256                         "R7" => "8", 
00257                         "R8" => "8", 
00258                         "R9" => "8", 
00259                         "SL" => "8", 
00260                         "SP" => "8", 
00261                         "V1" => "8", 
00262                         "V2" => "8", 
00263                         "V3" => "8", 
00264                         "V4" => "8", 
00265                         "V5" => "8", 
00266                         "V6" => "8", 
00267                         "a1" => "8", 
00268                         "a2" => "8", 
00269                         "a3" => "8", 
00270                         "a4" => "8", 
00271                         "f0" => "8", 
00272                         "f1" => "8", 
00273                         "f2" => "8", 
00274                         "f3" => "8", 
00275                         "f4" => "8", 
00276                         "f5" => "8", 
00277                         "f6" => "8", 
00278                         "f7" => "8", 
00279                         "fp" => "8", 
00280                         "ip" => "8", 
00281                         "lr" => "8", 
00282                         "pc" => "8", 
00283                         "r0" => "8", 
00284                         "r1" => "8", 
00285                         "r10" => "8", 
00286                         "r11" => "8", 
00287                         "r12" => "8", 
00288                         "r13" => "8", 
00289                         "r14" => "8", 
00290                         "r15" => "8", 
00291                         "r2" => "8", 
00292                         "r3" => "8", 
00293                         "r4" => "8", 
00294                         "r5" => "8", 
00295                         "r6" => "8", 
00296                         "r7" => "8", 
00297                         "r8" => "8", 
00298                         "r9" => "8", 
00299                         "sl" => "8", 
00300                         "sp" => "8", 
00301                         "v1" => "8", 
00302                         "v2" => "8", 
00303                         "v3" => "8", 
00304                         "v4" => "8", 
00305                         "v5" => "8", 
00306                         "v6" => "8");
00307 
00308 // Special extensions
00309 
00310 // Each category can specify a PHP function that returns an altered
00311 // version of the keyword.
00312         
00313         
00314 
00315 $this->linkscripts      = array(
00316                         "7" => "donothing", 
00317                         "1" => "donothing", 
00318                         "2" => "donothing", 
00319                         "3" => "donothing", 
00320                         "4" => "donothing", 
00321                         "5" => "donothing", 
00322                         "6" => "donothing", 
00323                         "8" => "donothing");
00324 }
00325 
00326 
00327 function donothing($keywordin)
00328 {
00329         return $keywordin;
00330 }
00331 
00332 }?>

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