diff options
Diffstat (limited to 'runtime/syntax/sshconfig.vim')
-rw-r--r-- | runtime/syntax/sshconfig.vim | 74 |
1 files changed, 30 insertions, 44 deletions
diff --git a/runtime/syntax/sshconfig.vim b/runtime/syntax/sshconfig.vim index 302d073f1..051b2f9a8 100644 --- a/runtime/syntax/sshconfig.vim +++ b/runtime/syntax/sshconfig.vim @@ -10,19 +10,12 @@ " " 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 -if version >= 600 - setlocal iskeyword=_,-,a-z,A-Z,48-57 -else - set iskeyword=_,-,a-z,A-Z,48-57 -endif +setlocal iskeyword=_,-,a-z,A-Z,48-57 " case on @@ -233,40 +226,33 @@ syn keyword sshconfigKeyword VisualHostKey syn keyword sshconfigKeyword XAuthLocation " Define the default highlighting -if version >= 508 || !exists("did_sshconfig_syntax_inits") - if version < 508 - let did_sshconfig_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 sshconfigComment Comment - HiLink sshconfigTodo Todo - HiLink sshconfigHostPort sshconfigConstant - HiLink sshconfigNumber sshconfigConstant - HiLink sshconfigConstant Constant - HiLink sshconfigYesNo sshconfigEnum - HiLink sshconfigCipher sshconfigEnum - HiLink sshconfigCiphers sshconfigEnum - HiLink sshconfigMAC sshconfigEnum - HiLink sshconfigHostKeyAlgo sshconfigEnum - HiLink sshconfigLogLevel sshconfigEnum - HiLink sshconfigSysLogFacility sshconfigEnum - HiLink sshconfigAddressFamily sshconfigEnum - HiLink sshconfigIPQoS sshconfigEnum - HiLink sshconfigKbdInteractive sshconfigEnum - HiLink sshconfigKexAlgo sshconfigEnum - HiLink sshconfigTunnel sshconfigEnum - HiLink sshconfigPreferredAuth sshconfigEnum - HiLink sshconfigVar sshconfigEnum - HiLink sshconfigEnum Identifier - HiLink sshconfigSpecial Special - HiLink sshconfigKeyword Keyword - HiLink sshconfigHostSect Type - HiLink sshconfigMatch Type - delcommand HiLink -endif +HiLink sshconfigComment Comment +HiLink sshconfigTodo Todo +HiLink sshconfigHostPort sshconfigConstant +HiLink sshconfigNumber sshconfigConstant +HiLink sshconfigConstant Constant +HiLink sshconfigYesNo sshconfigEnum +HiLink sshconfigCipher sshconfigEnum +HiLink sshconfigCiphers sshconfigEnum +HiLink sshconfigMAC sshconfigEnum +HiLink sshconfigHostKeyAlgo sshconfigEnum +HiLink sshconfigLogLevel sshconfigEnum +HiLink sshconfigSysLogFacility sshconfigEnum +HiLink sshconfigAddressFamily sshconfigEnum +HiLink sshconfigIPQoS sshconfigEnum +HiLink sshconfigKbdInteractive sshconfigEnum +HiLink sshconfigKexAlgo sshconfigEnum +HiLink sshconfigTunnel sshconfigEnum +HiLink sshconfigPreferredAuth sshconfigEnum +HiLink sshconfigVar sshconfigEnum +HiLink sshconfigEnum Identifier +HiLink sshconfigSpecial Special +HiLink sshconfigKeyword Keyword +HiLink sshconfigHostSect Type +HiLink sshconfigMatch Type +delcommand HiLink let b:current_syntax = "sshconfig" |