mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-20 07:43:41 -05:00
Add highlighting for trailing whitespace Double spaces are used in markdown to trigger a hard linebreak
This commit is contained in:
committed by
Caleb Maclennan
parent
4260faa48f
commit
67338160b7
@@ -110,6 +110,7 @@ if main_syntax ==# 'markdown'
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
|
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
|
||||||
|
syn match markdownImplicitBreak "\s*\ \ $" containedin=ALL
|
||||||
syn match markdownError "\w\@<=_\w\@="
|
syn match markdownError "\w\@<=_\w\@="
|
||||||
|
|
||||||
hi def link markdownH1 htmlH1
|
hi def link markdownH1 htmlH1
|
||||||
@@ -147,6 +148,7 @@ hi def link markdownBoldItalicDelimiter markdownBoldItalic
|
|||||||
hi def link markdownCodeDelimiter Delimiter
|
hi def link markdownCodeDelimiter Delimiter
|
||||||
|
|
||||||
hi def link markdownEscape Special
|
hi def link markdownEscape Special
|
||||||
|
hi def markdownImplicitBreak ctermbg=darkgreen guibg=lightgreen
|
||||||
hi def link markdownError Error
|
hi def link markdownError Error
|
||||||
|
|
||||||
let b:current_syntax = "markdown"
|
let b:current_syntax = "markdown"
|
||||||
|
|||||||
Reference in New Issue
Block a user