neovim

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

cvsrc.vim (1254B)


      1 " Vim syntax file
      2 " Language:             cvs(1) RC file
      3 " Previous Maintainer:  Nikolai Weibull <now@bitwi.se>
      4 " Latest Revision:      2006-04-19
      5 
      6 if exists("b:current_syntax")
      7  finish
      8 endif
      9 
     10 let s:cpo_save = &cpo
     11 set cpo&vim
     12 
     13 syn region  cvsrcString   display oneline start=+"+ skip=+\\\\\|\\\\"+ end=+"+
     14 syn region  cvsrcString   display oneline start=+'+ skip=+\\\\\|\\\\'+ end=+'+
     15 
     16 syn match   cvsrcNumber   display '\<\d\+\>'
     17 
     18 syn match   cvsrcBegin    display '^' nextgroup=cvsrcCommand skipwhite
     19 
     20 syn region  cvsrcCommand  contained transparent matchgroup=cvsrcCommand
     21                          \ start='add\|admin\|checkout\|commit\|cvs\|diff'
     22                          \ start='export\|history\|import\|init\|log'
     23                          \ start='rdiff\|release\|remove\|rtag\|status\|tag'
     24                          \ start='update'
     25                          \ end='$'
     26                          \ contains=cvsrcOption,cvsrcString,cvsrcNumber
     27                          \ keepend
     28 
     29 syn match   cvsrcOption   contained display '-\a\+'
     30 
     31 hi def link cvsrcString   String
     32 hi def link cvsrcNumber   Number
     33 hi def link cvsrcCommand  Keyword
     34 hi def link cvsrcOption   Identifier
     35 
     36 let b:current_syntax = "cvsrc"
     37 
     38 let &cpo = s:cpo_save
     39 unlet s:cpo_save