annotate runtime/syntax/sshconfig.vim @ 2624:bfd69bfb4149 v7.3.046

updated for version 7.3.046 Problem: Can't build Ruby on MS-Windows. Solution: Add #ifdef, don't use WIN3264 before including vim.h.
author Bram Moolenaar <bram@vim.org>
date Wed, 27 Oct 2010 17:40:59 +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
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
2 " Language: OpenSSH client configuration file (ssh_config)
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 sshconfigComment "#.*$" contains=sshconfigTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword sshconfigTodo 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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword sshconfigYesNo yes no ask
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
29 syn keyword sshconfigYesNo any auto
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword sshconfigCipher aes128-cbc 3des-cbc blowfish-cbc cast128-cbc
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
31 syn keyword sshconfigCipher aes192-cbc aes256-cbc aes128-ctr aes256-ctr
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
32 syn keyword sshconfigCipher arcfour arcfour128 arcfour256 cast128-cbc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword sshconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword sshconfigMAC hmac-md5-96
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
35 syn match sshconfigMAC "\<umac-64@openssh\.com\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword sshconfigHostKeyAlg ssh-rsa ssh-dss
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword sshconfigPreferredAuth hostbased publickey password
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword sshconfigPreferredAuth keyboard-interactive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword sshconfigLogLevel QUIET FATAL ERROR INFO VERBOSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword sshconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
41 syn keyword sshconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
42 syn keyword sshconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
43 syn match sshconfigVar "%[rhpldun]\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match sshconfigSpecial "[*?]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match sshconfigNumber "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match sshconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match sshconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match sshconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}[:/]\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword sshconfigHostSect Host
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
52 syn keyword sshconfigKeyword AddressFamily
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
53 syn keyword sshconfigKeyword BatchMode BindAddress
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword sshconfigKeyword ChallengeResponseAuthentication CheckHostIP
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
55 syn keyword sshconfigKeyword Cipher Ciphers ClearAllForwardings
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
56 syn keyword sshconfigKeyword Compression CompressionLevel ConnectTimeout
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
57 syn keyword sshconfigKeyword ConnectionAttempts ControlMaster
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
58 syn keyword sshconfigKeyword ControlPath DynamicForward
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
59 syn keyword sshconfigKeyword EnableSSHKeysign EscapeChar ExitOnForwardFailure
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
60 syn keyword sshconfigKeyword ForwardAgent ForwardX11
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
61 syn keyword sshconfigKeyword ForwardX11Trusted
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
62 syn keyword sshconfigKeyword GSSAPIAuthentication
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
63 syn keyword sshconfigKeyword GSSAPIDelegateCredentials GatewayPorts
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
64 syn keyword sshconfigKeyword GlobalKnownHostsFile
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
65 syn keyword sshconfigKeyword HostKeyAlgorithms HashKnownHosts
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
66 syn keyword sshconfigKeyword HostKeyAlias HostName HostbasedAuthentication
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
67 syn keyword sshconfigKeyword IdentitiesOnly IdentityFile
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
68 syn keyword sshconfigKeyword KbdInteractiveAuthentication KbdInteractiveDevices
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
69 syn keyword sshconfigKeyword LocalCommand LocalForward LogLevel
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
70 syn keyword sshconfigKeyword MACs
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
71 syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
72 syn keyword sshconfigKeyword NumberOfPasswordPrompts
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
73 syn keyword sshconfigKeyword PasswordAuthentication PermitLocalCommand
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword sshconfigKeyword Port PreferredAuthentications Protocol
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
75 syn keyword sshconfigKeyword ProxyCommand PubkeyAuthentication
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
76 syn keyword sshconfigKeyword PermitLocalCommand
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
77 syn keyword sshconfigKeyword RSAAuthentication RemoteForward RekeyLimit
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
78 syn keyword sshconfigKeyword RhostsRSAAuthentication
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
79 syn keyword sshconfigKeyword SendEnv ServerAliveCountMax ServerAliveInterval
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
80 syn keyword sshconfigKeyword SmartcardDevice StrictHostKeyChecking
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
81 syn keyword sshconfigKeyword Tunnel TunnelDevice
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 7
diff changeset
82 syn keyword sshconfigKeyword TCPKeepAlive UsePrivilegedPort User
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
83 syn keyword sshconfigKeyword UserKnownHostsFile
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
84 syn keyword sshconfigKeyword VerifyHostKeyDNS VisualHostKey
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
85 syn keyword sshconfigKeyword XAuthLocation
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 if version >= 508 || !exists("did_sshconfig_syntax_inits")
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
89 if version < 508
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
90 let did_sshconfig_syntax_inits = 1
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
91 command -nargs=+ HiLink hi link <args>
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
92 else
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
93 command -nargs=+ HiLink hi def link <args>
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
94 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
96 HiLink sshconfigComment Comment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
97 HiLink sshconfigTodo Todo
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
98 HiLink sshconfigHostPort sshconfigConstant
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
99 HiLink sshconfigNumber sshconfigConstant
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
100 HiLink sshconfigConstant Constant
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
101 HiLink sshconfigYesNo sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
102 HiLink sshconfigCipher sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
103 HiLink sshconfigMAC sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
104 HiLink sshconfigHostKeyAlg sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
105 HiLink sshconfigLogLevel sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
106 HiLink sshconfigSysLogFacility sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
107 HiLink sshconfigPreferredAuth sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
108 HiLink sshconfigVar sshconfigEnum
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
109 HiLink sshconfigEnum Identifier
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
110 HiLink sshconfigSpecial Special
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
111 HiLink sshconfigKeyword Keyword
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
112 HiLink sshconfigHostSect Type
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 714
diff changeset
113 delcommand HiLink
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 let b:current_syntax = "sshconfig"