Mercurial > vim
annotate runtime/syntax/gitrebase.vim @ 10628:91d55e7056ac
Added tag v8.0.0203 for changeset fb9c28aca006f7dee0b71b554cef6f727480d072
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 17 Jan 2017 19:30:05 +0100 |
parents | 43efa4f5a8ea |
children | 5c40013d45ee |
rev | line source |
---|---|
1620 | 1 " Vim syntax file |
2 " Language: git rebase --interactive | |
2034 | 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
1620 | 4 " Filenames: git-rebase-todo |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4681
diff
changeset
|
5 " Last Change: 2016 Aug 29 |
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 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4681
diff
changeset
|
21 syn match gitrebaseDrop "\v^d%(rop)=>" nextgroup=gitrebaseCommit skipwhite |
1620 | 22 syn match gitrebaseSummary ".*" contains=gitrebaseHash contained |
3465 | 23 syn match gitrebaseCommand ".*" contained |
1620 | 24 syn match gitrebaseComment "^#.*" contains=gitrebaseHash |
2202 | 25 syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite |
1620 | 26 |
27 hi def link gitrebaseCommit gitrebaseHash | |
28 hi def link gitrebaseHash Identifier | |
29 hi def link gitrebasePick Statement | |
2202 | 30 hi def link gitrebaseReword Number |
1620 | 31 hi def link gitrebaseEdit PreProc |
32 hi def link gitrebaseSquash Type | |
2202 | 33 hi def link gitrebaseFixup Special |
3465 | 34 hi def link gitrebaseExec Function |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4681
diff
changeset
|
35 hi def link gitrebaseDrop Comment |
1620 | 36 hi def link gitrebaseSummary String |
37 hi def link gitrebaseComment Comment | |
2034 | 38 hi def link gitrebaseSquashError Error |
1620 | 39 |
40 let b:current_syntax = "gitrebase" |