Add highlighting for trailing whitespace Double spaces are used in markdown to trigger a hard linebreak

This commit is contained in:
Frans-Jan van Steenbeek
2013-10-15 14:49:01 +02:00
committed by Caleb Maclennan
parent 4260faa48f
commit 67338160b7

View File

@@ -110,6 +110,7 @@ if main_syntax ==# 'markdown'
endif
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
syn match markdownImplicitBreak "\s*\ \ $" containedin=ALL
syn match markdownError "\w\@<=_\w\@="
hi def link markdownH1 htmlH1
@@ -147,6 +148,7 @@ hi def link markdownBoldItalicDelimiter markdownBoldItalic
hi def link markdownCodeDelimiter Delimiter
hi def link markdownEscape Special
hi def markdownImplicitBreak ctermbg=darkgreen guibg=lightgreen
hi def link markdownError Error
let b:current_syntax = "markdown"