gregsexton / MatchTag

Vim's MatchParen for HTML tags
http://www.vim.org/scripts/script.php?script_id=3818
311 stars 30 forks source link

Fix regexp error and make it more robust. #15

Closed inkarkat closed 11 years ago

inkarkat commented 11 years ago

I've encountered nasty script errors on every cursor move when over invalid HTML. This can be avoided by limiting the tag name matching (mostly) to valid names and to include it in a very nomagic search regexp for literal matching.

gregsexton commented 11 years ago

Thanks for this. That regexp was always pretty weak.