vim

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

sshauthorizedkeys.vim (1159B)


      1 " Vim syntax file
      2 " Language:     OpenSSH authorized keys 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 region sshAuthorizedKeyOptions start="^[a-z]" end="\s" contains=@sshAuthorizedKeyOption nextgroup=sshKeyType skipwhite oneline
     14 syn cluster sshAuthorizedKeyOption contains=sshAuthorizedKeyOptionKeyword,sshAuthorizedKeyOptionSeparator,sshAuthorizedKeyOptionAssignment,sshAuthorizedKeyOptionValue
     15 syn match sshAuthorizedKeyOptionKeyword "[a-z-]\+" contained
     16 syn match sshAuthorizedKeyOptionSeparator "," contained
     17 syn match sshAuthorizedKeyOptionAssignment "=" contained
     18 syn match sshAuthorizedKeyOptionValue '"\(\\\"\|[^"]\)*"' contained
     19 
     20 runtime! syntax/sshpublickey.vim
     21 
     22 hi def link sshAuthorizedKeyOptionKeyword Keyword
     23 hi def link sshAuthorizedKeyOptionSeparator Delimiter
     24 hi def link sshAuthorizedKeyOptionAssignment Operator
     25 hi def link sshAuthorizedKeyOptionValue String
     26 
     27 let b:current_syntax = "sshauthorizedkeys"