Skip to content
Snippets Groups Projects
Commit 33f381ae authored by Jerome Reybert's avatar Jerome Reybert
Browse files

syntax/magit.vim: fix sha1 highlight

short sha1 default lenght depends on the repo size
parent f20bfdaa
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ execute 'syn match gitInfoRepo "\%(' . g:magit_section_info.cur_repo . ':\)
execute 'syn match gitInfoBranch "\%(' . g:magit_section_info.cur_branch . ':\)\@<=.*$" oneline'
execute 'syn match gitCommitMode "\%(' . g:magit_section_info.commit_mode . ':\)\@<=.*$" oneline'
execute 'syn match gitInfoCommit "\%(' . g:magit_section_info.cur_commit . ':\)\@<=.*$" contains=infoSha1 oneline'
syntax match infoSha1 containedin=gitInfoCommit "\x\{7}"
syntax match infoSha1 containedin=gitInfoCommit "\x\{7,}"
highlight default link gitInfoRepo Directory
highlight default link gitInfoBranch Identifier
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment