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