add vim syntax file for diffs

This commit is contained in:
Mirek Kratochvil 2025-10-14 10:36:54 +02:00
parent 6682b5ed37
commit 6beaeec8e7

8
vim/wergediff.vim Normal file
View file

@ -0,0 +1,8 @@
syntax region wergeDiffChange start=/<<<<</ end=/>>>>>/ contains=wergeDiffRm,wergeDiffAdd
syntax region wergeDiffRm start=/<<<<</hs=e+1 end=/|||||/he=b-1,me=b-1 contained
syntax region wergeDiffAdd start=/|||||/hs=e+1 end=/>>>>>/he=b-1,me=b-1 contained
highlight default link wergeDiffChange Comment
highlight default link wergeDiffRm Removed
highlight default link wergeDiffAdd Added