From 89bcfda6834aba724d12554a34b9ed49f5789fd5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 30 Aug 2016 23:26:57 +0200 Subject: Updated runtime files. Remove version checks for Vim older than 6.0. --- runtime/syntax/sqlj.vim | 41 ++++++++++++++++------------------------- 1 file changed, 16 insertions(+), 25 deletions(-) (limited to 'runtime/syntax/sqlj.vim') diff --git a/runtime/syntax/sqlj.vim b/runtime/syntax/sqlj.vim index 51398ef9c..ea8d7ecb6 100644 --- a/runtime/syntax/sqlj.vim +++ b/runtime/syntax/sqlj.vim @@ -8,10 +8,8 @@ " au BufNewFile,BufRead *.sqlj so $VIM/syntax/sqlj.vim -" Remove any old syntax stuff hanging around -if version < 600 - syntax clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax") finish endif @@ -76,27 +74,20 @@ syn match sqlComment "--.*" syn sync ccomment sqljComment -if version >= 508 || !exists("did_sqlj_syn_inits") - if version < 508 - let did_sqlj_syn_inits = 1 - command! -nargs=+ HiLink hi link - else - command! -nargs=+ HiLink hi def link - endif - - " The default methods for highlighting. Can be overridden later. - HiLink sqljComment Comment - HiLink sqljKeyword sqljSpecial - HiLink sqljNumber Number - HiLink sqljOperator sqljStatement - HiLink sqljSpecial Special - HiLink sqljStatement Statement - HiLink sqljString String - HiLink sqljType Type - HiLink sqljPre PreProc - - delcommand HiLink -endif +command! -nargs=+ HiLink hi def link + +" The default methods for highlighting. Can be overridden later. +HiLink sqljComment Comment +HiLink sqljKeyword sqljSpecial +HiLink sqljNumber Number +HiLink sqljOperator sqljStatement +HiLink sqljSpecial Special +HiLink sqljStatement Statement +HiLink sqljString String +HiLink sqljType Type +HiLink sqljPre PreProc + +delcommand HiLink let b:current_syntax = "sqlj" -- cgit v1.2.1