comparison runtime/syntax/tads.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 7bc41231fbc7
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
11 " global, self, etc. are special *objects*, not functions. They should 11 " global, self, etc. are special *objects*, not functions. They should
12 " probably be a different color than the special functions 12 " probably be a different color than the special functions
13 " Actually, should cvtstr etc. be functions?! (change tadsFunction) 13 " Actually, should cvtstr etc. be functions?! (change tadsFunction)
14 " Make global etc. into Identifiers, since we don't have regular variables? 14 " Make global etc. into Identifiers, since we don't have regular variables?
15 15
16 " For version 5.x: Clear all syntax items 16 " quit when a syntax file was already loaded
17 " For version 6.x: Quit when a syntax file was already loaded 17 if exists("b:current_syntax")
18 if version < 600
19 syntax clear
20 elseif exists("b:current_syntax")
21 finish 18 finish
22 endif 19 endif
23 20
24 " A bunch of useful keywords 21 " A bunch of useful keywords
25 syn keyword tadsStatement goto break return continue pass 22 syn keyword tadsStatement goto break return continue pass
120 let tads_sync_dist = 100 117 let tads_sync_dist = 100
121 endif 118 endif
122 execute "syn sync maxlines=" . tads_sync_dist 119 execute "syn sync maxlines=" . tads_sync_dist
123 120
124 " Define the default highlighting. 121 " Define the default highlighting.
125 " For version 5.7 and earlier: only when not done already 122 " Only when an item doesn't have highlighting yet
126 " For version 5.8 and later: only when an item doesn't have highlighting yet 123 command -nargs=+ HiLink hi def link <args>
127 if version >= 508 || !exists("did_tads_syn_inits")
128 if version < 508
129 let did_tads_syn_inits = 1
130 command -nargs=+ HiLink hi link <args>
131 else
132 command -nargs=+ HiLink hi def link <args>
133 endif
134 124
135 " The default methods for highlighting. Can be overridden later 125 " The default methods for highlighting. Can be overridden later
136 HiLink tadsFunctionDef Function 126 HiLink tadsFunctionDef Function
137 HiLink tadsFunction Structure 127 HiLink tadsFunction Structure
138 HiLink tadsClass Structure 128 HiLink tadsClass Structure
139 HiLink tadsClassDef Identifier 129 HiLink tadsClassDef Identifier
140 HiLink tadsObjectDef Identifier 130 HiLink tadsObjectDef Identifier
141 " no highlight for tadsEmbedded, so it prints as normal text w/in the string 131 " no highlight for tadsEmbedded, so it prints as normal text w/in the string
142 132
143 HiLink tadsOperator Operator 133 HiLink tadsOperator Operator
144 HiLink tadsStructure Structure 134 HiLink tadsStructure Structure
145 HiLink tadsTodo Todo 135 HiLink tadsTodo Todo
146 HiLink tadsLabel Label 136 HiLink tadsLabel Label
147 HiLink tadsConditional Conditional 137 HiLink tadsConditional Conditional
148 HiLink tadsRepeat Repeat 138 HiLink tadsRepeat Repeat
149 HiLink tadsException Exception 139 HiLink tadsException Exception
150 HiLink tadsStatement Statement 140 HiLink tadsStatement Statement
151 HiLink tadsStorageClass StorageClass 141 HiLink tadsStorageClass StorageClass
152 HiLink tadsKeyWord Keyword 142 HiLink tadsKeyWord Keyword
153 HiLink tadsSpecial SpecialChar 143 HiLink tadsSpecial SpecialChar
154 HiLink tadsNumber Number 144 HiLink tadsNumber Number
155 HiLink tadsBoolean Boolean 145 HiLink tadsBoolean Boolean
156 HiLink tadsDoubleString tadsString 146 HiLink tadsDoubleString tadsString
157 HiLink tadsSingleString tadsString 147 HiLink tadsSingleString tadsString
158 148
159 HiLink tadsOctalError tadsError 149 HiLink tadsOctalError tadsError
160 HiLink tadsCommentError tadsError 150 HiLink tadsCommentError tadsError
161 HiLink tadsBraceError tadsError 151 HiLink tadsBraceError tadsError
162 HiLink tadsInBrace tadsError 152 HiLink tadsInBrace tadsError
163 HiLink tadsError Error 153 HiLink tadsError Error
164 154
165 HiLink tadsInclude Include 155 HiLink tadsInclude Include
166 HiLink tadsPreProc PreProc 156 HiLink tadsPreProc PreProc
167 HiLink tadsDefine Macro 157 HiLink tadsDefine Macro
168 HiLink tadsIncluded tadsString 158 HiLink tadsIncluded tadsString
169 HiLink tadsPreCondit PreCondit 159 HiLink tadsPreCondit PreCondit
170 160
171 HiLink tadsString String 161 HiLink tadsString String
172 HiLink tadsComment Comment 162 HiLink tadsComment Comment
173 163
174 delcommand HiLink 164 delcommand HiLink
175 endif
176 165
177 166
178 let b:current_syntax = "tads" 167 let b:current_syntax = "tads"
179 168
180 " Changes: 169 " Changes: