annotate runtime/syntax/inform.vim @ 27784:bfce04a99561 v8.2.4418

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