2 " Language: git rebase --interactive
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
4 " Filenames: git-rebase-todo
5 " Last Change: 2013 May 30
7 if exists("b:current_syntax")
13 syn match gitrebaseHash "\v<\x{7,40}>" contained
14 syn match gitrebaseCommit "\v<\x{7,40}>" nextgroup=gitrebaseSummary skipwhite
15 syn match gitrebasePick "\v^p%(ick)=>" nextgroup=gitrebaseCommit skipwhite
16 syn match gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
17 syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite
18 syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
19 syn match gitrebaseFixup "\v^f%(ixup)=>" nextgroup=gitrebaseCommit skipwhite
20 syn match gitrebaseExec "\v^%(x|exec)>" nextgroup=gitrebaseCommand skipwhite
21 syn match gitrebaseSummary ".*" contains=gitrebaseHash contained
22 syn match gitrebaseCommand ".*" contained
23 syn match gitrebaseComment "^#.*" contains=gitrebaseHash
24 syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
26 hi def link gitrebaseCommit gitrebaseHash
27 hi def link gitrebaseHash Identifier
28 hi def link gitrebasePick Statement
29 hi def link gitrebaseReword Number
30 hi def link gitrebaseEdit PreProc
31 hi def link gitrebaseSquash Type
32 hi def link gitrebaseFixup Special
33 hi def link gitrebaseExec Function
34 hi def link gitrebaseSummary String
35 hi def link gitrebaseComment Comment
36 hi def link gitrebaseSquashError Error
38 let b:current_syntax = "gitrebase"