]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/syntax/gitrebase.vim
Replace deoplete with coc
[rbdr/dotfiles] / vim / syntax / gitrebase.vim
1 " Vim syntax file
2 " Language: git rebase --interactive
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
4 " Filenames: git-rebase-todo
5
6 if exists("b:current_syntax")
7 finish
8 endif
9
10 syn case match
11
12 syn match gitrebaseHash "\v<\x{7,40}>" contained
13 syn match gitrebaseCommit "\v<\x{7,40}>" nextgroup=gitrebaseSummary skipwhite
14 syn match gitrebasePick "\v^p%(ick)=>" nextgroup=gitrebaseCommit skipwhite
15 syn match gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
16 syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite
17 syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
18 syn match gitrebaseFixup "\v^f%(ixup)=>" nextgroup=gitrebaseCommit skipwhite
19 syn match gitrebaseSummary ".*" contains=gitrebaseHash contained
20 syn match gitrebaseComment "^#.*" contains=gitrebaseHash
21 syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
22
23 hi def link gitrebaseCommit gitrebaseHash
24 hi def link gitrebaseHash Identifier
25 hi def link gitrebasePick Statement
26 hi def link gitrebaseReword Number
27 hi def link gitrebaseEdit PreProc
28 hi def link gitrebaseSquash Type
29 hi def link gitrebaseFixup Special
30 hi def link gitrebaseSummary String
31 hi def link gitrebaseComment Comment
32 hi def link gitrebaseSquashError Error
33
34 let b:current_syntax = "gitrebase"