mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-10-06 18:37:27 +02:00
closes: #21387 Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
30 lines
1.3 KiB
VimL
30 lines
1.3 KiB
VimL
" Vim syntax file
|
|
" Language: OpenSSH known hosts file
|
|
" Author: Fionn Fitzmaurice (github.com/fionn)
|
|
" Maintainer: Fionn Fitzmaurice (github.com/fionn)
|
|
" License: Vim & Apache 2.0
|
|
" Last Change: 2026 Jun 28
|
|
" 2026 Sep 28 by Vim project: update syntax file #21387
|
|
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
runtime! syntax/sshpublickey.vim
|
|
|
|
syn match sshKnownHostsMarker "^@cert-authority\>" nextgroup=sshKnownHostsHostname,sshKnownHostsHashedHostname skipwhite
|
|
syn match sshKnownHostsMarker "^@revoked\>" nextgroup=sshKnownHostsHostname,sshKnownHostsHashedHostname skipwhite
|
|
|
|
syn match sshKnownHostsHostname "!\?[a-zA-Z0-9.*-]\+" nextgroup=sshKnownHostsHostnameSeparator,sshKeyType skipwhite
|
|
syn match sshKnownHostsHostname "!\?\[[a-zA-Z0-9.*-]\+\]:[0-9]\{1,5}" nextgroup=sshKnownHostsHostnameSeparator,sshKeyType skipwhite
|
|
syn match sshKnownHostsHostnameSeparator "," contained nextgroup=sshKnownHostsHostname
|
|
|
|
syn match sshKnownHostsHashedHostname "|1|[a-zA-Z0-9/+]\+=\{,2}|[a-zA-Z0-9/+]\+=\{,2}" nextgroup=sshKeyType skipwhite
|
|
|
|
hi def link sshKnownHostsMarker Statement
|
|
hi def link sshKnownHostsHostname Identifier
|
|
hi def link sshKnownHostsHostnameSeparator Delimiter
|
|
hi def link sshKnownHostsHashedHostname Identifier
|
|
|
|
let b:current_syntax = "sshknownhosts"
|