annotate runtime/syntax/sshdconfig.vim @ 2620:5fbc411a611d v7.3.042

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