1" Vim syntax file 2" This is a GENERATED FILE. Please always refer to source file at the URI below. 3" Language: OpenSSH server configuration file (sshd_config) 4" Maintainer: David Ne\v{c}as (Yeti) <[email protected]> 5" Last Change: 2003-05-06 6" URL: http://trific.ath.cx/Ftp/vim/syntax/sshdconfig.vim 7 8" Setup 9if version >= 600 10 if exists("b:current_syntax") 11 finish 12 endif 13else 14 syntax clear 15endif 16 17if version >= 600 18 setlocal iskeyword=_,-,a-z,A-Z,48-57 19else 20 set iskeyword=_,-,a-z,A-Z,48-57 21endif 22 23syn case ignore 24 25" Comments 26syn match sshdconfigComment "#.*$" contains=sshdconfigTodo 27syn keyword sshdconfigTodo TODO FIXME NOT contained 28 29" Constants 30syn keyword sshdconfigYesNo yes no 31syn keyword sshdconfigCipher aes128-cbc 3des-cbc blowfish-cbc cast128-cbc 32syn keyword sshdconfigCipher aes192-cbc aes256-cbc 33syn keyword sshdconfigCipher arcfour 34syn keyword sshdconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96 35syn keyword sshdconfigMAC hmac-md5-96 36syn keyword sshdconfigRootLogin without-password forced-commands-only 37syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE 38syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 39syn keyword sshdconfigSysLogFacility DAEMON USER AUTH LOCAL0 LOCAL1 LOCAL2 40syn keyword sshdconfigSysLogFacility LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 41syn match sshdconfigSpecial "[*?]" 42syn match sshdconfigNumber "\d\+" 43syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" 44syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" 45syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>" 46syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>" 47 48" Keywords 49syn keyword sshdconfigKeyword AFSTokenPassing AllowGroups AllowTcpForwarding 50syn keyword sshdconfigKeyword AllowUsers AuthorizedKeysFile Banner 51syn keyword sshdconfigKeyword ChallengeResponseAuthentication Ciphers 52syn keyword sshdconfigKeyword ClientAliveInterval ClientAliveCountMax 53syn keyword sshdconfigKeyword Compression DenyGroups DenyUsers GatewayPorts 54syn keyword sshdconfigKeyword HostbasedAuthentication HostKey IgnoreRhosts 55syn keyword sshdconfigKeyword IgnoreUserKnownHosts KeepAlive 56syn keyword sshdconfigKeyword KerberosAuthentication KerberosOrLocalPasswd 57syn keyword sshdconfigKeyword KerberosTgtPassing KerberosTicketCleanup 58syn keyword sshdconfigKeyword KeyRegenerationInterval ListenAddress 59syn keyword sshdconfigKeyword LoginGraceTime LogLevel MACs MaxStartups 60syn keyword sshdconfigKeyword PAMAuthenticationViaKbdInt 61syn keyword sshdconfigKeyword PasswordAuthentication PermitEmptyPasswords 62syn keyword sshdconfigKeyword PermitRootLogin PermitUserEnvironment PidFile 63syn keyword sshdconfigKeyword Port PrintLastLog PrintMotd Protocol 64syn keyword sshdconfigKeyword PubkeyAuthentication RhostsAuthentication 65syn keyword sshdconfigKeyword RhostsRSAAuthentication RSAAuthentication 66syn keyword sshdconfigKeyword ServerKeyBits StrictModes Subsystem 67syn keyword sshdconfigKeyword SyslogFacility UseLogin UsePrivilegeSeparation 68syn keyword sshdconfigKeyword VerifyReverseMapping X11DisplayOffset 69syn keyword sshdconfigKeyword X11Forwarding X11UseLocalhost XAuthLocation 70 71" Define the default highlighting 72if version >= 508 || !exists("did_sshdconfig_syntax_inits") 73 if version < 508 74 let did_sshdconfig_syntax_inits = 1 75 command -nargs=+ HiLink hi link <args> 76 else 77 command -nargs=+ HiLink hi def link <args> 78 endif 79 80 HiLink sshdconfigComment Comment 81 HiLink sshdconfigTodo Todo 82 HiLink sshdconfigHostPort sshdconfigConstant 83 HiLink sshdconfigTime sshdconfigConstant 84 HiLink sshdconfigNumber sshdconfigConstant 85 HiLink sshdconfigConstant Constant 86 HiLink sshdconfigYesNo sshdconfigEnum 87 HiLink sshdconfigCipher sshdconfigEnum 88 HiLink sshdconfigMAC sshdconfigEnum 89 HiLink sshdconfigRootLogin sshdconfigEnum 90 HiLink sshdconfigLogLevel sshdconfigEnum 91 HiLink sshdconfigSysLogFacility sshdconfigEnum 92 HiLink sshdconfigEnum Function 93 HiLink sshdconfigSpecial Special 94 HiLink sshdconfigKeyword Keyword 95 delcommand HiLink 96endif 97 98let b:current_syntax = "sshdconfig" 99