Skip to content

Commit

Permalink
Highlight word underscores as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Aug 26, 2011
1 parent 8f7b69b commit ac0d7de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/markdown.vim
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit ac0d7de

Please sign in to comment.