Mercurial > vim
annotate runtime/syntax/sshdconfig.vim @ 10386:d3f0946b4a80 v8.0.0087
commit https://github.com/vim/vim/commit/7df915d113ac1981792c50e8b000c9f5f784b78b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 17 17:25:32 2016 +0100
patch 8.0.0087
Problem: When the channel callback gets job info the job may already have
been deleted. (lifepillar)
Solution: Do not delete the job when the channel is still useful. (ichizok,
closes #1242, closes #1245)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 17 Nov 2016 17:30:04 +0100 |
parents | 46763b01cd9a |
children | 883396809b45 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
3224 | 2 " Language: OpenSSH server configuration file (sshd_config) |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
3 " Author: David Necas (Yeti) |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
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:
3224
diff
changeset
|
5 " Contributor: Thilo Six |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
6 " Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de> |
7597
3012eaddb6b2
commit https://github.com/vim/vim/commit/345efa013dc6d1754ba06e5596a26c48c9935937
Christian Brabandt <cb@256bit.org>
parents:
7384
diff
changeset
|
7 " Contributor: Karsten Hopp <karsten@redhat.com> |
3224 | 8 " Originally: 2009-07-09 |
8392
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
9 " Last Change: 2016 Mar 1 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
10 " SSH Version: 7.2 |
3224 | 11 " |
7 | 12 |
13 " Setup | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
8392
diff
changeset
|
14 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
8392
diff
changeset
|
15 if exists("b:current_syntax") |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
8392
diff
changeset
|
16 finish |
7 | 17 endif |
18 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
8392
diff
changeset
|
19 setlocal iskeyword=_,-,a-z,A-Z,48-57 |
7 | 20 |
3224 | 21 |
22 " case on | |
23 syn case match | |
24 | |
7 | 25 |
26 " Comments | |
3224 | 27 syn match sshdconfigComment "^#.*$" contains=sshdconfigTodo |
28 syn match sshdconfigComment "\s#.*$" contains=sshdconfigTodo | |
29 | |
30 syn keyword sshdconfigTodo TODO FIXME NOTE contained | |
7 | 31 |
32 " Constants | |
2034 | 33 syn keyword sshdconfigYesNo yes no none |
3224 | 34 |
2034 | 35 syn keyword sshdconfigAddressFamily any inet inet6 |
3224 | 36 |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
37 syn keyword sshdconfigPrivilegeSeparation sandbox |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
38 |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
39 syn keyword sshdconfigTcpForwarding local remote |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
40 |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
41 syn keyword sshdconfigRootLogin prohibit-password without-password forced-commands-only |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
42 |
8392
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
43 syn keyword sshdconfigCiphers 3des-cbc |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
44 syn keyword sshdconfigCiphers blowfish-cbc |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
45 syn keyword sshdconfigCiphers cast128-cbc |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
46 syn keyword sshdconfigCiphers arcfour |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
47 syn keyword sshdconfigCiphers arcfour128 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
48 syn keyword sshdconfigCiphers arcfour256 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
49 syn keyword sshdconfigCiphers aes128-cbc |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
50 syn keyword sshdconfigCiphers aes192-cbc |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
51 syn keyword sshdconfigCiphers aes256-cbc |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
52 syn match sshdconfigCiphers "\<rijndael-cbc@lysator\.liu.se\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
53 syn keyword sshdconfigCiphers aes128-ctr |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
54 syn keyword sshdconfigCiphers aes192-ctr |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
55 syn keyword sshdconfigCiphers aes256-ctr |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
56 syn match sshdconfigCiphers "\<aes128-gcm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
57 syn match sshdconfigCiphers "\<aes256-gcm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
58 syn match sshdconfigCiphers "\<chacha20-poly1305@openssh\.com\>" |
3224 | 59 |
8392
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
60 syn keyword sshdconfigMAC hmac-sha1 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
61 syn keyword sshdconfigMAC mac-sha1-96 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
62 syn keyword sshdconfigMAC mac-sha2-256 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
63 syn keyword sshdconfigMAC mac-sha2-512 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
64 syn keyword sshdconfigMAC mac-md5 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
65 syn keyword sshdconfigMAC mac-md5-96 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
66 syn keyword sshdconfigMAC mac-ripemd160 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
67 syn match sshdconfigMAC "\<hmac-ripemd160@openssh\.com\>" |
3224 | 68 syn match sshdconfigMAC "\<umac-64@openssh\.com\>" |
8392
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
69 syn match sshdconfigMAC "\<umac-128@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
70 syn match sshdconfigMAC "\<hmac-sha1-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
71 syn match sshdconfigMAC "\<hmac-sha1-96-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
72 syn match sshdconfigMAC "\<hmac-sha2-256-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
73 syn match sshdconfigMAC "\<hmac-sha2-512-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
74 syn match sshdconfigMAC "\<hmac-md5-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
75 syn match sshdconfigMAC "\<hmac-md5-96-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
76 syn match sshdconfigMAC "\<hmac-ripemd160-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
77 syn match sshdconfigMAC "\<umac-64-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
78 syn match sshdconfigMAC "\<umac-128-etm@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
79 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
80 syn keyword sshdconfigHostKeyAlgo ssh-ed25519 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
81 syn match sshdconfigHostKeyAlgo "\<ssh-ed25519-cert-v01@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
82 syn keyword sshdconfigHostKeyAlgo ssh-rsa |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
83 syn keyword sshdconfigHostKeyAlgo ssh-dss |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
84 syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp256 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
85 syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp384 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
86 syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp521 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
87 syn match sshdconfigHostKeyAlgo "\<ssh-rsa-cert-v01@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
88 syn match sshdconfigHostKeyAlgo "\<ssh-dss-cert-v01@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
89 syn match sshdconfigHostKeyAlgo "\<ecdsa-sha2-nistp256-cert-v01@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
90 syn match sshdconfigHostKeyAlgo "\<ecdsa-sha2-nistp384-cert-v01@openssh\.com\>" |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
91 syn match sshdconfigHostKeyAlgo "\<ecdsa-sha2-nistp521-cert-v01@openssh\.com\>" |
3224 | 92 |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
93 syn keyword sshdconfigRootLogin prohibit-password without-password forced-commands-only |
3224 | 94 |
7 | 95 syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE |
96 syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 | |
2034 | 97 syn keyword sshdconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1 |
98 syn keyword sshdconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 | |
3224 | 99 |
100 syn keyword sshdconfigCompression delayed | |
101 | |
7597
3012eaddb6b2
commit https://github.com/vim/vim/commit/345efa013dc6d1754ba06e5596a26c48c9935937
Christian Brabandt <cb@256bit.org>
parents:
7384
diff
changeset
|
102 syn match sshdconfigIPQoS "af1[123]" |
3012eaddb6b2
commit https://github.com/vim/vim/commit/345efa013dc6d1754ba06e5596a26c48c9935937
Christian Brabandt <cb@256bit.org>
parents:
7384
diff
changeset
|
103 syn match sshdconfigIPQoS "af2[123]" |
3224 | 104 syn match sshdconfigIPQoS "af3[123]" |
105 syn match sshdconfigIPQoS "af4[123]" | |
106 syn match sshdconfigIPQoS "cs[0-7]" | |
107 syn keyword sshdconfigIPQoS ef lowdelay throughput reliability | |
108 | |
8392
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
109 syn keyword sshdconfigKexAlgo diffie-hellman-group1-sha1 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
110 syn keyword sshdconfigKexAlgo diffie-hellman-group14-sha1 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
111 syn keyword sshdconfigKexAlgo diffie-hellman-group-exchange-sha1 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
112 syn keyword sshdconfigKexAlgo diffie-hellman-group-exchange-sha256 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
113 syn keyword sshdconfigKexAlgo ecdh-sha2-nistp256 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
114 syn keyword sshdconfigKexAlgo ecdh-sha2-nistp384 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
115 syn keyword sshdconfigKexAlgo ecdh-sha2-nistp521 |
1bf1b88968a2
commit https://github.com/vim/vim/commit/328da0dcb7be34b594725eef6dc98d3ea6516d69
Christian Brabandt <cb@256bit.org>
parents:
7597
diff
changeset
|
116 syn match sshdconfigKexAlgo "\<curve25519-sha256@libssh\.org\>" |
3224 | 117 |
118 syn keyword sshdconfigTunnel point-to-point ethernet | |
119 | |
120 syn keyword sshdconfigSubsystem internal-sftp | |
121 | |
122 syn match sshdconfigVar "%[hu]\>" | |
123 syn match sshdconfigVar "%%" | |
124 | |
7 | 125 syn match sshdconfigSpecial "[*?]" |
3224 | 126 |
7 | 127 syn match sshdconfigNumber "\d\+" |
128 syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" | |
129 syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" | |
2034 | 130 " FIXME: this matches quite a few things which are NOT valid IPv6 addresses |
7 | 131 syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>" |
132 syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>" | |
133 | |
3224 | 134 |
135 " case off | |
136 syn case ignore | |
137 | |
138 | |
7 | 139 " Keywords |
2034 | 140 syn keyword sshdconfigMatch Host User Group Address |
3224 | 141 |
142 syn keyword sshdconfigKeyword AcceptEnv | |
143 syn keyword sshdconfigKeyword AddressFamily | |
144 syn keyword sshdconfigKeyword AllowAgentForwarding | |
145 syn keyword sshdconfigKeyword AllowGroups | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
146 syn keyword sshdconfigKeyword AllowStreamLocalForwarding |
3224 | 147 syn keyword sshdconfigKeyword AllowTcpForwarding |
148 syn keyword sshdconfigKeyword AllowUsers | |
7597
3012eaddb6b2
commit https://github.com/vim/vim/commit/345efa013dc6d1754ba06e5596a26c48c9935937
Christian Brabandt <cb@256bit.org>
parents:
7384
diff
changeset
|
149 syn keyword sshdconfigKeyword AuthenticationMethods |
3224 | 150 syn keyword sshdconfigKeyword AuthorizedKeysFile |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
151 syn keyword sshdconfigKeyword AuthorizedKeysCommand |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
152 syn keyword sshdconfigKeyword AuthorizedKeysCommandUser |
3224 | 153 syn keyword sshdconfigKeyword AuthorizedPrincipalsFile |
2034 | 154 syn keyword sshdconfigKeyword Banner |
3224 | 155 syn keyword sshdconfigKeyword ChallengeResponseAuthentication |
156 syn keyword sshdconfigKeyword ChrootDirectory | |
157 syn keyword sshdconfigKeyword Ciphers | |
158 syn keyword sshdconfigKeyword ClientAliveCountMax | |
159 syn keyword sshdconfigKeyword ClientAliveInterval | |
160 syn keyword sshdconfigKeyword Compression | |
161 syn keyword sshdconfigKeyword DebianBanner | |
162 syn keyword sshdconfigKeyword DenyGroups | |
163 syn keyword sshdconfigKeyword DenyUsers | |
2034 | 164 syn keyword sshdconfigKeyword ForceCommand |
3224 | 165 syn keyword sshdconfigKeyword GSSAPIAuthentication |
2034 | 166 syn keyword sshdconfigKeyword GSSAPICleanupCredentials |
3224 | 167 syn keyword sshdconfigKeyword GSSAPIKeyExchange |
168 syn keyword sshdconfigKeyword GSSAPIStoreCredentialsOnRekey | |
169 syn keyword sshdconfigKeyword GSSAPIStrictAcceptorCheck | |
170 syn keyword sshdconfigKeyword GatewayPorts | |
171 syn keyword sshdconfigKeyword HostCertificate | |
172 syn keyword sshdconfigKeyword HostKey | |
7597
3012eaddb6b2
commit https://github.com/vim/vim/commit/345efa013dc6d1754ba06e5596a26c48c9935937
Christian Brabandt <cb@256bit.org>
parents:
7384
diff
changeset
|
173 syn keyword sshdconfigKeyword HostKeyAgent |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
174 syn keyword sshdconfigKeyword HostKeyAlgorithms |
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
175 syn keyword sshdconfigKeyword HostbasedAcceptedKeyTypes |
3224 | 176 syn keyword sshdconfigKeyword HostbasedAuthentication |
177 syn keyword sshdconfigKeyword HostbasedUsesNameFromPacketOnly | |
178 syn keyword sshdconfigKeyword IPQoS | |
179 syn keyword sshdconfigKeyword IgnoreRhosts | |
180 syn keyword sshdconfigKeyword IgnoreUserKnownHosts | |
181 syn keyword sshdconfigKeyword KbdInteractiveAuthentication | |
182 syn keyword sshdconfigKeyword KerberosAuthentication | |
183 syn keyword sshdconfigKeyword KerberosGetAFSToken | |
184 syn keyword sshdconfigKeyword KerberosOrLocalPasswd | |
185 syn keyword sshdconfigKeyword KerberosTicketCleanup | |
186 syn keyword sshdconfigKeyword KexAlgorithms | |
2034 | 187 syn keyword sshdconfigKeyword KeyRegenerationInterval |
3224 | 188 syn keyword sshdconfigKeyword ListenAddress |
189 syn keyword sshdconfigKeyword LogLevel | |
190 syn keyword sshdconfigKeyword LoginGraceTime | |
191 syn keyword sshdconfigKeyword MACs | |
192 syn keyword sshdconfigKeyword Match | |
193 syn keyword sshdconfigKeyword MaxAuthTries | |
194 syn keyword sshdconfigKeyword MaxSessions | |
195 syn keyword sshdconfigKeyword MaxStartups | |
196 syn keyword sshdconfigKeyword PasswordAuthentication | |
197 syn keyword sshdconfigKeyword PermitBlacklistedKeys | |
198 syn keyword sshdconfigKeyword PermitEmptyPasswords | |
199 syn keyword sshdconfigKeyword PermitOpen | |
200 syn keyword sshdconfigKeyword PermitRootLogin | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
201 syn keyword sshdconfigKeyword PermitTTY |
3224 | 202 syn keyword sshdconfigKeyword PermitTunnel |
203 syn keyword sshdconfigKeyword PermitUserEnvironment | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
204 syn keyword sshdconfigKeyword PermitUserRC |
3224 | 205 syn keyword sshdconfigKeyword PidFile |
206 syn keyword sshdconfigKeyword Port | |
207 syn keyword sshdconfigKeyword PrintLastLog | |
208 syn keyword sshdconfigKeyword PrintMotd | |
209 syn keyword sshdconfigKeyword Protocol | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
210 syn keyword sshdconfigKeyword PubkeyAcceptedKeyTypes |
2034 | 211 syn keyword sshdconfigKeyword PubkeyAuthentication |
3224 | 212 syn keyword sshdconfigKeyword RSAAuthentication |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
213 syn keyword sshdconfigKeyword RekeyLimit |
3224 | 214 syn keyword sshdconfigKeyword RevokedKeys |
215 syn keyword sshdconfigKeyword RhostsRSAAuthentication | |
216 syn keyword sshdconfigKeyword ServerKeyBits | |
217 syn keyword sshdconfigKeyword ShowPatchLevel | |
218 syn keyword sshdconfigKeyword StrictModes | |
219 syn keyword sshdconfigKeyword Subsystem | |
220 syn keyword sshdconfigKeyword SyslogFacility | |
2034 | 221 syn keyword sshdconfigKeyword TCPKeepAlive |
3224 | 222 syn keyword sshdconfigKeyword TrustedUserCAKeys |
223 syn keyword sshdconfigKeyword UseDNS | |
224 syn keyword sshdconfigKeyword UseLogin | |
225 syn keyword sshdconfigKeyword UsePAM | |
226 syn keyword sshdconfigKeyword UsePrivilegeSeparation | |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
3224
diff
changeset
|
227 syn keyword sshdconfigKeyword VersionAddendum |
3224 | 228 syn keyword sshdconfigKeyword X11DisplayOffset |
229 syn keyword sshdconfigKeyword X11Forwarding | |
230 syn keyword sshdconfigKeyword X11UseLocalhost | |
231 syn keyword sshdconfigKeyword XAuthLocation | |
232 | |
7 | 233 |
234 " Define the default highlighting | |
235 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
236 hi def link sshdconfigComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
237 hi def link sshdconfigTodo Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
238 hi def link sshdconfigHostPort sshdconfigConstant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
239 hi def link sshdconfigTime sshdconfigConstant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
240 hi def link sshdconfigNumber sshdconfigConstant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
241 hi def link sshdconfigConstant Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
242 hi def link sshdconfigYesNo sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
243 hi def link sshdconfigAddressFamily sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
244 hi def link sshdconfigPrivilegeSeparation sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
245 hi def link sshdconfigTcpForwarding sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
246 hi def link sshdconfigRootLogin sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
247 hi def link sshdconfigCiphers sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
248 hi def link sshdconfigMAC sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
249 hi def link sshdconfigHostKeyAlgo sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
250 hi def link sshdconfigRootLogin sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
251 hi def link sshdconfigLogLevel sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
252 hi def link sshdconfigSysLogFacility sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
253 hi def link sshdconfigVar sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
254 hi def link sshdconfigCompression sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
255 hi def link sshdconfigIPQoS sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
256 hi def link sshdconfigKexAlgo sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
257 hi def link sshdconfigTunnel sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
258 hi def link sshdconfigSubsystem sshdconfigEnum |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
259 hi def link sshdconfigEnum Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
260 hi def link sshdconfigSpecial Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
261 hi def link sshdconfigKeyword Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
262 hi def link sshdconfigMatch Type |
7 | 263 |
264 let b:current_syntax = "sshdconfig" | |
3224 | 265 |
266 " vim:set ts=8 sw=2 sts=2: |