Skip to content

Commit

Permalink
Check user's commit message length fix #86
Browse files Browse the repository at this point in the history
  • Loading branch information
scps950707 authored and jreybert committed Feb 22, 2017
1 parent e962ead commit d4d88c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syntax/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ syn include @diff syntax/diff.vim
execute 'syn match titleEntry "' . g:magit_section_re . '\n=\+"'
hi def link titleEntry Comment

execute 'syn match commitMsgExceed "\(=\+\n.\{50}\)\@<=.*$"'
hi def link commitMsgExceed Comment

execute 'syn match stashEntry "' . g:magit_stash_re . '"'
hi def link stashEntry String

execute 'syn match fileEntry "' . g:magit_file_re . '"'
hi def link fileEntry String

execute 'syn region gitTitle start=/^$\n' . g:magit_section_re . '/ end=/^$/ contains=titleEntry'
execute 'syn region gitTitle start=/^$\n' . g:magit_section_re . '/ end=/^$/ contains=titleEntry,commitMsgExceed'

execute 'syn region gitStash start=/' . g:magit_stash_re . '/ end=/\%(' .
\ g:magit_stash_re . '\)\@=/ contains=stashEntry fold'
Expand Down

0 comments on commit d4d88c3

Please sign in to comment.