vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

sshallowedsigners.vim (1607B)


      1 " Vim syntax file
      2 " Language:     OpenSSH allowed signers 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 syn match sshAllowedSignersPrincipal "!\?[a-zA-Z0-9.*?_+-]\+@[a-zA-Z0-9.*?-]\+" nextgroup=sshAllowedSignersPrincipalSeparator,sshAllowedSignersOptions,sshKeyType skipwhite
     14 syn match sshAllowedSignersPrincipalSeparator "," contained nextgroup=sshAllowedSignersPrincipal
     15 
     16 syn region sshAllowedSignersOptions start="[a-z]" end="\s\@=" contains=@sshAllowedSignersOption nextgroup=sshKeyType skipwhite oneline contained
     17 syn cluster sshAllowedSignersOption contains=sshAllowedSignersOptionKeyword,sshAllowedSignersOptionSeparator,sshAllowedSignersOptionAssignment,sshAllowedSignersOptionValue
     18 syn keyword sshAllowedSignersOptionKeyword namespaces cert-authority valid-after valid-before contained
     19 syn match sshAllowedSignersOptionSeparator "," contained
     20 syn match sshAllowedSignersOptionAssignment "=" contained
     21 syn match sshAllowedSignersOptionValue '"\(\\\"\|[^"]\)*"' contained
     22 
     23 runtime! syntax/sshpublickey.vim
     24 
     25 hi def link sshAllowedSignersPrincipal Identifier
     26 hi def link sshAllowedSignersPrincipalSeparator Delimiter
     27 
     28 hi def link sshAllowedSignersOptionKeyword Keyword
     29 hi def link sshAllowedSignersOptionSeparator Delimiter
     30 hi def link sshAllowedSignersOptionAssignment Operator
     31 hi def link sshAllowedSignersOptionValue String
     32 
     33 let b:current_syntax = "sshallowedsigners"