fix(git/log): match sha-256 hashes in syntax

This commit is contained in:
2026-05-09 02:07:48 +02:00
parent cfe09b4a48
commit 749ecd27fc
+2 -2
View File
@@ -4,7 +4,7 @@ endif
syntax match gitlogGraph contained /^[*|\\\/_ ]*/ syntax match gitlogGraph contained /^[*|\\\/_ ]*/
\ nextgroup=gitlogHash \ nextgroup=gitlogHash
syntax match gitlogHash contained /\<\x\{7,40\}\>/ syntax match gitlogHash contained /\<\x\{7,64\}\>/
\ nextgroup=gitlogDate skipwhite \ nextgroup=gitlogDate skipwhite
syntax match gitlogDate contained /\<\d\{4}-\d\{2}-\d\{2}\>/ syntax match gitlogDate contained /\<\d\{4}-\d\{2}-\d\{2}\>/
\ nextgroup=gitlogAuthor skipwhite \ nextgroup=gitlogAuthor skipwhite
@@ -12,7 +12,7 @@ syntax match gitlogAuthor contained /{[^}]\+}/
\ nextgroup=gitlogRef skipwhite \ nextgroup=gitlogRef skipwhite
syntax match gitlogRef contained /([^)]\+)/ syntax match gitlogRef contained /([^)]\+)/
syntax match gitlogLine syntax match gitlogLine
\ /^[*|\\\/_ ]*\x\{7,40}\s\+\d\{4}-\d\{2}-\d\{2}\s\+{[^}]\+}.*/ \ /^[*|\\\/_ ]*\x\{7,64}\s\+\d\{4}-\d\{2}-\d\{2}\s\+{[^}]\+}.*/
\ contains=gitlogGraph \ contains=gitlogGraph
syntax match gitlogGraphLine /^[*|\\\/_ ]\+$/ syntax match gitlogGraphLine /^[*|\\\/_ ]\+$/
\ contains=gitlogGraph \ contains=gitlogGraph