annotate runtime/syntax/inform.vim @ 9463:78b611afcadb

Added tag v7.4.2012 for changeset 7384c0cfad1375ddf18a8af38160f899574055a5
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Jul 2016 19:30:05 +0200
parents 8e5830943bff
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Inform
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
3 " Maintainer: Stephen Thomas (stephen@gowarthomas.com)
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
4 " URL: http://www.gowarthomas.com/informvim
8e5830943bff updated for version 7.0e04
vimboss
parents: 7
diff changeset
5 " Last Change: 2006 April 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " A bunch of useful Inform keywords. First, case insensitive stuff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword informDefine Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword informType Array Attribute Class Nearby
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword informType Object Property String Routine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match informType "\<Global\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword informInclude Import Include Link Replace System_file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword informPreCondit End Endif Ifdef Ifndef Iftrue Iffalse Ifv3 Ifv5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword informPreCondit Ifnot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword informPreProc Abbreviate Default Fake_action Lowstring
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword informPreProc Message Release Serial Statusline Stub Switches
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword informPreProc Trace Zcharacter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region informGlobalRegion matchgroup=informType start="\<Global\>" matchgroup=NONE skip=+!.*$\|".*"\|'.*'+ end=";" contains=ALLBUT,informGramPreProc,informPredicate,informGrammar,informAsm,informAsmObsolete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword informGramPreProc contained Verb Extend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 if !exists("inform_highlight_simple")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword informLibAttrib absent animate clothing concealed container
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword informLibAttrib door edible enterable female general light
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword informLibAttrib lockable locked male moved neuter on open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword informLibAttrib openable pluralname proper scenery scored
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword informLibAttrib static supporter switchable talkable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword informLibAttrib visited workflag worn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match informLibAttrib "\<transparent\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword informLibProp e_to se_to s_to sw_to w_to nw_to n_to ne_to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword informLibProp u_to d_to in_to out_to before after life
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword informLibProp door_to with_key door_dir invent plural
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword informLibProp add_to_scope list_together react_before
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword informLibProp react_after grammar orders initial when_open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword informLibProp when_closed when_on when_off description
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword informLibProp describe article cant_go found_in time_left
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword informLibProp number time_out daemon each_turn capacity
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword informLibProp name short_name short_name_indef parse_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword informLibProp articles inside_description
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword informLibProp compass_look before_implicit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword informLibProp ext_initialise ext_messages
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword informLibObj e_obj se_obj s_obj sw_obj w_obj nw_obj n_obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword informLibObj ne_obj u_obj d_obj in_obj out_obj compass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword informLibObj thedark selfobj player location second actor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword informLibObj noun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword informLibObj LibraryExtensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword informLibRoutine Achieved AfterRoutines AddToScope
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword informLibRoutine AllowPushDir Banner ChangeDefault
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword informLibRoutine ChangePlayer CommonAncestor DictionaryLookup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword informLibRoutine DisplayStatus DoMenu DrawStatusLine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword informLibRoutine EnglishNumber HasLightSource GetGNAOfObject
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword informLibRoutine IndirectlyContains IsSeeThrough Locale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword informLibRoutine LoopOverScope LTI_Insert MoveFloatingObjects
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword informLibRoutine NextWord NextWordStopped NounDomain
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword informLibRoutine ObjectIsUntouchable OffersLight ParseToken
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword informLibRoutine PlaceInScope PlayerTo PrintShortName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword informLibRoutine PronounNotice ScopeWithin SetPronoun SetTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword informLibRoutine StartDaemon StartTimer StopDaemon StopTimer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword informLibRoutine TestScope TryNumber UnsignedCompare
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword informLibRoutine WordAddress WordInProperty WordLength
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword informLibRoutine WriteListFrom YesOrNo ZRegion RunRoutines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword informLibRoutine AfterLife AfterPrompt Amusing BeforeParsing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword informLibRoutine ChooseObjects DarkToDark DeathMessage
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword informLibRoutine GamePostRoutine GamePreRoutine Initialise
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword informLibRoutine InScope LookRoutine NewRoom ParseNoun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword informLibRoutine ParseNumber ParserError PrintRank PrintVerb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword informLibRoutine PrintTaskName TimePasses UnknownVerb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 if exists("inform_highlight_glulx")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword informLibRoutine IdentifyGlkObject HandleGlkEvent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword informLibRoutine InitGlkWindow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword informLibRoutine KeyCharPrimitive KeyDelay ClearScreen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword informLibRoutine MoveCursor MainWindow StatusLineHeight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword informLibRoutine ScreenWidth ScreenHeight SetColour
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword informLibRoutine DecimalNumber PrintToBuffer Length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword informLibRoutine UpperCase LowerCase PrintCapitalised
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword informLibRoutine Cap Centre
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 if exists("inform_highlight_glulx")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword informLibRoutine PrintAnything PrintAnyToArray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword informLibAction Quit Restart Restore Verify Save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword informLibAction ScriptOn ScriptOff Pronouns Score
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword informLibAction Fullscore LMode1 LMode2 LMode3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword informLibAction NotifyOn NotifyOff Version Places
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword informLibAction Objects TraceOn TraceOff TraceLevel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword informLibAction ActionsOn ActionsOff RoutinesOn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword informLibAction RoutinesOff TimersOn TimersOff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword informLibAction CommandsOn CommandsOff CommandsRead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword informLibAction Predictable XPurloin XAbstract XTree
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword informLibAction Scope Goto Gonear Inv InvTall InvWide
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword informLibAction Take Drop Remove PutOn Insert Transfer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword informLibAction Empty Enter Exit GetOff Go Goin Look
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword informLibAction Examine Search Give Show Unlock Lock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword informLibAction SwitchOn SwitchOff Open Close Disrobe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword informLibAction Wear Eat Yes No Burn Pray Wake
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword informLibAction WakeOther Consult Kiss Think Smell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword informLibAction Listen Taste Touch Dig Cut Jump
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword informLibAction JumpOver Tie Drink Fill Sorry Strong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword informLibAction Mild Attack Swim Swing Blow Rub Set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword informLibAction SetTo WaveHands Wave Pull Push PushDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword informLibAction Turn Squeeze LookUnder ThrowAt Tell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn keyword informLibAction Answer Buy Ask AskFor Sing Climb Wait
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword informLibAction Sleep LetGo Receive ThrownAt Order
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword informLibAction TheSame PluralFound Miscellany Prompt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword informLibAction ChangesOn ChangesOff Showverb Showobj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn keyword informLibAction EmptyT VagueGo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 if exists("inform_highlight_glulx")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword informLibAction GlkList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword informLibVariable keep_silent deadflag action special_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword informLibVariable consult_from consult_words etype verb_num
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword informLibVariable verb_word the_time real_location c_style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword informLibVariable parser_one parser_two listing_together wn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn keyword informLibVariable parser_action scope_stage scope_reason
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword informLibVariable action_to_be menu_item item_name item_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword informLibVariable lm_o lm_n inventory_style task_scores
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword informLibVariable inventory_stage
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword informLibConst AMUSING_PROVIDED DEBUG Headline MAX_CARRIED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn keyword informLibConst MAX_SCORE MAX_TIMERS NO_PLACES NUMBER_TASKS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword informLibConst OBJECT_SCORE ROOM_SCORE SACK_OBJECT Story
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword informLibConst TASKS_PROVIDED WITHOUT_DIRECTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword informLibConst NEWLINE_BIT INDENT_BIT FULLINV_BIT ENGLISH_BIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword informLibConst RECURSE_BIT ALWAYS_BIT TERSE_BIT PARTINV_BIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword informLibConst DEFART_BIT WORKFLAG_BIT ISARE_BIT CONCEAL_BIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword informLibConst PARSING_REASON TALKING_REASON EACHTURN_REASON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword informLibConst REACT_BEFORE_REASON REACT_AFTER_REASON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword informLibConst TESTSCOPE_REASON LOOPOVERSCOPE_REASON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn keyword informLibConst STUCK_PE UPTO_PE NUMBER_PE CANTSEE_PE TOOLIT_PE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword informLibConst NOTHELD_PE MULTI_PE MMULTI_PE VAGUE_PE EXCEPT_PE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword informLibConst ANIMA_PE VERB_PE SCENERY_PE ITGONE_PE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword informLibConst JUNKAFTER_PE TOOFEW_PE NOTHING_PE ASKSCOPE_PE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword informLibConst WORDSIZE TARGET_ZCODE TARGET_GLULX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword informLibConst LIBRARY_PARSER LIBRARY_VERBLIB LIBRARY_GRAMMAR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword informLibConst LIBRARY_ENGLISH NO_SCORE START_MOVE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword informLibConst CLR_DEFAULT CLR_BLACK CLR_RED CLR_GREEN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword informLibConst CLR_YELLOW CLR_BLUE CLR_MAGENTA CLR_CYAN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword informLibConst CLR_WHITE CLR_PURPLE CLR_AZURE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn keyword informLibConst WIN_ALL WIN_MAIN WIN_STATUS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 " Now the case sensitive stuff.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syntax case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn keyword informSysFunc child children elder indirect parent random
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword informSysFunc sibling younger youngest metaclass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 if exists("inform_highlight_glulx")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn keyword informSysFunc glk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword informSysConst adjectives_table actions_table classes_table
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn keyword informSysConst identifiers_table preactions_table version_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword informSysConst largest_object strings_offset code_offset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn keyword informSysConst dict_par1 dict_par2 dict_par3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword informSysConst actual_largest_object static_memory_offset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword informSysConst array_names_offset readable_memory_offset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn keyword informSysConst cpv__start cpv__end ipv__start ipv__end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn keyword informSysConst array__start array__end lowest_attribute_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn keyword informSysConst highest_attribute_number attribute_names_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn keyword informSysConst lowest_property_number highest_property_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn keyword informSysConst property_names_array lowest_action_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn keyword informSysConst highest_action_number action_names_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword informSysConst lowest_fake_action_number highest_fake_action_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn keyword informSysConst fake_action_names_array lowest_routine_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn keyword informSysConst highest_routine_number routines_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn keyword informSysConst routine_names_array routine_flags_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn keyword informSysConst lowest_global_number highest_global_number globals_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn keyword informSysConst global_names_array global_flags_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn keyword informSysConst lowest_array_number highest_array_number arrays_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn keyword informSysConst array_names_array array_flags_array lowest_constant_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn keyword informSysConst highest_constant_number constants_array constant_names_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn keyword informSysConst lowest_class_number highest_class_number class_objects_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn keyword informSysConst lowest_object_number highest_object_number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn keyword informSysConst sys_statusline_flag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn keyword informConditional default else if switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn keyword informRepeat break continue do for objectloop until while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn keyword informStatement box font give inversion jump move new_line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn keyword informStatement print print_ret quit read remove restore return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn keyword informStatement rfalse rtrue save spaces string style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn keyword informOperator roman reverse bold underline fixed on off to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn keyword informOperator near from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 syn keyword informKeyword dictionary symbols objects verbs assembly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn keyword informKeyword expressions lines tokens linker on off alias long
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn keyword informKeyword additive score time string table
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn keyword informKeyword with private has class error fatalerror
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn keyword informKeyword warning self
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn keyword informKeyword buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn keyword informMetaAttrib remaining create destroy recreate copy call
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn keyword informMetaAttrib print_to_array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn keyword informPredicate has hasnt in notin ofclass or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn keyword informPredicate provides
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn keyword informGrammar contained noun held multi multiheld multiexcept
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 syn keyword informGrammar contained multiinside creature special number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 syn keyword informGrammar contained scope topic reverse meta only replace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn keyword informGrammar contained first last
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 syn keyword informKeywordObsolete contained initial data initstr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 syn keyword informTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 " Assembly language mnemonics must be preceded by a '@'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 syn match informAsmContainer "@\s*\k*" contains=informAsm,informAsmObsolete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 if exists("inform_highlight_glulx")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn keyword informAsm contained nop add sub mul div mod neg bitand bitor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 syn keyword informAsm contained bitxor bitnot shiftl sshiftr ushiftr jump jz
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn keyword informAsm contained jnz jeq jne jlt jge jgt jle jltu jgeu jgtu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn keyword informAsm contained jleu call return catch throw tailcall copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn keyword informAsm contained copys copyb sexs sexb aload aloads aloadb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn keyword informAsm contained aloadbit astore astores astoreb astorebit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 syn keyword informAsm contained stkcount stkpeek stkswap stkroll stkcopy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 syn keyword informAsm contained streamchar streamnum streamstr gestalt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 syn keyword informAsm contained debugtrap getmemsize setmemsize jumpabs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 syn keyword informAsm contained random setrandom quit verify restart save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 syn keyword informAsm contained restore saveundo restoreundo protect glk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 syn keyword informAsm contained getstringtbl setstringtbl getiosys setiosys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn keyword informAsm contained linearsearch binarysearch linkedsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn keyword informAsm contained callf callfi callfii callfiii
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 syn keyword informAsm contained je jl jg dec_chk inc_chk jin test or and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 syn keyword informAsm contained test_attr set_attr clear_attr store
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 syn keyword informAsm contained insert_obj loadw loadb get_prop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn keyword informAsm contained get_prop_addr get_next_prop add sub mul div
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 syn keyword informAsm contained mod call storew storeb put_prop sread
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 syn keyword informAsm contained print_num random push pull
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 syn keyword informAsm contained split_window set_window output_stream
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 syn keyword informAsm contained input_stream sound_effect jz get_sibling
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 syn keyword informAsm contained get_child get_parent get_prop_len inc dec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn keyword informAsm contained remove_obj print_obj ret jump
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 syn keyword informAsm contained load not rtrue rfalse print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 syn keyword informAsm contained print_ret nop save restore restart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 syn keyword informAsm contained ret_popped pop quit new_line show_status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 syn keyword informAsm contained verify call_2s call_vs aread call_vs2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 syn keyword informAsm contained erase_window erase_line set_cursor get_cursor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 syn keyword informAsm contained set_text_style buffer_mode read_char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 syn keyword informAsm contained scan_table call_1s call_2n set_colour throw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 syn keyword informAsm contained call_vn call_vn2 tokenise encode_text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 syn keyword informAsm contained copy_table print_table check_arg_count
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 syn keyword informAsm contained call_1n catch piracy log_shift art_shift
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 syn keyword informAsm contained set_font save_undo restore_undo draw_picture
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 syn keyword informAsm contained picture_data erase_picture set_margins
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 syn keyword informAsm contained move_window window_size window_style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 syn keyword informAsm contained get_wind_prop scroll_window pop_stack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 syn keyword informAsm contained read_mouse mouse_window push_stack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 syn keyword informAsm contained put_wind_prop print_form make_menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 syn keyword informAsm contained picture_table
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 if !exists("inform_highlight_old")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 syn keyword informAsm contained check_unicode print_unicode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 syn keyword informAsmObsolete contained print_paddr print_addr print_char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 " Handling for different versions of VIM.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 setlocal iskeyword+=$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 command -nargs=+ SynDisplay syntax <args> display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 set iskeyword+=$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 command -nargs=+ SynDisplay syntax <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 " Grammar sections.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 syn region informGrammarSection matchgroup=informGramPreProc start="\<Verb\|Extend\>" skip=+".*"+ end=";"he=e-1 contains=ALLBUT,informAsm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 " Special character forms.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 SynDisplay match informBadAccent contained "@[^{[:digit:]]\D"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 SynDisplay match informBadAccent contained "@{[^}]*}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 SynDisplay match informAccent contained "@:[aouAOUeiyEI]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 SynDisplay match informAccent contained "@'[aeiouyAEIOUY]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 SynDisplay match informAccent contained "@`[aeiouAEIOU]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 SynDisplay match informAccent contained "@\^[aeiouAEIOU]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 SynDisplay match informAccent contained "@\~[anoANO]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 SynDisplay match informAccent contained "@/[oO]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 SynDisplay match informAccent contained "@ss\|@<<\|@>>\|@oa\|@oA\|@ae\|@AE\|@cc\|@cC"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 SynDisplay match informAccent contained "@th\|@et\|@Th\|@Et\|@LL\|@oe\|@OE\|@!!\|@??"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 SynDisplay match informAccent contained "@{\x\{1,4}}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 SynDisplay match informBadStrUnicode contained "@@\D"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 SynDisplay match informStringUnicode contained "@@\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 SynDisplay match informStringCode contained "@\d\d"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 " String and Character constants. Ordering is important here.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 syn region informString start=+"+ skip=+\\\\+ end=+"+ contains=informAccent,informStringUnicode,informStringCode,informBadAccent,informBadStrUnicode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 syn region informDictString start="'" end="'" contains=informAccent,informBadAccent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 SynDisplay match informBadDictString "''"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 SynDisplay match informDictString "'''"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 " Integer numbers: decimal, hexadecimal and binary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 SynDisplay match informNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 SynDisplay match informNumber "\<\$\x\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 SynDisplay match informNumber "\<\$\$[01]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 syn match informComment "!.*" contains=informTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 " Syncronization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 syn sync match informSyncStringEnd grouphere NONE /"[;,]\s*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 syn sync match informSyncRoutineEnd grouphere NONE /][;,]\s*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 syn sync match informSyncCommentEnd grouphere NONE /^\s*!.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 syn sync match informSyncRoutine groupthere informGrammarSection "\<Verb\|Extend\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 syn sync maxlines=500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 delcommand SynDisplay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 " The default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 if version >= 508 || !exists("did_inform_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 let did_inform_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 HiLink informDefine Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 HiLink informType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 HiLink informInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 HiLink informPreCondit PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 HiLink informPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 HiLink informGramPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 HiLink informAsm Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 if !exists("inform_suppress_obsolete")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 HiLink informAsmObsolete informError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 HiLink informKeywordObsolete informError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 HiLink informAsmObsolete Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 HiLink informKeywordObsolete Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 HiLink informPredicate Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 HiLink informSysFunc Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 HiLink informSysConst Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 HiLink informConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 HiLink informRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 HiLink informStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 HiLink informOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 HiLink informKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 HiLink informGrammar Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 HiLink informDictString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 HiLink informNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 HiLink informError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 HiLink informString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 HiLink informComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 HiLink informAccent Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 HiLink informStringUnicode Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 HiLink informStringCode Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 HiLink informTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 if !exists("inform_highlight_simple")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 HiLink informLibAttrib Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 HiLink informLibProp Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 HiLink informLibObj Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 HiLink informLibRoutine Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 HiLink informLibVariable Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 HiLink informLibConst Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 HiLink informLibAction Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 HiLink informBadDictString informError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 HiLink informBadAccent informError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 HiLink informBadStrUnicode informError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 let b:current_syntax = "inform"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 " vim: ts=8