whitespace: Skip '===' conflict marker for markdown

fixes: #2014
This commit is contained in:
Christian Brabandt 2021-04-23 08:48:00 +02:00
parent 07ab201a27
commit 0a87d08dbd
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -52,7 +52,7 @@ endfunction
function! s:conflict_marker()
" Checks for git conflict markers
let annotation = '\%([0-9A-Za-z_.:]\+\)\?'
if &ft is# 'rst'
if match(['rst', 'markdown'], &ft) >= 0
" rst filetypes use '=======' as header
let pattern = '^\%(\%(<\{7} '.annotation. '\)\|\%(>\{7\} '.annotation.'\)\)$'
else