Mercurial > vim
annotate runtime/syntax/gitrebase.vim @ 5351:923738744a60 v7.4.028
updated for version 7.4.028
Problem: Equivalence classes are not working for multi-byte characters.
Solution: Copy the rules from the old to the new regexp engine. Add a test
to check both engines.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 19 Sep 2013 17:00:20 +0200 |
parents | 2eb30f341e8d |
children | 43efa4f5a8ea |
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 |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3465
diff
changeset
|
5 " Last Change: 2013 May 30 |
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" |