comparison runtime/syntax/sshdconfig.vim @ 2034:7bc41231fbc7

Update runtime files.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 06 Jan 2010 20:54:52 +0100
parents 0f9f4761ad9c
children 8b8ef1fed009
comparison
equal deleted inserted replaced
2033:de5a43c5eedc 2034:7bc41231fbc7
1 " Vim syntax file 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) 2 " Language: OpenSSH server configuration file (sshd_config)
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> 3 " Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>
5 " Last Change: 2006-03-05 4 " Last Change: 2009-07-09
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/sshdconfig.vim
7 5
8 " Setup 6 " Setup
9 if version >= 600 7 if version >= 600
10 if exists("b:current_syntax") 8 if exists("b:current_syntax")
11 finish 9 finish
12 endif 10 endif
13 else 11 else
14 syntax clear 12 syntax clear
15 endif 13 endif
16 14
17 if version >= 600 15 if version >= 600
18 setlocal iskeyword=_,-,a-z,A-Z,48-57 16 setlocal iskeyword=_,-,a-z,A-Z,48-57
19 else 17 else
20 set iskeyword=_,-,a-z,A-Z,48-57 18 set iskeyword=_,-,a-z,A-Z,48-57
21 endif 19 endif
22 20
23 syn case ignore 21 syn case ignore
24 22
25 " Comments 23 " Comments
26 syn match sshdconfigComment "#.*$" contains=sshdconfigTodo 24 syn match sshdconfigComment "#.*$" contains=sshdconfigTodo
27 syn keyword sshdconfigTodo TODO FIXME NOT contained 25 syn keyword sshdconfigTodo TODO FIXME NOT contained
28 26
29 " Constants 27 " Constants
30 syn keyword sshdconfigYesNo yes no 28 syn keyword sshdconfigYesNo yes no none
29 syn keyword sshdconfigAddressFamily any inet inet6
31 syn keyword sshdconfigCipher aes128-cbc 3des-cbc blowfish-cbc cast128-cbc 30 syn keyword sshdconfigCipher aes128-cbc 3des-cbc blowfish-cbc cast128-cbc
32 syn keyword sshdconfigCipher aes192-cbc aes256-cbc aes128-ctr aes256-ctr 31 syn keyword sshdconfigCipher aes192-cbc aes256-cbc aes128-ctr aes256-ctr
33 syn keyword sshdconfigCipher arcfour arcfour128 arcfour256 cast128-cbc 32 syn keyword sshdconfigCipher arcfour arcfour128 arcfour256 cast128-cbc
34 syn keyword sshdconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96 33 syn keyword sshdconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96
35 syn keyword sshdconfigMAC hmac-md5-96 34 syn keyword sshdconfigMAC hmac-md5-96
35 syn match sshdconfigMAC "\<umac-64@openssh\.com\>"
36 syn keyword sshdconfigRootLogin without-password forced-commands-only 36 syn keyword sshdconfigRootLogin without-password forced-commands-only
37 syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE 37 syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE
38 syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 38 syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3
39 syn keyword sshdconfigSysLogFacility DAEMON USER AUTH LOCAL0 LOCAL1 LOCAL2 39 syn keyword sshdconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1
40 syn keyword sshdconfigSysLogFacility LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 40 syn keyword sshdconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7
41 syn match sshdconfigSpecial "[*?]" 41 syn match sshdconfigSpecial "[*?]"
42 syn match sshdconfigNumber "\d\+" 42 syn match sshdconfigNumber "\d\+"
43 syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" 43 syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>"
44 syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" 44 syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>"
45 " FIXME: this matches quite a few things which are NOT valid IPv6 addresses
45 syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>" 46 syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>"
46 syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>" 47 syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>"
47 48
48 " Keywords 49 " Keywords
49 syn keyword sshdconfigKeyword AcceptEnv AddressFamily 50 syn keyword sshdconfigMatch Host User Group Address
51 syn keyword sshdconfigKeyword AcceptEnv AddressFamily AllowAgentForwarding
50 syn keyword sshdconfigKeyword AllowGroups AllowTcpForwarding 52 syn keyword sshdconfigKeyword AllowGroups AllowTcpForwarding
51 syn keyword sshdconfigKeyword AllowUsers AuthorizedKeysFile Banner 53 syn keyword sshdconfigKeyword AllowUsers AuthorizedKeysFile
52 syn keyword sshdconfigKeyword ChallengeResponseAuthentication 54 syn keyword sshdconfigKeyword Banner
55 syn keyword sshdconfigKeyword ChallengeResponseAuthentication ChrootDirectory
53 syn keyword sshdconfigKeyword Ciphers ClientAliveCountMax 56 syn keyword sshdconfigKeyword Ciphers ClientAliveCountMax
54 syn keyword sshdconfigKeyword ClientAliveInterval Compression 57 syn keyword sshdconfigKeyword ClientAliveInterval Compression
55 syn keyword sshdconfigKeyword DenyGroups DenyUsers GSSAPIAuthentication 58 syn keyword sshdconfigKeyword DenyGroups DenyUsers
56 syn keyword sshdconfigKeyword GSSAPICleanupCredentials GatewayPorts 59 syn keyword sshdconfigKeyword ForceCommand
57 syn keyword sshdconfigKeyword HostKey HostbasedAuthentication 60 syn keyword sshdconfigKeyword GatewayPorts GSSAPIAuthentication
61 syn keyword sshdconfigKeyword GSSAPICleanupCredentials
62 syn keyword sshdconfigKeyword HostbasedAuthentication HostKey
58 syn keyword sshdconfigKeyword IgnoreRhosts IgnoreUserKnownHosts 63 syn keyword sshdconfigKeyword IgnoreRhosts IgnoreUserKnownHosts
59 syn keyword sshdconfigKeyword KerberosAuthentication KerberosOrLocalPasswd 64 syn keyword sshdconfigKeyword KerberosAuthentication KerberosGetAFSToken
60 syn keyword sshdconfigKeyword KerberosTgtPassing KerberosTicketCleanup 65 syn keyword sshdconfigKeyword KerberosOrLocalPasswd KerberosTicketCleanup
61 syn keyword sshdconfigKeyword KerberosGetAFSToken 66 syn keyword sshdconfigKeyword KeyRegenerationInterval
62 syn keyword sshdconfigKeyword KeyRegenerationInterval ListenAddress 67 syn keyword sshdconfigKeyword ListenAddress LoginGraceTime LogLevel
63 syn keyword sshdconfigKeyword LogLevel LoginGraceTime MACs MaxAuthTries 68 syn keyword sshdconfigKeyword MACs Match MaxAuthTries MaxSessions MaxStartups
64 syn keyword sshdconfigKeyword MaxStartups PasswordAuthentication 69 syn keyword sshdconfigKeyword PasswordAuthentication PermitEmptyPasswords
65 syn keyword sshdconfigKeyword PermitEmptyPasswords PermitRootLogin 70 syn keyword sshdconfigKeyword PermitRootLogin PermitOpen PermitTunnel
66 syn keyword sshdconfigKeyword PermitUserEnvironment PidFile Port 71 syn keyword sshdconfigKeyword PermitUserEnvironment PidFile Port
67 syn keyword sshdconfigKeyword PrintLastLog PrintMotd Protocol 72 syn keyword sshdconfigKeyword PrintLastLog PrintMotd Protocol
68 syn keyword sshdconfigKeyword PubkeyAuthentication RSAAuthentication 73 syn keyword sshdconfigKeyword PubkeyAuthentication
69 syn keyword sshdconfigKeyword RhostsAuthentication RhostsRSAAuthentication 74 syn keyword sshdconfigKeyword RhostsRSAAuthentication RSAAuthentication
70 syn keyword sshdconfigKeyword ServerKeyBits StrictModes Subsystem 75 syn keyword sshdconfigKeyword ServerKeyBits ShowPatchLevel StrictModes
71 syn keyword sshdconfigKeyword ShowPatchLevel 76 syn keyword sshdconfigKeyword Subsystem SyslogFacility
72 syn keyword sshdconfigKeyword SyslogFacility TCPKeepAlive UseDNS 77 syn keyword sshdconfigKeyword TCPKeepAlive
73 syn keyword sshdconfigKeyword UseLogin UsePAM UsePrivilegeSeparation 78 syn keyword sshdconfigKeyword UseDNS UseLogin UsePAM UsePrivilegeSeparation
74 syn keyword sshdconfigKeyword X11DisplayOffset X11Forwarding 79 syn keyword sshdconfigKeyword X11DisplayOffset X11Forwarding
75 syn keyword sshdconfigKeyword X11UseLocalhost XAuthLocation 80 syn keyword sshdconfigKeyword X11UseLocalhost XAuthLocation
76 81
77 " Define the default highlighting 82 " Define the default highlighting
78 if version >= 508 || !exists("did_sshdconfig_syntax_inits") 83 if version >= 508 || !exists("did_sshdconfig_syntax_inits")
79 if version < 508 84 if version < 508
80 let did_sshdconfig_syntax_inits = 1 85 let did_sshdconfig_syntax_inits = 1
81 command -nargs=+ HiLink hi link <args> 86 command -nargs=+ HiLink hi link <args>
82 else 87 else
83 command -nargs=+ HiLink hi def link <args> 88 command -nargs=+ HiLink hi def link <args>
84 endif 89 endif
85 90
86 HiLink sshdconfigComment Comment 91 HiLink sshdconfigComment Comment
87 HiLink sshdconfigTodo Todo 92 HiLink sshdconfigTodo Todo
88 HiLink sshdconfigHostPort sshdconfigConstant 93 HiLink sshdconfigHostPort sshdconfigConstant
89 HiLink sshdconfigTime sshdconfigConstant 94 HiLink sshdconfigTime sshdconfigConstant
90 HiLink sshdconfigNumber sshdconfigConstant 95 HiLink sshdconfigNumber sshdconfigConstant
91 HiLink sshdconfigConstant Constant 96 HiLink sshdconfigConstant Constant
92 HiLink sshdconfigYesNo sshdconfigEnum 97 HiLink sshdconfigYesNo sshdconfigEnum
93 HiLink sshdconfigCipher sshdconfigEnum 98 HiLink sshdconfigAddressFamily sshdconfigEnum
94 HiLink sshdconfigMAC sshdconfigEnum 99 HiLink sshdconfigCipher sshdconfigEnum
95 HiLink sshdconfigRootLogin sshdconfigEnum 100 HiLink sshdconfigMAC sshdconfigEnum
96 HiLink sshdconfigLogLevel sshdconfigEnum 101 HiLink sshdconfigRootLogin sshdconfigEnum
97 HiLink sshdconfigSysLogFacility sshdconfigEnum 102 HiLink sshdconfigLogLevel sshdconfigEnum
98 HiLink sshdconfigEnum Function 103 HiLink sshdconfigSysLogFacility sshdconfigEnum
99 HiLink sshdconfigSpecial Special 104 HiLink sshdconfigEnum Function
100 HiLink sshdconfigKeyword Keyword 105 HiLink sshdconfigSpecial Special
101 delcommand HiLink 106 HiLink sshdconfigKeyword Keyword
107 HiLink sshdconfigMatch Type
108 delcommand HiLink
102 endif 109 endif
103 110
104 let b:current_syntax = "sshdconfig" 111 let b:current_syntax = "sshdconfig"