Mercurial > vim
comparison runtime/syntax/tsalt.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 | b7811ab264bf |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
2 " Language: Telix (Modem Comm Program) SALT Script | 2 " Language: Telix (Modem Comm Program) SALT Script |
3 " Maintainer: Sean M. McKee <mckee@misslink.net> | 3 " Maintainer: Sean M. McKee <mckee@misslink.net> |
4 " Last Change: 2012 Feb 03 by Thilo Six | 4 " Last Change: 2012 Feb 03 by Thilo Six |
5 " Version Info: @(#)tsalt.vim 1.5 97/12/16 08:11:15 | 5 " Version Info: @(#)tsalt.vim 1.5 97/12/16 08:11:15 |
6 | 6 |
7 " For version 5.x: Clear all syntax items | 7 " quit when a syntax file was already loaded |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 if exists("b:current_syntax") |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | 9 finish |
13 endif | 10 endif |
14 | 11 |
15 let s:cpo_save = &cpo | 12 let s:cpo_save = &cpo |
16 set cpo&vim | 13 set cpo&vim |
169 | 166 |
170 syn sync ccomment tsaltComment | 167 syn sync ccomment tsaltComment |
171 | 168 |
172 | 169 |
173 " Define the default highlighting. | 170 " Define the default highlighting. |
174 " For version 5.7 and earlier: only when not done already | 171 " Only when an item doesn't have highlighting yet |
175 " For version 5.8 and later: only when an item doesn't have highlighting yet | 172 command -nargs=+ HiLink hi def link <args> |
176 if version >= 508 || !exists("did_tsalt_syntax_inits") | 173 |
177 if version < 508 | 174 HiLink tsaltFunction Statement |
178 let did_tsalt_syntax_inits = 1 | 175 HiLink tsaltSysVar Type |
179 command -nargs=+ HiLink hi link <args> | 176 "HiLink tsaltLibFunc UserDefFunc |
180 else | 177 "HiLink tsaltConstants Type |
181 command -nargs=+ HiLink hi def link <args> | 178 "HiLink tsaltFuncArg Type |
182 endif | 179 "HiLink tsaltOperator Operator |
183 | 180 "HiLink tsaltLabel Label |
184 HiLink tsaltFunction Statement | 181 "HiLink tsaltUserLabel Label |
185 HiLink tsaltSysVar Type | 182 HiLink tsaltConditional Conditional |
186 "HiLink tsaltLibFunc UserDefFunc | 183 HiLink tsaltRepeat Repeat |
187 "HiLink tsaltConstants Type | 184 HiLink tsaltCharacter SpecialChar |
188 "HiLink tsaltFuncArg Type | 185 HiLink tsaltSpecialCharacter SpecialChar |
189 "HiLink tsaltOperator Operator | 186 HiLink tsaltNumber Number |
190 "HiLink tsaltLabel Label | 187 HiLink tsaltFloat Float |
191 "HiLink tsaltUserLabel Label | 188 HiLink tsaltCommentError tsaltError |
192 HiLink tsaltConditional Conditional | 189 HiLink tsaltInclude Include |
193 HiLink tsaltRepeat Repeat | 190 HiLink tsaltPreProc PreProc |
194 HiLink tsaltCharacter SpecialChar | 191 HiLink tsaltDefine Macro |
195 HiLink tsaltSpecialCharacter SpecialChar | 192 HiLink tsaltIncluded tsaltString |
196 HiLink tsaltNumber Number | 193 HiLink tsaltError Error |
197 HiLink tsaltFloat Float | 194 HiLink tsaltStatement Statement |
198 HiLink tsaltCommentError tsaltError | 195 HiLink tsaltPreCondit PreCondit |
199 HiLink tsaltInclude Include | 196 HiLink tsaltType Type |
200 HiLink tsaltPreProc PreProc | 197 HiLink tsaltString String |
201 HiLink tsaltDefine Macro | 198 HiLink tsaltComment Comment |
202 HiLink tsaltIncluded tsaltString | 199 HiLink tsaltSpecial Special |
203 HiLink tsaltError Error | 200 HiLink tsaltTodo Todo |
204 HiLink tsaltStatement Statement | 201 |
205 HiLink tsaltPreCondit PreCondit | 202 delcommand HiLink |
206 HiLink tsaltType Type | |
207 HiLink tsaltString String | |
208 HiLink tsaltComment Comment | |
209 HiLink tsaltSpecial Special | |
210 HiLink tsaltTodo Todo | |
211 | |
212 delcommand HiLink | |
213 endif | |
214 | 203 |
215 let b:current_syntax = "tsalt" | 204 let b:current_syntax = "tsalt" |
216 | 205 |
217 let &cpo = s:cpo_save | 206 let &cpo = s:cpo_save |
218 unlet s:cpo_save | 207 unlet s:cpo_save |