related: #21387 Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
34 lines
1.6 KiB
VimL
34 lines
1.6 KiB
VimL
" Vim syntax file
|
|
" Language: OpenSSH allowed signers 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
|
|
|
|
syn match sshAllowedSignersPrincipal "!\?[a-zA-Z0-9.*?_+-]\+@[a-zA-Z0-9.*?-]\+" nextgroup=sshAllowedSignersPrincipalSeparator,sshAllowedSignersOptions,sshKeyType skipwhite
|
|
syn match sshAllowedSignersPrincipalSeparator "," contained nextgroup=sshAllowedSignersPrincipal
|
|
|
|
syn region sshAllowedSignersOptions start="[a-z]" end="\s\@=" contains=@sshAllowedSignersOption nextgroup=sshKeyType skipwhite oneline contained
|
|
syn cluster sshAllowedSignersOption contains=sshAllowedSignersOptionKeyword,sshAllowedSignersOptionSeparator,sshAllowedSignersOptionAssignment,sshAllowedSignersOptionValue
|
|
syn keyword sshAllowedSignersOptionKeyword namespaces cert-authority valid-after valid-before contained
|
|
syn match sshAllowedSignersOptionSeparator "," contained
|
|
syn match sshAllowedSignersOptionAssignment "=" contained
|
|
syn match sshAllowedSignersOptionValue '"\(\\\"\|[^"]\)*"' contained
|
|
|
|
runtime! syntax/sshpublickey.vim
|
|
|
|
hi def link sshAllowedSignersPrincipal Identifier
|
|
hi def link sshAllowedSignersPrincipalSeparator Delimiter
|
|
|
|
hi def link sshAllowedSignersOptionKeyword Keyword
|
|
hi def link sshAllowedSignersOptionSeparator Delimiter
|
|
hi def link sshAllowedSignersOptionAssignment Operator
|
|
hi def link sshAllowedSignersOptionValue String
|
|
|
|
let b:current_syntax = "sshallowedsigners"
|