diff options
Diffstat (limited to 'runtime/syntax/sindacmp.vim')
-rw-r--r-- | runtime/syntax/sindacmp.vim | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/runtime/syntax/sindacmp.vim b/runtime/syntax/sindacmp.vim index 87b483409a..28c3cdc0ea 100644 --- a/runtime/syntax/sindacmp.vim +++ b/runtime/syntax/sindacmp.vim @@ -8,11 +8,8 @@ -" For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded -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 @@ -45,28 +42,20 @@ syn match sindacmpFloat "-\=\<[0-9]*\.[0-9]*" " Define the default highlighting -" For version 5.7 and earlier: only when not done already -" For version 5.8 and later: only when an item doesn't have highlighting yet -if version >= 508 || !exists("did_sindacmp_syntax_inits") - if version < 508 - let did_sindacmp_syntax_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif +" Only when an item doesn't have highlighting yet +command -nargs=+ HiLink hi def link <args> - HiLink sindacmpTitle Type - HiLink sindacmpUnit PreProc +HiLink sindacmpTitle Type +HiLink sindacmpUnit PreProc - HiLink sindacmpLabel Statement +HiLink sindacmpLabel Statement - HiLink sindacmpHeader sindaHeader +HiLink sindacmpHeader sindaHeader - HiLink sindacmpInteger Number - HiLink sindacmpFloat Special +HiLink sindacmpInteger Number +HiLink sindacmpFloat Special - delcommand HiLink -endif +delcommand HiLink let b:current_syntax = "sindacmp" |