Permalink
Browse files

Highlight word underscores as errors

  • Loading branch information...
tpope committed Aug 26, 2011
1 parent 8f7b69b commit ac0d7dee842a400efd279a725dded6a7dffb81cb
Showing with 2 additions and 0 deletions.
  1. +2 −0 syntax/markdown.vim
View
@@ -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"

0 comments on commit ac0d7de

Please sign in to comment.