2017-09-27 14:43:42 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1
|
|
|
|
|
|
|
|
" Vim syntax file
|
|
|
|
" Language: git rebase --interactive
|
|
|
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
|
|
|
" Filenames: git-rebase-todo
|
|
|
|
" Last Change: 2016 Aug 29
|
|
|
|
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
syn case match
|
|
|
|
|
|
|
|
syn match gitrebaseHash "\v<\x{7,40}>" contained
|
|
|
|
syn match gitrebaseCommit "\v<\x{7,40}>" nextgroup=gitrebaseSummary skipwhite
|
|
|
|
syn match gitrebasePick "\v^p%(ick)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseFixup "\v^f%(ixup)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseExec "\v^%(x|exec)>" nextgroup=gitrebaseCommand skipwhite
|
|
|
|
syn match gitrebaseDrop "\v^d%(rop)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseSummary ".*" contains=gitrebaseHash contained
|
|
|
|
syn match gitrebaseCommand ".*" contained
|
|
|
|
syn match gitrebaseComment "^#.*" contains=gitrebaseHash
|
|
|
|
syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
|
|
|
|
hi def link gitrebaseCommit gitrebaseHash
|
|
|
|
hi def link gitrebaseHash Identifier
|
|
|
|
hi def link gitrebasePick Statement
|
|
|
|
hi def link gitrebaseReword Number
|
|
|
|
hi def link gitrebaseEdit PreProc
|
|
|
|
hi def link gitrebaseSquash Type
|
|
|
|
hi def link gitrebaseFixup Special
|
|
|
|
hi def link gitrebaseExec Function
|
|
|
|
hi def link gitrebaseDrop Comment
|
|
|
|
hi def link gitrebaseSummary String
|
|
|
|
hi def link gitrebaseComment Comment
|
|
|
|
hi def link gitrebaseSquashError Error
|
|
|
|
|
|
|
|
let b:current_syntax = "gitrebase"
|
|
|
|
|
|
|
|
endif
|
2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
|
|
|
|
|
2013-09-12 11:33:47 -04:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: git rebase --interactive
|
|
|
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
|
|
|
" Filenames: git-rebase-todo
|
2015-12-17 04:44:58 -05:00
|
|
|
" Last Change: 2013 May 30
|
2013-09-12 11:33:47 -04:00
|
|
|
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
syn case match
|
|
|
|
|
|
|
|
syn match gitrebaseHash "\v<\x{7,40}>" contained
|
|
|
|
syn match gitrebaseCommit "\v<\x{7,40}>" nextgroup=gitrebaseSummary skipwhite
|
|
|
|
syn match gitrebasePick "\v^p%(ick)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseFixup "\v^f%(ixup)=>" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
syn match gitrebaseExec "\v^%(x|exec)>" nextgroup=gitrebaseCommand skipwhite
|
2015-12-06 05:31:38 -05:00
|
|
|
syn match gitrebaseDrop "\v^d%(rop)=>" nextgroup=gitrebaseCommit skipwhite
|
2013-09-12 11:33:47 -04:00
|
|
|
syn match gitrebaseSummary ".*" contains=gitrebaseHash contained
|
|
|
|
syn match gitrebaseCommand ".*" contained
|
2016-09-11 07:24:17 -04:00
|
|
|
syn match gitrebaseComment "^\s*#.*" contains=gitrebaseHash
|
2013-09-12 11:33:47 -04:00
|
|
|
syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
|
|
|
|
|
|
|
|
hi def link gitrebaseCommit gitrebaseHash
|
|
|
|
hi def link gitrebaseHash Identifier
|
|
|
|
hi def link gitrebasePick Statement
|
|
|
|
hi def link gitrebaseReword Number
|
|
|
|
hi def link gitrebaseEdit PreProc
|
|
|
|
hi def link gitrebaseSquash Type
|
|
|
|
hi def link gitrebaseFixup Special
|
|
|
|
hi def link gitrebaseExec Function
|
2015-12-17 04:44:58 -05:00
|
|
|
hi def link gitrebaseDrop Comment
|
2013-09-12 11:33:47 -04:00
|
|
|
hi def link gitrebaseSummary String
|
|
|
|
hi def link gitrebaseComment Comment
|
|
|
|
hi def link gitrebaseSquashError Error
|
|
|
|
|
|
|
|
let b:current_syntax = "gitrebase"
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|