diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-30 23:26:57 +0200 |
commit | 89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch) | |
tree | 2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/inittab.vim | |
parent | 4792255eff03760dca0fd014616532e6d47db364 (diff) | |
download | vim-89bcfda6834aba724d12554a34b9ed49f5789fd5.zip |
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/inittab.vim')
-rw-r--r-- | runtime/syntax/inittab.vim | 46 |
1 files changed, 18 insertions, 28 deletions
diff --git a/runtime/syntax/inittab.vim b/runtime/syntax/inittab.vim index b7472f9e0..a743c82f8 100644 --- a/runtime/syntax/inittab.vim +++ b/runtime/syntax/inittab.vim @@ -6,12 +6,9 @@ " URL: http://physics.muni.cz/~yeti/download/syntax/inittab.vim " Setup -if version >= 600 - if exists("b:current_syntax") - finish - endif -else - syntax clear +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish endif syn case match @@ -45,31 +42,24 @@ syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError syn region inittabProcess start="/" end="$" transparent oneline contained contains=@inittabSh,inittabComment " Define the default highlighting -if version >= 508 || !exists("did_inittab_syntax_inits") - if version < 508 - let did_inittab_syntax_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif +command -nargs=+ HiLink hi def link <args> - HiLink inittabComment Comment - HiLink inittabFixme Todo - HiLink inittabActionName Type - HiLink inittabError Error - HiLink inittabId Identifier - HiLink inittabRunLevels Special +HiLink inittabComment Comment +HiLink inittabFixme Todo +HiLink inittabActionName Type +HiLink inittabError Error +HiLink inittabId Identifier +HiLink inittabRunLevels Special - HiLink inittabColonProcess inittabColon - HiLink inittabColonAction inittabColon - HiLink inittabColonRunLevels inittabColon - HiLink inittabColon PreProc +HiLink inittabColonProcess inittabColon +HiLink inittabColonAction inittabColon +HiLink inittabColonRunLevels inittabColon +HiLink inittabColon PreProc - HiLink inittabShString String - HiLink inittabShOption Special - HiLink inittabShCommand Statement +HiLink inittabShString String +HiLink inittabShOption Special +HiLink inittabShCommand Statement - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "inittab" |