xref: /vim-8.2.3635/runtime/syntax/gitrebase.vim (revision 53bfca22)
13577c6faSBram Moolenaar" Vim syntax file
23577c6faSBram Moolenaar" Language:	git rebase --interactive
35c73622aSBram Moolenaar" Maintainer:	Tim Pope <[email protected]>
43577c6faSBram Moolenaar" Filenames:	git-rebase-todo
5*53bfca22SBram Moolenaar" Last Change:	2012 April 7
63577c6faSBram Moolenaar
73577c6faSBram Moolenaarif exists("b:current_syntax")
83577c6faSBram Moolenaar  finish
93577c6faSBram Moolenaarendif
103577c6faSBram Moolenaar
113577c6faSBram Moolenaarsyn case match
123577c6faSBram Moolenaar
133577c6faSBram Moolenaarsyn match   gitrebaseHash   "\v<\x{7,40}>"                             contained
143577c6faSBram Moolenaarsyn match   gitrebaseCommit "\v<\x{7,40}>"  nextgroup=gitrebaseSummary skipwhite
153577c6faSBram Moolenaarsyn match   gitrebasePick   "\v^p%(ick)=>"   nextgroup=gitrebaseCommit skipwhite
165c73622aSBram Moolenaarsyn match   gitrebaseReword "\v^r%(eword)=>" nextgroup=gitrebaseCommit skipwhite
177a329911SBram Moolenaarsyn match   gitrebaseEdit   "\v^e%(dit)=>"   nextgroup=gitrebaseCommit skipwhite
183577c6faSBram Moolenaarsyn match   gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite
197a329911SBram Moolenaarsyn match   gitrebaseFixup  "\v^f%(ixup)=>"  nextgroup=gitrebaseCommit skipwhite
20*53bfca22SBram Moolenaarsyn match   gitrebaseExec   "\v^%(x|exec)>" nextgroup=gitrebaseCommand skipwhite
213577c6faSBram Moolenaarsyn match   gitrebaseSummary ".*"               contains=gitrebaseHash contained
22*53bfca22SBram Moolenaarsyn match   gitrebaseCommand ".*"                                      contained
233577c6faSBram Moolenaarsyn match   gitrebaseComment "^#.*"             contains=gitrebaseHash
247a329911SBram Moolenaarsyn match   gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
253577c6faSBram Moolenaar
263577c6faSBram Moolenaarhi def link gitrebaseCommit         gitrebaseHash
273577c6faSBram Moolenaarhi def link gitrebaseHash           Identifier
283577c6faSBram Moolenaarhi def link gitrebasePick           Statement
297a329911SBram Moolenaarhi def link gitrebaseReword         Number
303577c6faSBram Moolenaarhi def link gitrebaseEdit           PreProc
313577c6faSBram Moolenaarhi def link gitrebaseSquash         Type
327a329911SBram Moolenaarhi def link gitrebaseFixup          Special
33*53bfca22SBram Moolenaarhi def link gitrebaseExec           Function
343577c6faSBram Moolenaarhi def link gitrebaseSummary        String
353577c6faSBram Moolenaarhi def link gitrebaseComment        Comment
363577c6faSBram Moolenaarhi def link gitrebaseSquashError    Error
373577c6faSBram Moolenaar
383577c6faSBram Moolenaarlet b:current_syntax = "gitrebase"
39