Mercurial > vim
annotate runtime/syntax/sshconfig.vim @ 7439:63a96fadf679 v7.4.1023
commit https://github.com/vim/vim/commit/2c15f6aa8fd057721e35d03523577b41cf7aaad5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 2 15:00:30 2016 +0100
patch 7.4.1023
Problem: The distribution files for MS-Windows use CR-LF, which is
inconsistent with what one gets from github.
Solution: Use LF in the distribution files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Jan 2016 15:15:04 +0100 |
parents | aea5ebf352c4 |
children | 3012eaddb6b2 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
3224 | 2 " Language: OpenSSH client configuration file (ssh_config) |
3 " Author: David Necas (Yeti) | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
4 " Maintainer: Dominik Fischer <d dot f dot fischer at web dot de> |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
5 " Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de> |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
6 " Last Change: 2015 Dec 3 |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
7 " SSH Version: 7.0 |
3224 | 8 " |
7 | 9 |
10 " Setup | |
11 if version >= 600 | |
2034 | 12 if exists("b:current_syntax") |
13 finish | |
14 endif | |
7 | 15 else |
2034 | 16 syntax clear |
7 | 17 endif |
18 | |
19 if version >= 600 | |
2034 | 20 setlocal iskeyword=_,-,a-z,A-Z,48-57 |
7 | 21 else |
2034 | 22 set iskeyword=_,-,a-z,A-Z,48-57 |
7 | 23 endif |
24 | |
3224 | 25 |
26 " case on | |
27 syn case match | |
28 | |
7 | 29 |
30 " Comments | |
3224 | 31 syn match sshconfigComment "^#.*$" contains=sshconfigTodo |
32 syn match sshconfigComment "\s#.*$" contains=sshconfigTodo | |
33 | |
34 syn keyword sshconfigTodo TODO FIXME NOTE contained | |
35 | |
7 | 36 |
37 " Constants | |
38 syn keyword sshconfigYesNo yes no ask | |
2034 | 39 syn keyword sshconfigYesNo any auto |
3224 | 40 syn keyword sshconfigYesNo force autoask none |
41 | |
42 syn keyword sshconfigCipher 3des blowfish | |
43 syn keyword sshconfigCiphers aes128-cbc 3des-cbc blowfish blowfish-cbc cast128-cbc | |
44 syn keyword sshconfigCiphers aes192-cbc aes256-cbc aes128-ctr aes192-ctr aes256-ctr | |
45 syn keyword sshconfigCiphers arcfour arcfour128 arcfour256 cast128-cbc | |
46 | |
7 | 47 syn keyword sshconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96 |
48 syn keyword sshconfigMAC hmac-md5-96 | |
3224 | 49 syn keyword sshconfigMAC hmac-sha2-256 hmac-sha2-256-96 hmac-sha2-512 |
50 syn keyword sshconfigMAC hmac-sha2-512-96 | |
51 syn match sshconfigMAC "\<umac-64@openssh\.com\>" | |
52 | |
7 | 53 syn keyword sshconfigHostKeyAlg ssh-rsa ssh-dss |
3224 | 54 syn match sshconfigHostKeyAlg "\<ecdsa-sha2-nistp256-cert-v01@openssh\.com\>" |
55 syn match sshconfigHostKeyAlg "\<ecdsa-sha2-nistp384-cert-v01@openssh\.com\>" | |
56 syn match sshconfigHostKeyAlg "\<ecdsa-sha2-nistp521-cert-v01@openssh\.com\>" | |
57 syn match sshconfigHostKeyAlg "\<ssh-rsa-cert-v01@openssh\.com\>" | |
58 syn match sshconfigHostKeyAlg "\<ssh-dss-cert-v01@openssh\.com\>" | |
59 syn match sshconfigHostKeyAlg "\<ssh-rsa-cert-v00@openssh\.com\>" | |
60 syn match sshconfigHostKeyAlg "\<ssh-dss-cert-v00@openssh\.com\>" | |
61 syn keyword sshconfigHostKeyAlg ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 | |
62 | |
63 syn keyword sshconfigPreferredAuth hostbased publickey password gssapi-with-mic | |
7 | 64 syn keyword sshconfigPreferredAuth keyboard-interactive |
3224 | 65 |
7 | 66 syn keyword sshconfigLogLevel QUIET FATAL ERROR INFO VERBOSE |
67 syn keyword sshconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 | |
2034 | 68 syn keyword sshconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1 |
69 syn keyword sshconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 | |
3224 | 70 syn keyword sshconfigAddressFamily inet inet6 |
71 | |
72 syn match sshconfigIPQoS "af1[1234]" | |
73 syn match sshconfigIPQoS "af2[23]" | |
74 syn match sshconfigIPQoS "af3[123]" | |
75 syn match sshconfigIPQoS "af4[123]" | |
76 syn match sshconfigIPQoS "cs[0-7]" | |
77 syn keyword sshconfigIPQoS ef lowdelay throughput reliability | |
78 syn keyword sshconfigKbdInteractive bsdauth pam skey | |
79 | |
80 syn keyword sshconfigKexAlgo ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 | |
81 syn keyword sshconfigKexAlgo diffie-hellman-group-exchange-sha256 | |
82 syn keyword sshconfigKexAlgo diffie-hellman-group-exchange-sha1 | |
83 syn keyword sshconfigKexAlgo diffie-hellman-group14-sha1 | |
84 syn keyword sshconfigKexAlgo diffie-hellman-group1-sha1 | |
85 | |
86 syn keyword sshconfigTunnel point-to-point ethernet | |
87 | |
88 syn match sshconfigVar "%[rhplLdun]\>" | |
7 | 89 syn match sshconfigSpecial "[*?]" |
90 syn match sshconfigNumber "\d\+" | |
91 syn match sshconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" | |
92 syn match sshconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" | |
93 syn match sshconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}[:/]\d\+\>" | |
3371 | 94 syn match sshconfigHostPort "\(Host \)\@<=.\+" |
95 syn match sshconfigHostPort "\(HostName \)\@<=.\+" | |
3224 | 96 |
97 " case off | |
98 syn case ignore | |
99 | |
100 | |
7 | 101 " Keywords |
102 syn keyword sshconfigHostSect Host | |
3224 | 103 |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
104 syn keyword sshconfigMatch canonical exec host originalhost user localuser all |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
105 |
2034 | 106 syn keyword sshconfigKeyword AddressFamily |
3224 | 107 syn keyword sshconfigKeyword BatchMode |
108 syn keyword sshconfigKeyword BindAddress | |
109 syn keyword sshconfigKeyword ChallengeResponseAuthentication | |
110 syn keyword sshconfigKeyword CheckHostIP | |
111 syn keyword sshconfigKeyword Cipher | |
112 syn keyword sshconfigKeyword Ciphers | |
113 syn keyword sshconfigKeyword ClearAllForwardings | |
114 syn keyword sshconfigKeyword Compression | |
115 syn keyword sshconfigKeyword CompressionLevel | |
116 syn keyword sshconfigKeyword ConnectTimeout | |
117 syn keyword sshconfigKeyword ConnectionAttempts | |
118 syn keyword sshconfigKeyword ControlMaster | |
119 syn keyword sshconfigKeyword ControlPath | |
120 syn keyword sshconfigKeyword ControlPersist | |
121 syn keyword sshconfigKeyword DynamicForward | |
122 syn keyword sshconfigKeyword EnableSSHKeysign | |
123 syn keyword sshconfigKeyword EscapeChar | |
124 syn keyword sshconfigKeyword ExitOnForwardFailure | |
125 syn keyword sshconfigKeyword ForwardAgent | |
126 syn keyword sshconfigKeyword ForwardX11 | |
127 syn keyword sshconfigKeyword ForwardX11Timeout | |
2034 | 128 syn keyword sshconfigKeyword ForwardX11Trusted |
129 syn keyword sshconfigKeyword GSSAPIAuthentication | |
3224 | 130 syn keyword sshconfigKeyword GSSAPIClientIdentity |
131 syn keyword sshconfigKeyword GSSAPIDelegateCredentials | |
132 syn keyword sshconfigKeyword GSSAPIKeyExchange | |
133 syn keyword sshconfigKeyword GSSAPIRenewalForcesRekey | |
134 syn keyword sshconfigKeyword GSSAPIServerIdentity | |
135 syn keyword sshconfigKeyword GSSAPITrustDNS | |
136 syn keyword sshconfigKeyword GSSAPITrustDns | |
137 syn keyword sshconfigKeyword GatewayPorts | |
2034 | 138 syn keyword sshconfigKeyword GlobalKnownHostsFile |
3224 | 139 syn keyword sshconfigKeyword HashKnownHosts |
140 syn keyword sshconfigKeyword HostKeyAlgorithms | |
141 syn keyword sshconfigKeyword HostKeyAlias | |
142 syn keyword sshconfigKeyword HostName | |
143 syn keyword sshconfigKeyword HostbasedAuthentication | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
144 syn keyword sshconfigKeyword HostbasedKeyTypes |
3224 | 145 syn keyword sshconfigKeyword IPQoS |
146 syn keyword sshconfigKeyword IdentitiesOnly | |
147 syn keyword sshconfigKeyword IdentityFile | |
148 syn keyword sshconfigKeyword KbdInteractiveAuthentication | |
149 syn keyword sshconfigKeyword KbdInteractiveDevices | |
150 syn keyword sshconfigKeyword KexAlgorithms | |
151 syn keyword sshconfigKeyword LocalCommand | |
152 syn keyword sshconfigKeyword LocalForward | |
153 syn keyword sshconfigKeyword LogLevel | |
2034 | 154 syn keyword sshconfigKeyword MACs |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
155 syn keyword sshconfigKeyword Match |
2034 | 156 syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost |
157 syn keyword sshconfigKeyword NumberOfPasswordPrompts | |
3224 | 158 syn keyword sshconfigKeyword PKCS11Provider |
159 syn keyword sshconfigKeyword PasswordAuthentication | |
2034 | 160 syn keyword sshconfigKeyword PermitLocalCommand |
3224 | 161 syn keyword sshconfigKeyword Port |
162 syn keyword sshconfigKeyword PreferredAuthentications | |
163 syn keyword sshconfigKeyword Protocol | |
164 syn keyword sshconfigKeyword ProxyCommand | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
165 syn keyword sshconfigKeyword ProxyUseFDPass |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
166 syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes |
3224 | 167 syn keyword sshconfigKeyword PubkeyAuthentication |
168 syn keyword sshconfigKeyword RSAAuthentication | |
169 syn keyword sshconfigKeyword RekeyLimit | |
170 syn keyword sshconfigKeyword RemoteForward | |
171 syn keyword sshconfigKeyword RequestTTY | |
2034 | 172 syn keyword sshconfigKeyword RhostsRSAAuthentication |
3224 | 173 syn keyword sshconfigKeyword SendEnv |
174 syn keyword sshconfigKeyword ServerAliveCountMax | |
175 syn keyword sshconfigKeyword ServerAliveInterval | |
176 syn keyword sshconfigKeyword SmartcardDevice | |
177 syn keyword sshconfigKeyword StrictHostKeyChecking | |
178 syn keyword sshconfigKeyword TCPKeepAlive | |
179 syn keyword sshconfigKeyword Tunnel | |
180 syn keyword sshconfigKeyword TunnelDevice | |
181 syn keyword sshconfigKeyword UseBlacklistedKeys | |
182 syn keyword sshconfigKeyword UsePrivilegedPort | |
183 syn keyword sshconfigKeyword User | |
2034 | 184 syn keyword sshconfigKeyword UserKnownHostsFile |
3224 | 185 syn keyword sshconfigKeyword VerifyHostKeyDNS |
186 syn keyword sshconfigKeyword VisualHostKey | |
2034 | 187 syn keyword sshconfigKeyword XAuthLocation |
7 | 188 |
189 " Define the default highlighting | |
190 if version >= 508 || !exists("did_sshconfig_syntax_inits") | |
2034 | 191 if version < 508 |
192 let did_sshconfig_syntax_inits = 1 | |
193 command -nargs=+ HiLink hi link <args> | |
194 else | |
195 command -nargs=+ HiLink hi def link <args> | |
196 endif | |
7 | 197 |
2034 | 198 HiLink sshconfigComment Comment |
199 HiLink sshconfigTodo Todo | |
200 HiLink sshconfigHostPort sshconfigConstant | |
201 HiLink sshconfigNumber sshconfigConstant | |
202 HiLink sshconfigConstant Constant | |
203 HiLink sshconfigYesNo sshconfigEnum | |
204 HiLink sshconfigCipher sshconfigEnum | |
3224 | 205 HiLink sshconfigCiphers sshconfigEnum |
2034 | 206 HiLink sshconfigMAC sshconfigEnum |
207 HiLink sshconfigHostKeyAlg sshconfigEnum | |
208 HiLink sshconfigLogLevel sshconfigEnum | |
209 HiLink sshconfigSysLogFacility sshconfigEnum | |
3224 | 210 HiLink sshconfigAddressFamily sshconfigEnum |
211 HiLink sshconfigIPQoS sshconfigEnum | |
212 HiLink sshconfigKbdInteractive sshconfigEnum | |
213 HiLink sshconfigKexAlgo sshconfigEnum | |
214 HiLink sshconfigTunnel sshconfigEnum | |
2034 | 215 HiLink sshconfigPreferredAuth sshconfigEnum |
216 HiLink sshconfigVar sshconfigEnum | |
217 HiLink sshconfigEnum Identifier | |
218 HiLink sshconfigSpecial Special | |
219 HiLink sshconfigKeyword Keyword | |
220 HiLink sshconfigHostSect Type | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3410
diff
changeset
|
221 HiLink sshconfigMatch Type |
2034 | 222 delcommand HiLink |
7 | 223 endif |
224 | |
225 let b:current_syntax = "sshconfig" | |
3224 | 226 |
227 " vim:set ts=8 sw=2 sts=2: |