7
|
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) <yeti@physics.muni.cz>
|
|
5 " Last Change: 2003-05-06
|
|
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/sshdconfig.vim
|
|
7
|
|
8 " Setup
|
|
9 if version >= 600
|
|
10 if exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13 else
|
|
14 syntax clear
|
|
15 endif
|
|
16
|
|
17 if version >= 600
|
|
18 setlocal iskeyword=_,-,a-z,A-Z,48-57
|
|
19 else
|
|
20 set iskeyword=_,-,a-z,A-Z,48-57
|
|
21 endif
|
|
22
|
|
23 syn case ignore
|
|
24
|
|
25 " Comments
|
|
26 syn match sshdconfigComment "#.*$" contains=sshdconfigTodo
|
|
27 syn keyword sshdconfigTodo TODO FIXME NOT contained
|
|
28
|
|
29 " Constants
|
|
30 syn keyword sshdconfigYesNo yes no
|
|
31 syn keyword sshdconfigCipher aes128-cbc 3des-cbc blowfish-cbc cast128-cbc
|
|
32 syn keyword sshdconfigCipher aes192-cbc aes256-cbc
|
|
33 syn keyword sshdconfigCipher arcfour
|
|
34 syn keyword sshdconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96
|
|
35 syn keyword sshdconfigMAC hmac-md5-96
|
|
36 syn keyword sshdconfigRootLogin without-password forced-commands-only
|
|
37 syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE
|
|
38 syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3
|
|
39 syn keyword sshdconfigSysLogFacility DAEMON USER AUTH LOCAL0 LOCAL1 LOCAL2
|
|
40 syn keyword sshdconfigSysLogFacility LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7
|
|
41 syn match sshdconfigSpecial "[*?]"
|
|
42 syn match sshdconfigNumber "\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\+\)\?\>"
|
|
45 syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>"
|
|
46 syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>"
|
|
47
|
|
48 " Keywords
|
|
49 syn keyword sshdconfigKeyword AFSTokenPassing AllowGroups AllowTcpForwarding
|
|
50 syn keyword sshdconfigKeyword AllowUsers AuthorizedKeysFile Banner
|
|
51 syn keyword sshdconfigKeyword ChallengeResponseAuthentication Ciphers
|
|
52 syn keyword sshdconfigKeyword ClientAliveInterval ClientAliveCountMax
|
|
53 syn keyword sshdconfigKeyword Compression DenyGroups DenyUsers GatewayPorts
|
|
54 syn keyword sshdconfigKeyword HostbasedAuthentication HostKey IgnoreRhosts
|
|
55 syn keyword sshdconfigKeyword IgnoreUserKnownHosts KeepAlive
|
|
56 syn keyword sshdconfigKeyword KerberosAuthentication KerberosOrLocalPasswd
|
|
57 syn keyword sshdconfigKeyword KerberosTgtPassing KerberosTicketCleanup
|
|
58 syn keyword sshdconfigKeyword KeyRegenerationInterval ListenAddress
|
|
59 syn keyword sshdconfigKeyword LoginGraceTime LogLevel MACs MaxStartups
|
|
60 syn keyword sshdconfigKeyword PAMAuthenticationViaKbdInt
|
|
61 syn keyword sshdconfigKeyword PasswordAuthentication PermitEmptyPasswords
|
|
62 syn keyword sshdconfigKeyword PermitRootLogin PermitUserEnvironment PidFile
|
|
63 syn keyword sshdconfigKeyword Port PrintLastLog PrintMotd Protocol
|
|
64 syn keyword sshdconfigKeyword PubkeyAuthentication RhostsAuthentication
|
|
65 syn keyword sshdconfigKeyword RhostsRSAAuthentication RSAAuthentication
|
|
66 syn keyword sshdconfigKeyword ServerKeyBits StrictModes Subsystem
|
|
67 syn keyword sshdconfigKeyword SyslogFacility UseLogin UsePrivilegeSeparation
|
|
68 syn keyword sshdconfigKeyword VerifyReverseMapping X11DisplayOffset
|
|
69 syn keyword sshdconfigKeyword X11Forwarding X11UseLocalhost XAuthLocation
|
|
70
|
|
71 " Define the default highlighting
|
|
72 if 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
|
|
96 endif
|
|
97
|
|
98 let b:current_syntax = "sshdconfig"
|