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