3 Commits

Author SHA1 Message Date
Caleb Maclennan
f0b0a9350a Merge 151fdcd6e2 into f405b47fd8 2024-09-26 14:58:52 +00:00
Caleb Maclennan
151fdcd6e2 Link trailing whitespace to Error color 2016-03-08 09:17:31 +02:00
Frans-Jan van Steenbeek
67338160b7 Add highlighting for trailing whitespace Double spaces are used in markdown to trigger a hard linebreak 2016-03-08 09:16:45 +02:00

View File

@@ -145,6 +145,7 @@ if get(b:, 'markdown_yaml_head', get(g:, 'markdown_yaml_head', main_syntax ==# '
endif
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
syn match markdownImplicitBreak "\s*\ \ $" containedin=ALL
syn match markdownError "\w\@<=_\w\@="
hi def link markdownH1 htmlH1
@@ -190,6 +191,7 @@ hi def link markdownStrikeDelimiter markdownStrike
hi def link markdownCodeDelimiter Delimiter
hi def link markdownEscape Special
hi def link markdownImplicitBreak Error
hi def link markdownError Error
let b:current_syntax = "markdown"