Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Highlight word underscores as errors

  • Loading branch information...
commit ac0d7dee842a400efd279a725dded6a7dffb81cb 1 parent 8f7b69b
@tpope authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  syntax/markdown.vim
View
2  syntax/markdown.vim
@@ -69,6 +69,7 @@ syn region markdownCode matchgroup=markdownCodeDelimiter start="`` \=" end=" \=`
syn region markdownCode matchgroup=markdownCodeDelimiter start="^\s*\zs```\w*\ze\s*$" end="^```\ze\s*$" keepend
syn match markdownEscape "\\[][\\`*_{}()#+.!-]"
+syn match markdownError "\w\@<=_\w\@="
hi def link markdownH1 htmlH1
hi def link markdownH2 htmlH2
@@ -99,6 +100,7 @@ hi def link markdownBoldItalic htmlBoldItalic
hi def link markdownCodeDelimiter Delimiter
hi def link markdownEscape Special
+hi def link markdownError Error
let b:current_syntax = "markdown"
Please sign in to comment.
Something went wrong with that request. Please try again.