summaryrefslogtreecommitdiffstats
path: root/syntax/gitrebase.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/gitrebase.vim')
-rw-r--r--syntax/gitrebase.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/gitrebase.vim b/syntax/gitrebase.vim
index 54bd3984..3a66f0a2 100644
--- a/syntax/gitrebase.vim
+++ b/syntax/gitrebase.vim
@@ -23,7 +23,7 @@ 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 gitrebaseComment "^\s*#.*" contains=gitrebaseHash
syn match gitrebaseSquashError "\v%^%(s%(quash)=>|f%(ixup)=>)" nextgroup=gitrebaseCommit skipwhite
hi def link gitrebaseCommit gitrebaseHash