Mercurial > vim
comparison runtime/syntax/tsscl.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 | 3fc0f57ecb91 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
6 " URL: http://www.naglenet.org/vim/syntax/tsscl.vim | 6 " URL: http://www.naglenet.org/vim/syntax/tsscl.vim |
7 " MAIN URL: http://www.naglenet.org/vim/ | 7 " MAIN URL: http://www.naglenet.org/vim/ |
8 | 8 |
9 | 9 |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " quit when a syntax file was already loaded |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 if exists("b:current_syntax") |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | 13 finish |
17 endif | 14 endif |
18 | 15 |
19 | 16 |
20 | 17 |
177 syn match tssclScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" | 174 syn match tssclScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>" |
178 | 175 |
179 | 176 |
180 | 177 |
181 " Define the default highlighting | 178 " Define the default highlighting |
182 " For version 5.7 and earlier: only when not done already | 179 " Only when an item doesn't have highlighting yet |
183 " For version 5.8 and later: only when an item doesn't have highlighting yet | 180 command -nargs=+ HiLink hi def link <args> |
184 if version >= 508 || !exists("did_tsscl_syntax_inits") | 181 |
185 if version < 508 | 182 HiLink tssclCommand Statement |
186 let did_tsscl_syntax_inits = 1 | 183 HiLink tssclKeyword Special |
187 command -nargs=+ HiLink hi link <args> | 184 HiLink tssclEnd Macro |
188 else | 185 HiLink tssclUnits Special |
189 command -nargs=+ HiLink hi def link <args> | 186 |
190 endif | 187 HiLink tssclComment Comment |
191 | 188 HiLink tssclDirective Statement |
192 HiLink tssclCommand Statement | 189 HiLink tssclConditional Conditional |
193 HiLink tssclKeyword Special | 190 HiLink tssclContChar Macro |
194 HiLink tssclEnd Macro | 191 HiLink tssclQualifier Typedef |
195 HiLink tssclUnits Special | 192 HiLink tssclSymbol Identifier |
196 | 193 HiLink tssclSymbol2 Symbol |
197 HiLink tssclComment Comment | 194 HiLink tssclString String |
198 HiLink tssclDirective Statement | 195 HiLink tssclOper Operator |
199 HiLink tssclConditional Conditional | 196 |
200 HiLink tssclContChar Macro | 197 HiLink tssclInteger Number |
201 HiLink tssclQualifier Typedef | 198 HiLink tssclFloat Number |
202 HiLink tssclSymbol Identifier | 199 HiLink tssclScientific Number |
203 HiLink tssclSymbol2 Symbol | 200 |
204 HiLink tssclString String | 201 delcommand HiLink |
205 HiLink tssclOper Operator | |
206 | |
207 HiLink tssclInteger Number | |
208 HiLink tssclFloat Number | |
209 HiLink tssclScientific Number | |
210 | |
211 delcommand HiLink | |
212 endif | |
213 | 202 |
214 | 203 |
215 let b:current_syntax = "tsscl" | 204 let b:current_syntax = "tsscl" |
216 | 205 |
217 " vim: ts=8 sw=2 | 206 " vim: ts=8 sw=2 |