1620
|
1 " Vim syntax file
|
|
2 " Language: git rebase --interactive
|
2034
|
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
1620
|
4 " Filenames: git-rebase-todo
|
3465
|
5 " Last Change: 2012 April 7
|
1620
|
6
|
|
7 if exists("b:current_syntax")
|
2202
|
8 finish
|
1620
|
9 endif
|
|
10
|
|
11 syn case match
|
|
12
|
|
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
|
2202
|
16 syn match gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
|
1620
|
17 syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite
|
|
18 syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
|
2202
|
19 syn match gitrebaseFixup "\v^f%(ixup)=>" nextgroup=gitrebaseCommit skipwhite
|
3465
|
20 syn match gitrebaseExec "\v^%(x|exec)>" nextgroup=gitrebaseCommand skipwhite
|
1620
|
21 syn match gitrebaseSummary ".*" contains=gitrebaseHash contained
|
3465
|
22 syn match gitrebaseCommand ".*" contained
|
1620
|
23 syn match gitrebaseComment "^#.*" contains=gitrebaseHash
|
2202
|
24 syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
|
1620
|
25
|
|
26 hi def link gitrebaseCommit gitrebaseHash
|
|
27 hi def link gitrebaseHash Identifier
|
|
28 hi def link gitrebasePick Statement
|
2202
|
29 hi def link gitrebaseReword Number
|
1620
|
30 hi def link gitrebaseEdit PreProc
|
|
31 hi def link gitrebaseSquash Type
|
2202
|
32 hi def link gitrebaseFixup Special
|
3465
|
33 hi def link gitrebaseExec Function
|
1620
|
34 hi def link gitrebaseSummary String
|
|
35 hi def link gitrebaseComment Comment
|
2034
|
36 hi def link gitrebaseSquashError Error
|
1620
|
37
|
|
38 let b:current_syntax = "gitrebase"
|