Skip to content
Snippets Groups Projects
Commit d4d88c34 authored by scps950707's avatar scps950707 Committed by Jerome Reybert
Browse files

Check user's commit message length fix #86

parent e962ead5
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment