annotate runtime/syntax/sshdconfig.vim @ 7:3fc0f57ecb91 v7.0001

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