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_hugo extends HFile{
00006 function HFile_hugo(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue", "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 "Below" => "",
00046 "is" => "1",
00047 "a" => "",
00048 "new" => "",
00049 "UltraEdit" => "",
00050 "word" => "",
00051 "file" => "",
00052 "for" => "1",
00053 "Hugo." => "",
00054 "Since" => "",
00055 "doesn\'t" => "",
00056 "yet" => "",
00057 "support" => "",
00058 "multi-line" => "",
00059 "string" => "1",
00060 "coloring," => "",
00061 "I" => "",
00062 "have" => "",
00063 "hacked" => "",
00064 "around" => "",
00065 "that" => "",
00066 "by" => "",
00067 "defining" => "",
00068 "strings" => "",
00069 "as" => "",
00070 "the" => "",
00071 "default" => "",
00072 "block" => "",
00073 "comment," => "",
00074 "which" => "",
00075 "Inform" => "",
00076 "lacks" => "",
00077 "anyway." => "",
00078 "However," => "",
00079 "this" => "",
00080 "means" => "",
00081 "any" => "",
00082 "enclosed" => "",
00083 "\"" => "",
00084 "must" => "",
00085 "be" => "",
00086 "preceded" => "",
00087 "with" => "",
00088 "space," => "",
00089 "i.e." => "",
00090 "print" => "1",
00091 "\"Hello," => "",
00092 "world^^" => "",
00093 "You" => "",
00094 "died\"" => "",
00095 "will" => "",
00096 "work," => "",
00097 "but" => "",
00098 "Format(\"Hello" => "",
00099 "World\")" => "",
00100 "not." => "",
00101 "To" => "",
00102 "use" => "",
00103 "syntax" => "",
00104 "coloring" => "",
00105 "mode," => "",
00106 "cut-and-paste" => "",
00107 "all" => "",
00108 "below" => "",
00109 "\"dotted" => "",
00110 "line\"" => "",
00111 "and" => "1",
00112 "drop" => "",
00113 "it" => "",
00114 "into" => "",
00115 "your" => "",
00116 "WORDFILE.TXT." => "",
00117 "Depending" => "",
00118 "on" => "",
00119 "how" => "",
00120 "few/many" => "",
00121 "languages" => "",
00122 "you" => "",
00123 "defined," => "",
00124 "might" => "",
00125 "to" => "1",
00126 "change" => "",
00127 "\"/L10\"" => "",
00128 "an" => "",
00129 "unused" => "",
00130 "number." => "",
00131 "Also" => "",
00132 "note" => "",
00133 "definition" => "",
00134 "(starting" => "",
00135 "\"/L10\")" => "",
00136 "*all*" => "",
00137 "*on*" => "",
00138 "*one*" => "",
00139 "*line*" => "",
00140 "up" => "",
00141 "including" => "",
00142 "\"File" => "",
00143 "Extensions" => "",
00144 "=" => "",
00145 "H" => "",
00146 "G" => "",
00147 "HUG\"" => "",
00148 "or" => "1",
00149 "won\'t" => "",
00150 "work." => "",
00151 "If" => "",
00152 "find" => "",
00153 "useful" => "",
00154 "library" => "",
00155 "routines," => "",
00156 "constants" => "",
00157 "anything" => "1",
00158 "else" => "1",
00159 "I\'ve" => "",
00160 "missed," => "",
00161 "if" => "1",
00162 "comments" => "",
00163 "at" => "",
00164 "all," => "",
00165 "contact" => "",
00166 "me!" => "",
00167 "Version" => "",
00168 "2.19991201" => "",
00169 "Gunther" => "",
00170 "Schmidl" => "",
00171 "<gschmidl@gmx.at>" => "",
00172 "---cut" => "",
00173 "here---cut" => "",
00174 "here---" => "",
00175 "array" => "1",
00176 "attribute" => "1",
00177 "break" => "1",
00178 "call" => "1",
00179 "capital" => "1",
00180 "case" => "1",
00181 "child" => "1",
00182 "children" => "1",
00183 "cls" => "1",
00184 "color" => "1",
00185 "colour" => "1",
00186 "constant" => "1",
00187 "class" => "1",
00188 "dict" => "1",
00189 "do" => "1",
00190 "elder" => "1",
00191 "eldest" => "1",
00192 "elseif" => "1",
00193 "false" => "1",
00194 "global" => "1",
00195 "held" => "1",
00196 "hex" => "1",
00197 "in" => "1",
00198 "input" => "1",
00199 "jump" => "1",
00200 "local" => "1",
00201 "locate" => "1",
00202 "move" => "1",
00203 "multi" => "1",
00204 "multiheld" => "1",
00205 "multinotheld" => "1",
00206 "music" => "1",
00207 "nearby" => "1",
00208 "newline" => "1",
00209 "not" => "1",
00210 "notheld" => "1",
00211 "number" => "1",
00212 "object" => "1",
00213 "parent" => "1",
00214 "parse$" => "1",
00215 "pause" => "1",
00216 "picture" => "1",
00217 "playback" => "1",
00218 "printchar" => "1",
00219 "player_character" => "1",
00220 "property" => "1",
00221 "quit" => "1",
00222 "random" => "1",
00223 "readfile" => "1",
00224 "readval" => "1",
00225 "recordoff" => "1",
00226 "recordon" => "1",
00227 "remove" => "1",
00228 "restart" => "1",
00229 "restore" => "1",
00230 "return" => "1",
00231 "run" => "1",
00232 "runevents" => "1",
00233 "routine" => "1",
00234 "replace" => "1",
00235 "room" => "1",
00236 "removal" => "1",
00237 "save" => "1",
00238 "scriptoff" => "1",
00239 "scripton" => "1",
00240 "select" => "1",
00241 "serial$" => "1",
00242 "sibling" => "1",
00243 "sound" => "1",
00244 "system" => "1",
00245 "text" => "1",
00246 "true" => "1",
00247 "undo" => "1",
00248 "verb" => "1",
00249 "while" => "1",
00250 "window" => "1",
00251 "writefile" => "1",
00252 "writeval" => "1",
00253 "xobject" => "1",
00254 "xverb" => "1",
00255 "younger" => "1",
00256 "youngest" => "1",
00257 "already_listed" => "2",
00258 "clothing" => "2",
00259 "container" => "2",
00260 "enterable" => "2",
00261 "female" => "2",
00262 "hidden" => "2",
00263 "known" => "2",
00264 "light" => "2",
00265 "living" => "2",
00266 "lockable" => "2",
00267 "locked" => "2",
00268 "mobile" => "2",
00269 "moved" => "2",
00270 "open" => "2",
00271 "openable" => "2",
00272 "platform" => "2",
00273 "plural" => "2",
00274 "quiet" => "2",
00275 "readable" => "2",
00276 "special" => "2",
00277 "static" => "2",
00278 "switchable" => "2",
00279 "switchedon" => "2",
00280 "transparent" => "2",
00281 "unfriendly" => "2",
00282 "visited" => "2",
00283 "workflag" => "2",
00284 "worn" => "2",
00285 "actor" => "3",
00286 "after_period" => "3",
00287 "best_parse_rank" => "3",
00288 "bgcolor" => "3",
00289 "boldcolor" => "3",
00290 "counter" => "3",
00291 "customerror_flag" => "3",
00292 "default_font" => "3",
00293 "endflag" => "3",
00294 "event_flag" => "3",
00295 "format" => "3",
00296 "general" => "3",
00297 "her_obj" => "3",
00298 "him_obj" => "3",
00299 "indent_size" => "3",
00300 "it_obj" => "3",
00301 "last_object" => "3",
00302 "light_source" => "3",
00303 "list_nest" => "3",
00304 "location" => "3",
00305 "max_rank" => "3",
00306 "max_score" => "3",
00307 "need_newline" => "3",
00308 "number_scripts" => "3",
00309 "objects" => "3",
00310 "obstacle" => "3",
00311 "old_location" => "3",
00312 "oldword" => "3",
00313 "override_indent" => "3",
00314 "player" => "3",
00315 "player_person" => "3",
00316 "prompt" => "3",
00317 "ranking" => "3",
00318 "replace_pronoun" => "3",
00319 "score" => "3",
00320 "scriptdata" => "3",
00321 "self" => "3",
00322 "setscript" => "3",
00323 "sl_bgcolor" => "3",
00324 "sl_textcolor" => "3",
00325 "speaking" => "3",
00326 "statustype" => "3",
00327 "textcolor" => "3",
00328 "them_obj" => "3",
00329 "verbosity" => "3",
00330 "verbroutine" => "3",
00331 "words" => "3",
00332 "_temp_array" => "4",
00333 "and_word" => "4",
00334 "are_word" => "4",
00335 "banner" => "4",
00336 "black" => "4",
00337 "blue" => "4",
00338 "bold_off" => "4",
00339 "bold_on" => "4",
00340 "bright_white" => "4",
00341 "brown" => "4",
00342 "cyan" => "4",
00343 "dark_gray" => "4",
00344 "def_background" => "4",
00345 "def_foreground" => "4",
00346 "def_sl_background" => "4",
00347 "def_sl_foreground" => "4",
00348 "descform_f" => "4",
00349 "down_arrow" => "4",
00350 "enter_key" => "4",
00351 "escape_key" => "4",
00352 "file_check" => "4",
00353 "green" => "4",
00354 "groupplurals_f" => "4",
00355 "here_word" => "4",
00356 "in_word" => "4",
00357 "is_word" => "4",
00358 "italic_off" => "4",
00359 "italic_on" => "4",
00360 "left_arrow" => "4",
00361 "light_blue" => "4",
00362 "light_cyan" => "4",
00363 "light_green" => "4",
00364 "light_magenta" => "4",
00365 "light_red" => "4",
00366 "list_f" => "4",
00367 "magenta" => "4",
00368 "match_foreground" => "4",
00369 "max_scripts" => "4",
00370 "max_words" => "4",
00371 "menu_bgcolor" => "4",
00372 "menu_selectbgcolor" => "4",
00373 "menu_selectcolor" => "4",
00374 "menu_textcolor" => "4",
00375 "menuitem" => "4",
00376 "noindent_f" => "4",
00377 "norecurse_f" => "4",
00378 "on_word" => "4",
00379 "prop_off" => "4",
00380 "prop_on" => "4",
00381 "red" => "4",
00382 "right_arrow" => "4",
00383 "underline_off" => "4",
00384 "underline_on" => "4",
00385 "up_arrow" => "4",
00386 "white" => "4",
00387 "yellow" => "4",
00388 "adjective" => "5",
00389 "adjectives" => "5",
00390 "after" => "5",
00391 "article" => "5",
00392 "before" => "5",
00393 "cant_go" => "5",
00394 "capacity" => "5",
00395 "contains_desc" => "5",
00396 "cursor_column" => "5",
00397 "cursor_row" => "5",
00398 "d_to" => "5",
00399 "desc_detail" => "5",
00400 "door_to" => "5",
00401 "e_to" => "5",
00402 "exclude_from_all" => "5",
00403 "found_in" => "5",
00404 "hasgraphics" => "5",
00405 "holding" => "5",
00406 "ignore_response" => "5",
00407 "in_scope" => "5",
00408 "in_to" => "5",
00409 "initial_desc" => "5",
00410 "inv_desc" => "5",
00411 "key_object" => "5",
00412 "linelength" => "5",
00413 "list_contents" => "5",
00414 "long_desc" => "5",
00415 "misc" => "5",
00416 "n_to" => "5",
00417 "name" => "5",
00418 "ne_to" => "5",
00419 "noun" => "5",
00420 "nouns" => "5",
00421 "nw_to" => "5",
00422 "order_response" => "5",
00423 "out_to" => "5",
00424 "parse_rank" => "5",
00425 "prep" => "5",
00426 "preposition" => "5",
00427 "pronoun" => "5",
00428 "reach" => "5",
00429 "s_to" => "5",
00430 "screenheight" => "5",
00431 "screenwidth" => "5",
00432 "se_to" => "5",
00433 "short_desc" => "5",
00434 "size" => "5",
00435 "statusline_height" => "5",
00436 "sw_to" => "5",
00437 "title_caption" => "5",
00438 "type" => "5",
00439 "u_to" => "5",
00440 "w_to" => "5",
00441 "when_closed" => "5",
00442 "when_open" => "5",
00443 "windowlines" => "5",
00444 "**" => "8",
00445 "Do" => "6",
00446 "&Do" => "6",
00447 "&Char" => "6",
00448 "&Loop" => "6",
00449 "Acquire" => "7",
00450 "AnyVerb" => "7",
00451 "AssignPronoun" => "7",
00452 "Activate" => "7",
00453 "Art" => "7",
00454 "abs" => "7",
00455 "CThe" => "7",
00456 "CArt" => "7",
00457 "CalculateHolding" => "7",
00458 "CenterTitle" => "7",
00459 "CheckReach" => "7",
00460 "Contains" => "7",
00461 "CustomError" => "7",
00462 "CancelScript" => "7",
00463 "DarkWarning" => "7",
00464 "DeleteWord" => "7",
00465 "DescribePlace" => "7",
00466 "Deactivate" => "7",
00467 "EndGame" => "7",
00468 "ExcludeFromAll" => "7",
00469 "FindLight" => "7",
00470 "Font" => "7",
00471 "FindObject" => "7",
00472 "GetInput" => "7",
00473 "HoursMinutes" => "7",
00474 "higher" => "7",
00475 "Indent" => "7",
00476 "InList" => "7",
00477 "InsertWord" => "7",
00478 "IsorAre" => "7",
00479 "ListObjects" => "7",
00480 "lower" => "7",
00481 "MatchPlural" => "7",
00482 "MatchSubject" => "7",
00483 "Menu" => "7",
00484 "Message" => "7",
00485 "MovePlayer" => "7",
00486 "mod" => "7",
00487 "NumberWord" => "7",
00488 "ObjectIs" => "7",
00489 "ObjectisKnown" => "7",
00490 "ObjectisLight" => "7",
00491 "ObjWord" => "7",
00492 "Parse" => "7",
00493 "ParseError" => "7",
00494 "PauseScript" => "7",
00495 "PreParse" => "7",
00496 "PrintEndGame" => "7",
00497 "PrintScore" => "7",
00498 "pow" => "7",
00499 "PrintStatusLine" => "7",
00500 "PropertyList" => "7",
00501 "PutInScope" => "7",
00502 "RemoveFromScope" => "7",
00503 "ResumeScript" => "7",
00504 "RunScripts" => "7",
00505 "Script" => "7",
00506 "SetObjWord" => "7",
00507 "ShortDescribe" => "7",
00508 "SpecialDesc" => "7",
00509 "SkipScript" => "7",
00510 "SpeakTo" => "7",
00511 "StringPrint" => "7",
00512 "StringCompare" => "7",
00513 "StringCopy" => "7",
00514 "StringDictCompare" => "7",
00515 "StringEqual" => "7",
00516 "StringLength" => "7",
00517 "The" => "7",
00518 "WhatsIn" => "7",
00519 "YesOrNo" => "7",
00520 "#" => "8",
00521 "NO_" => "8",
00522 "clear" => "8",
00523 "defined" => "8",
00524 "error" => "8",
00525 "set" => "8",
00526 "undefined" => "8",
00527 "warning" => "8");
00528
00529
00530
00531
00532
00533
00534
00535
00536 $this->linkscripts = array(
00537 "" => "donothing",
00538 "1" => "donothing",
00539 "2" => "donothing",
00540 "3" => "donothing",
00541 "4" => "donothing",
00542 "5" => "donothing",
00543 "8" => "donothing",
00544 "6" => "donothing",
00545 "7" => "donothing");
00546 }
00547
00548
00549 function donothing($keywordin)
00550 {
00551 return $keywordin;
00552 }
00553
00554 }?>