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_inform6 extends HFile{
00006 function HFile_inform6(){
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", "blue", "gray", "brown", "purple", "gray", "brown");
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" => "",
00047 "a" => "",
00048 "brand-new" => "",
00049 "UltraEdit" => "",
00050 "word" => "",
00051 "file" => "",
00052 "for" => "1",
00053 "Inform" => "",
00054 "6." => "",
00055 "Since" => "",
00056 "doesn\'t" => "",
00057 "yet" => "",
00058 "support" => "",
00059 "multi-line" => "",
00060 "string" => "1",
00061 "coloring," => "",
00062 "I" => "",
00063 "have" => "",
00064 "hacked" => "",
00065 "around" => "",
00066 "that" => "",
00067 "by" => "",
00068 "defining" => "",
00069 "strings" => "",
00070 "as" => "",
00071 "the" => "6",
00072 "default" => "5",
00073 "block" => "",
00074 "comment," => "",
00075 "which" => "",
00076 "lacks" => "",
00077 "anyway." => "",
00078 "However," => "",
00079 "this" => "",
00080 "means" => "",
00081 "any" => "",
00082 "enclosed" => "",
00083 "\"" => "",
00084 "must" => "",
00085 "be" => "",
00086 "preceded" => "",
00087 "with" => "1",
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" => "",
00112 "drop" => "",
00113 "it" => "",
00114 "into" => "",
00115 "your" => "",
00116 "WORDFILE.TXT." => "",
00117 "Depending" => "",
00118 "on" => "3",
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 "=" => "4",
00145 "H" => "",
00146 "INF" => "",
00147 "INC\"" => "",
00148 "or" => "1",
00149 "won\'t" => "",
00150 "work." => "",
00151 "Starting" => "",
00152 "7.0," => "",
00153 "possible" => "",
00154 "bold/italic" => "",
00155 "text" => "",
00156 "highlighting." => "",
00157 "For" => "",
00158 "reference," => "",
00159 "following" => "",
00160 "settings" => "",
00161 "in" => "1",
00162 "itself," => "",
00163 "white:" => "",
00164 "Normal" => "",
00165 "Text" => "",
00166 "RGB" => "",
00167 "000/000/000" => "",
00168 "Comments" => "",
00169 "128/128/128," => "",
00170 "italic" => "",
00171 "(that\'s" => "",
00172 "comments" => "",
00173 "\"\"-Strings)" => "",
00174 "Strings" => "",
00175 "\'\'-Strings)" => "",
00176 "Numbers" => "",
00177 "255/000/000" => "",
00178 "Statemts/Routines" => "",
00179 "000/000/255" => "",
00180 "Directives" => "",
00181 "Attributes" => "",
00182 "255/128/000" => "",
00183 "Properties/Ops" => "",
00184 "000/128/000" => "",
00185 "Verb" => "2",
00186 "actions" => "",
00187 "128/064/064" => "",
00188 "Grammar" => "",
00189 "Assembler" => "",
00190 "128/128/000" => "",
00191 "Miscellaneous" => "",
00192 "128/000/255" => "",
00193 "Alt" => "",
00194 "Block" => "",
00195 "(not" => "",
00196 "used)" => "",
00197 "If" => "",
00198 "find" => "",
00199 "useful" => "",
00200 "library" => "",
00201 "routines," => "",
00202 "constants" => "",
00203 "anything" => "",
00204 "else" => "1",
00205 "I\'ve" => "",
00206 "missed," => "",
00207 "if" => "1",
00208 "at" => "",
00209 "all," => "",
00210 "contact" => "",
00211 "me!" => "",
00212 "Version" => "2",
00213 "2.19991202" => "",
00214 "Gunther" => "",
00215 "Schmidl" => "",
00216 "<gschmidl@gmx.at>" => "",
00217 "history:" => "",
00218 "Minor" => "",
00219 "additions" => "",
00220 "(AfterRoutines," => "",
00221 "ValueOrRun," => "",
00222 "RunRoutines)" => "",
00223 "fixes" => "",
00224 "(moved" => "",
00225 "\'NULL\'" => "",
00226 "C8," => "",
00227 "removed" => "",
00228 "\'a\')" => "",
00229 "1.19991201" => "",
00230 "Initial" => "",
00231 "release;" => "",
00232 "statements," => "",
00233 "routines" => "",
00234 "etc." => "",
00235 "culled" => "",
00236 "from" => "",
00237 "DM." => "",
00238 "---cut" => "",
00239 "here---cut" => "",
00240 "here---" => "",
00241 "AfterLife" => "1",
00242 "AfterPrompt" => "1",
00243 "Amusing" => "1",
00244 "Achieved" => "1",
00245 "AddToScope" => "1",
00246 "AllowPushDir" => "1",
00247 "AfterRoutines" => "1",
00248 "box" => "1",
00249 "break" => "1",
00250 "bold" => "1",
00251 "BeforeParsing" => "1",
00252 "class" => "1",
00253 "continue" => "1",
00254 "child" => "1",
00255 "children" => "1",
00256 "ChangePlayer" => "1",
00257 "ChangeDefault" => "1",
00258 "ChooseObjects" => "1",
00259 "CDefArt" => "1",
00260 "do" => "1",
00261 "DeathMessage" => "1",
00262 "DarkToDark" => "1",
00263 "DoMenu" => "1",
00264 "DefArt" => "1",
00265 "EnglishNumber" => "1",
00266 "font" => "1",
00267 "fixed" => "1",
00268 "give" => "1",
00269 "GamePostRoutine" => "1",
00270 "GamePreRoutine" => "1",
00271 "has" => "1",
00272 "hasnt" => "1",
00273 "HasLightSource" => "1",
00274 "indirect" => "1",
00275 "inversion" => "1",
00276 "InScope" => "1",
00277 "InDefArt" => "1",
00278 "Initialise" => "1",
00279 "jump" => "1",
00280 "LookRoutine" => "1",
00281 "Locale" => "1",
00282 "LoopOverScope" => "1",
00283 "metaclass" => "1",
00284 "move" => "1",
00285 "new_line" => "1",
00286 "near" => "1",
00287 "notin" => "1",
00288 "nothing" => "1",
00289 "NextWord" => "1",
00290 "NextWordStopped" => "1",
00291 "NounDomain" => "1",
00292 "NewRoom" => "1",
00293 "objectloop" => "1",
00294 "ofclass" => "1",
00295 "ObjectIsUntouchable" => "1",
00296 "OffersLight" => "1",
00297 "print_ret" => "1",
00298 "print_to_array" => "1",
00299 "parent" => "1",
00300 "provides" => "1",
00301 "PlayerTo" => "1",
00302 "PrintRank" => "1",
00303 "PrintTaskName" => "1",
00304 "ParseNoun" => "1",
00305 "ParseNumber" => "1",
00306 "PlaceInScope" => "1",
00307 "PrononValue" => "1",
00308 "PronounNotice" => "1",
00309 "ParserError" => "1",
00310 "PrintShortName" => "1",
00311 "PrintVerb" => "1",
00312 "quit" => "1",
00313 "random" => "1",
00314 "read" => "1",
00315 "remove" => "1",
00316 "restore" => "1",
00317 "return" => "1",
00318 "rfalse" => "1",
00319 "rtrue" => "1",
00320 "roman" => "1",
00321 "reverse" => "1",
00322 "RunRoutines" => "1",
00323 "save" => "1",
00324 "spaces" => "1",
00325 "style" => "1",
00326 "switch" => "1",
00327 "sibling" => "1",
00328 "sender" => "1",
00329 "StartDaemon" => "1",
00330 "StopDaemon" => "1",
00331 "StartTimer" => "1",
00332 "StopTimer" => "1",
00333 "Statusline" => "1",
00334 "SetTime" => "1",
00335 "ScopeWithin" => "1",
00336 "SetPronoun" => "1",
00337 "The" => "1",
00338 "TestScope" => "1",
00339 "TryNumber" => "1",
00340 "TimePasses" => "1",
00341 "until" => "1",
00342 "underline" => "1",
00343 "UnknownVerb" => "1",
00344 "UnsignedCompare" => "1",
00345 "ValueOrRun" => "1",
00346 "while" => "1",
00347 "WriteListFrom" => "1",
00348 "WordAddress" => "1",
00349 "WordLength" => "1",
00350 "YesOrNo" => "1",
00351 "ZRegion" => "1",
00352 "**" => "7",
00353 "#" => "2",
00354 "Abbreviate" => "2",
00355 "Array" => "2",
00356 "Attribute" => "2",
00357 "Class" => "2",
00358 "Constant" => "2",
00359 "Default" => "2",
00360 "Dictionary" => "2",
00361 "End" => "2",
00362 "Endif" => "2",
00363 "Extend" => "2",
00364 "endif" => "2",
00365 "Fake_action" => "2",
00366 "Global" => "2",
00367 "Ifdef" => "2",
00368 "Ifndef" => "2",
00369 "Ifnot" => "2",
00370 "Iftrue" => "2",
00371 "Iffalse" => "2",
00372 "Import" => "2",
00373 "Include" => "2",
00374 "Ifv3" => "2",
00375 "Ifv5" => "2",
00376 "ifdef" => "2",
00377 "ifndef" => "2",
00378 "ifnot" => "2",
00379 "iftrue" => "2",
00380 "iffalse" => "2",
00381 "ifv3" => "2",
00382 "ifv5" => "2",
00383 "Link" => "2",
00384 "Lowstring" => "2",
00385 "Message" => "2",
00386 "Nearby" => "2",
00387 "Object" => "2",
00388 "Property" => "2",
00389 "Release" => "2",
00390 "Replace" => "2",
00391 "Routine" => "2",
00392 "Serial" => "2",
00393 "Switches" => "2",
00394 "System_file" => "2",
00395 "Stub" => "2",
00396 "String" => "2",
00397 "Trace" => "2",
00398 "absent" => "3",
00399 "animate" => "3",
00400 "creature" => "3",
00401 "clothing" => "3",
00402 "concealed" => "3",
00403 "container" => "3",
00404 "edible" => "3",
00405 "enterable" => "3",
00406 "female" => "3",
00407 "general" => "3",
00408 "held" => "3",
00409 "light" => "3",
00410 "lockable" => "3",
00411 "locked" => "3",
00412 "male" => "3",
00413 "moved" => "3",
00414 "neuter" => "3",
00415 "open" => "3",
00416 "openable" => "3",
00417 "pluralname" => "3",
00418 "proper" => "3",
00419 "scenery" => "3",
00420 "scored" => "3",
00421 "static" => "3",
00422 "supporter" => "3",
00423 "switchable" => "3",
00424 "talkable" => "3",
00425 "transparent" => "3",
00426 "visited" => "3",
00427 "workflag" => "3",
00428 "worn" => "3",
00429 "~" => "4",
00430 "." => "4",
00431 ":" => "4",
00432 ";" => "4",
00433 "," => "4",
00434 "-" => "4",
00435 ">" => "4",
00436 "<" => "4",
00437 "&" => "4",
00438 "|" => "4",
00439 "(" => "4",
00440 ")" => "4",
00441 "[" => "4",
00442 "]" => "4",
00443 "{" => "4",
00444 "}" => "4",
00445 "+" => "4",
00446 "*" => "4",
00447 "//" => "4",
00448 "/" => "4",
00449 "add_to_scope" => "4",
00450 "after" => "4",
00451 "article" => "4",
00452 "articles" => "4",
00453 "before" => "4",
00454 "cant_go" => "4",
00455 "capacity" => "4",
00456 "create" => "4",
00457 "copy" => "4",
00458 "call" => "4",
00459 "door" => "4",
00460 "daemon" => "4",
00461 "describe" => "4",
00462 "description" => "4",
00463 "door_dir" => "4",
00464 "door_to" => "4",
00465 "d_to" => "4",
00466 "destroy" => "4",
00467 "each_turn" => "4",
00468 "e_to" => "4",
00469 "found_in" => "4",
00470 "initial" => "4",
00471 "inside_description" => "4",
00472 "invent" => "4",
00473 "in_to" => "4",
00474 "grammar" => "4",
00475 "life" => "4",
00476 "list_together" => "4",
00477 "name" => "4",
00478 "number" => "4",
00479 "n_to" => "4",
00480 "nw_to" => "4",
00481 "ne_to" => "4",
00482 "orders" => "4",
00483 "out_to" => "4",
00484 "parse_name" => "4",
00485 "plural" => "4",
00486 "private" => "4",
00487 "react_after" => "4",
00488 "react_before" => "4",
00489 "recreate" => "4",
00490 "remaining" => "4",
00491 "short_name" => "4",
00492 "short_name_indef" => "4",
00493 "s_to" => "4",
00494 "se_to" => "4",
00495 "sw_to" => "4",
00496 "time_left" => "4",
00497 "time_out" => "4",
00498 "u_to" => "4",
00499 "when_closed" => "4",
00500 "when_open" => "4",
00501 "when_off" => "4",
00502 "when_on" => "4",
00503 "with_key" => "4",
00504 "w_to" => "4",
00505 "##" => "5",
00506 "ActionsOn" => "5",
00507 "ActionsOff" => "5",
00508 "Attack" => "5",
00509 "Answer" => "5",
00510 "Ask" => "5",
00511 "AskFor" => "5",
00512 "Burn" => "5",
00513 "Blow" => "5",
00514 "Buy" => "5",
00515 "CommandsOn" => "5",
00516 "CommandsOff" => "5",
00517 "CommandsRead" => "5",
00518 "Close" => "5",
00519 "Consult" => "5",
00520 "Cut" => "5",
00521 "Climb" => "5",
00522 "Drop" => "5",
00523 "Disrobe" => "5",
00524 "Dig" => "5",
00525 "Drink" => "5",
00526 "Empty" => "5",
00527 "Enter" => "5",
00528 "Exit" => "5",
00529 "Examine" => "5",
00530 "Eat" => "5",
00531 "Fullscore" => "5",
00532 "Fill" => "5",
00533 "Goto" => "5",
00534 "Gonear" => "5",
00535 "GetOff" => "5",
00536 "Go" => "5",
00537 "GoIn" => "5",
00538 "Give" => "5",
00539 "Inv" => "5",
00540 "InvTall" => "5",
00541 "InvWide" => "5",
00542 "Insert" => "5",
00543 "Jump" => "5",
00544 "JumpOver" => "5",
00545 "Kiss" => "5",
00546 "LMode1" => "5",
00547 "LMode2" => "5",
00548 "LMode3" => "5",
00549 "Look" => "5",
00550 "Lock" => "5",
00551 "Listen" => "5",
00552 "LookUnder" => "5",
00553 "LetGo" => "5",
00554 "Mild" => "5",
00555 "Miscellany" => "5",
00556 "NotifyOn" => "5",
00557 "NotifyOff" => "5",
00558 "No" => "5",
00559 "NotUnderstood" => "5",
00560 "Objects" => "5",
00561 "Open" => "5",
00562 "Order" => "5",
00563 "Pronouns" => "5",
00564 "Places" => "5",
00565 "Predictable" => "5",
00566 "PutOn" => "5",
00567 "Pray" => "5",
00568 "Pull" => "5",
00569 "Push" => "5",
00570 "PushDir" => "5",
00571 "PluralFound" => "5",
00572 "Prompt" => "5",
00573 "Quit" => "5",
00574 "Restart" => "5",
00575 "Restore" => "5",
00576 "RoutinesOn" => "5",
00577 "RoutinesOff" => "5",
00578 "Read" => "5",
00579 "Remove" => "5",
00580 "Rub" => "5",
00581 "Receive" => "5",
00582 "Save" => "5",
00583 "SciptOn" => "5",
00584 "ScriptOff" => "5",
00585 "Score" => "5",
00586 "Scope" => "5",
00587 "Search" => "5",
00588 "Show" => "5",
00589 "SwitchOn" => "5",
00590 "SwitchOff" => "5",
00591 "Smell" => "5",
00592 "Sorry" => "5",
00593 "Strong" => "5",
00594 "Swim" => "5",
00595 "Swing" => "5",
00596 "Set" => "5",
00597 "SetTo" => "5",
00598 "Squeeze" => "5",
00599 "Sing" => "5",
00600 "Sleep" => "5",
00601 "TraceOn" => "5",
00602 "TraceOff" => "5",
00603 "TraceLevel" => "5",
00604 "TimersOn" => "5",
00605 "TimersOff" => "5",
00606 "Transfer" => "5",
00607 "Think" => "5",
00608 "Taste" => "5",
00609 "Touch" => "5",
00610 "Tie" => "5",
00611 "Turn" => "5",
00612 "ThrowAt" => "5",
00613 "ThrownAt" => "5",
00614 "TheSame" => "5",
00615 "Take" => "5",
00616 "Tell" => "5",
00617 "Unlock" => "5",
00618 "VagueGo" => "5",
00619 "VagueSay" => "5",
00620 "Verify" => "5",
00621 "Wear" => "5",
00622 "Wake" => "5",
00623 "WakeOther" => "5",
00624 "Wave" => "5",
00625 "WaveHands" => "5",
00626 "Wait" => "5",
00627 "Xpurloin" => "5",
00628 "Xabstract" => "5",
00629 "Xtree" => "5",
00630 "Yes" => "5",
00631 "first" => "6",
00632 "last" => "6",
00633 "multi" => "6",
00634 "multiheld" => "6",
00635 "multiexcept" => "6",
00636 "multiinside" => "6",
00637 "meta" => "6",
00638 "noun" => "6",
00639 "only" => "6",
00640 "replace" => "6",
00641 "scope" => "6",
00642 "special" => "6",
00643 "second" => "6",
00644 "topic" => "6",
00645 "@" => "7",
00646 "action" => "8",
00647 "AMUSING_PROVIDED" => "8",
00648 "ALWAYS_BIT" => "8",
00649 "ANIMA_PE" => "8",
00650 "ASKSCOPE_PE" => "8",
00651 "compass" => "8",
00652 "CONCEAL_BIT" => "8",
00653 "CANTSEE_PE" => "8",
00654 "d_obj" => "8",
00655 "deadflag" => "8",
00656 "DEFART_BIT" => "8",
00657 "DEBUG" => "8",
00658 "e_obj" => "8",
00659 "ENGLISH_BIT" => "8",
00660 "EACHTURN_REASON" => "8",
00661 "EXCEPT_PE" => "8",
00662 "FULLINV_BIT" => "8",
00663 "Headline" => "8",
00664 "in_obj" => "8",
00665 "inventory_stage" => "8",
00666 "item_name" => "8",
00667 "item_width" => "8",
00668 "INDENT_BIT" => "8",
00669 "ISARE_BIT" => "8",
00670 "ITGONE_PE" => "8",
00671 "InformLibrary" => "8",
00672 "InformParser" => "8",
00673 "JUNKAFTER_PE" => "8",
00674 "LibraryMessages" => "8",
00675 "LOOPOVERSCOPE_REASON" => "8",
00676 "moves" => "8",
00677 "menu_item" => "8",
00678 "MAX_CARRIED" => "8",
00679 "MAX_SCORE" => "8",
00680 "MAX_TIMERS" => "8",
00681 "MANUAL_PRONOUNS" => "8",
00682 "MULTI_PE" => "8",
00683 "MMULTI_PE" => "8",
00684 "n_obj" => "8",
00685 "ne_obj" => "8",
00686 "nw_obj" => "8",
00687 "NULL" => "8",
00688 "NUMBER_TASKS" => "8",
00689 "NO_PLACES" => "8",
00690 "NEWLINE_BIT" => "8",
00691 "NUMBER_PE" => "8",
00692 "NOTHELD_PE" => "8",
00693 "NOTHING_PE" => "8",
00694 "out_obj" => "8",
00695 "OBJECT_SCORE" => "8",
00696 "player" => "8",
00697 "parser_action" => "8",
00698 "parser_one" => "8",
00699 "parser_two" => "8",
00700 "parsed_number" => "8",
00701 "PARTINV_BIT" => "8",
00702 "PARSING_REASON" => "8",
00703 "real_location" => "8",
00704 "ROOM_SCORE" => "8",
00705 "RECURSE_BIT" => "8",
00706 "REACT_BEFORE_REASON" => "8",
00707 "REACT_AFTER_REASON" => "8",
00708 "s_obj" => "8",
00709 "sw_obj" => "8",
00710 "se_obj" => "8",
00711 "score" => "8",
00712 "self" => "8",
00713 "selfobj" => "8",
00714 "SACK_OBJECT" => "8",
00715 "STUCK_PE" => "8",
00716 "SCENERY_PE" => "8",
00717 "Story" => "8",
00718 "time" => "8",
00719 "thedark" => "8",
00720 "TASKS_PROVIDED" => "8",
00721 "TERSE_BIT" => "8",
00722 "TALKING_REASON" => "8",
00723 "TESTSCOPE_REASON" => "8",
00724 "TOOLIT_PE" => "8",
00725 "TOOFEW_PE" => "8",
00726 "u_obj" => "8",
00727 "UPTO_PE" => "8",
00728 "VAGUE_PE" => "8",
00729 "VERB_PE" => "8",
00730 "w_obj" => "8",
00731 "WORKFLAG_BIT" => "8",
00732 "WITHOUT_DIRECTIONS" => "8");
00733
00734
00735
00736
00737
00738
00739
00740
00741 $this->linkscripts = array(
00742 "" => "donothing",
00743 "1" => "donothing",
00744 "6" => "donothing",
00745 "5" => "donothing",
00746 "3" => "donothing",
00747 "4" => "donothing",
00748 "2" => "donothing",
00749 "7" => "donothing",
00750 "8" => "donothing");
00751 }
00752
00753
00754 function donothing($keywordin)
00755 {
00756 return $keywordin;
00757 }
00758
00759 }?>