Mercurial > vim
comparison runtime/syntax/ratpoison.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 | 0877b8d6370e |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
3 " Maintainer: Magnus Woldrich <m@japh.se> | 3 " Maintainer: Magnus Woldrich <m@japh.se> |
4 " URL: http://github.com/trapd00r/vim-syntax-ratpoison | 4 " URL: http://github.com/trapd00r/vim-syntax-ratpoison |
5 " Last Change: 2011 Apr 11 | 5 " Last Change: 2011 Apr 11 |
6 " Previous Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au> | 6 " Previous Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au> |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " quit when a syntax file was already loaded |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 if exists("b:current_syntax") |
10 if version < 600 | |
11 syntax clear | |
12 elseif exists("b:current_syntax") | |
13 finish | 10 finish |
14 endif | 11 endif |
15 | 12 |
16 syn match ratpoisonComment "^\s*#.*$" contains=ratpoisonTodo | 13 syn match ratpoisonComment "^\s*#.*$" contains=ratpoisonTodo |
17 | 14 |
245 syn match ratpoisonVoidCommand "^\s*\zsversion\ze\s*$" | 242 syn match ratpoisonVoidCommand "^\s*\zsversion\ze\s*$" |
246 syn match ratpoisonVoidCommand "^\s*\zsvsplit\ze\s*$" | 243 syn match ratpoisonVoidCommand "^\s*\zsvsplit\ze\s*$" |
247 syn match ratpoisonVoidCommand "^\s*\zswindows\ze\s*$" | 244 syn match ratpoisonVoidCommand "^\s*\zswindows\ze\s*$" |
248 | 245 |
249 " Define the default highlighting. | 246 " Define the default highlighting. |
250 " For version 5.7 and earlier: only when not done already | 247 " Only when an item doesn't have highlighting yet |
251 " For version 5.8 and later: only when an item doesn't have highlighting yet | 248 command -nargs=+ HiLink hi def link <args> |
252 if version >= 508 || !exists("did_ratpoison_syn_inits") | 249 |
253 if version < 508 | 250 HiLink ratpoisonBooleanArg Boolean |
254 let did_ratpoison_syn_inits = 1 | 251 HiLink ratpoisonCommandArg Keyword |
255 command -nargs=+ HiLink hi link <args> | 252 HiLink ratpoisonComment Comment |
256 else | 253 HiLink ratpoisonDefCommand Identifier |
257 command -nargs=+ HiLink hi def link <args> | 254 HiLink ratpoisonGravityArg Constant |
258 endif | 255 HiLink ratpoisonKeySeqArg Special |
259 | 256 HiLink ratpoisonNumberArg Number |
260 HiLink ratpoisonBooleanArg Boolean | 257 HiLink ratpoisonSetArg Keyword |
261 HiLink ratpoisonCommandArg Keyword | 258 HiLink ratpoisonStringCommand Identifier |
262 HiLink ratpoisonComment Comment | 259 HiLink ratpoisonTodo Todo |
263 HiLink ratpoisonDefCommand Identifier | 260 HiLink ratpoisonVoidCommand Identifier |
264 HiLink ratpoisonGravityArg Constant | 261 HiLink ratpoisonWinFmtArg Special |
265 HiLink ratpoisonKeySeqArg Special | 262 HiLink ratpoisonWinNameArg Constant |
266 HiLink ratpoisonNumberArg Number | 263 HiLink ratpoisonWinListArg Constant |
267 HiLink ratpoisonSetArg Keyword | 264 |
268 HiLink ratpoisonStringCommand Identifier | 265 delcommand HiLink |
269 HiLink ratpoisonTodo Todo | |
270 HiLink ratpoisonVoidCommand Identifier | |
271 HiLink ratpoisonWinFmtArg Special | |
272 HiLink ratpoisonWinNameArg Constant | |
273 HiLink ratpoisonWinListArg Constant | |
274 | |
275 delcommand HiLink | |
276 endif | |
277 | 266 |
278 let b:current_syntax = "ratpoison" | 267 let b:current_syntax = "ratpoison" |
279 | 268 |
280 " vim: ts=8 | 269 " vim: ts=8 |