neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

codeowners.vim (671B)


      1 " Vim syntax file
      2 " Language:	codeowners
      3 " Maintainer:	Jon Parise <jon@indelible.org>
      4 " Last Change:	2025 Sep 14
      5 
      6 if exists('b:current_syntax')
      7  finish
      8 endif
      9 
     10 " Comments
     11 syn match codeownersComment /#.*$/ contains=codeownersTodo,@Spell
     12 syn keyword codeownersTodo TODO FIXME XXX contained
     13 
     14 " Patterns
     15 syn match codeownersPattern /^#\@![^#]*/ contains=codeownersGlob
     16 syn match codeownersGlob /^\S\+/ contained nextgroup=codeownersOwner skipwhite
     17 syn match codeownersOwner /\S\+/ contained nextgroup=codeownersOwner skipwhite
     18 
     19 hi def link codeownersComment Comment
     20 hi def link codeownersOwner Identifier
     21 hi def link codeownersTodo Todo
     22 
     23 let b:current_syntax = 'codeowners'