sshknownhosts.vim (1287B)
1 " Vim syntax file 2 " Language: OpenSSH known hosts file 3 " Author: Fionn Fitzmaurice (github.com/fionn) 4 " Maintainer: Fionn Fitzmaurice (github.com/fionn) 5 " License: Vim & Apache 2.0 6 " Last Change: 2026 Jun 28 7 " 2026 Sep 28 by Vim project: update syntax file #21387 8 9 if exists("b:current_syntax") 10 finish 11 endif 12 13 runtime! syntax/sshpublickey.vim 14 15 syn match sshKnownHostsMarker "^@cert-authority\>" nextgroup=sshKnownHostsHostname,sshKnownHostsHashedHostname skipwhite 16 syn match sshKnownHostsMarker "^@revoked\>" nextgroup=sshKnownHostsHostname,sshKnownHostsHashedHostname skipwhite 17 18 syn match sshKnownHostsHostname "!\?[a-zA-Z0-9.*-]\+" nextgroup=sshKnownHostsHostnameSeparator,sshKeyType skipwhite 19 syn match sshKnownHostsHostname "!\?\[[a-zA-Z0-9.*-]\+\]:[0-9]\{1,5}" nextgroup=sshKnownHostsHostnameSeparator,sshKeyType skipwhite 20 syn match sshKnownHostsHostnameSeparator "," contained nextgroup=sshKnownHostsHostname 21 22 syn match sshKnownHostsHashedHostname "|1|[a-zA-Z0-9/+]\+=\{,2}|[a-zA-Z0-9/+]\+=\{,2}" nextgroup=sshKeyType skipwhite 23 24 hi def link sshKnownHostsMarker Statement 25 hi def link sshKnownHostsHostname Identifier 26 hi def link sshKnownHostsHostnameSeparator Delimiter 27 hi def link sshKnownHostsHashedHostname Identifier 28 29 let b:current_syntax = "sshknownhosts"