Initial commit.
Added readme.
Added more info to readme.
Do not include self closing tags in search.
Bug fix: wrong tag highlight when tags not spaced.
I hate NTFS.
Adding match tag capability to XML files
add support for vim > 7.0 by making timeout optional
Merge pull request #5 from Twinside/master

Match tag works with XML files too
Updated docs for consistency with new xml.vim file.
timeout is available in older versions of vim as well
Merge pull request #6 from mattsa/timeout-support

Add support for vim > 7.0 by making timeout optional
FIX: Only pick up valid tag names to avoid pattern errors.

When inserting (unescaped, invalid) text into the buffer, for example:
    :noremap <F4> :%s/\([\.!?]\<Bar[\.!?]"\)\s\s/\1text /g<CR>
navigating over the text (here: <Bar) causes script errors (here: "E55: Unmatched \)") on every cursor move.
Refine the pattern that picks up HTML / XML tag names (as close to the standard as feasible in Vim) to avoid that invalid tag names are picked up. Even invalid buffer contents should not cause script errors.
FIX: Properly escape literal tag name in matching.

Even with the restriction to valid tag names, certain allowed characters (like ".") have special meaning in the searchpairpos() regexp, potentially causing wrong matches (e.g. with <foo> vs. <f.o>).
Change the regexp to "very nomagic" /\V/ and escape any remaining backslashes as a precaution.
Merge pull request #15 from inkarkat/fix-regexp-error

Fix regexp error and make it more robust.
FIX: Also skip tags inside XML comments.

The check only contained the syntax group names of HTML comments; there are similar syntax groups for XML. As it's hard to derive the names from the actually used filetype (it could be a custom one derived from either HTML or XML), always match both.
FIX: Avoid matching tag names that contain the current tag name.

The .\{-} match for the remainder is too lax; it can pick up intermediate tags where the current tag name is a subset of, e.g. the GSP <g:else> and <g:elseif> tags.
If there's content after the tag name, it must be separated by whitespace.
Also, as no attributes are allowed on the end tag, the pattern can be restricted to only optional whitespace.
Merge pull request #17 from inkarkat/fix-avoid-tag-subset-matches

FIX: Avoid matching tag names that contain the current tag name.
Merge pull request #16 from inkarkat/also-skip-xml-comments

FIX: Also skip tags inside XML comments.
ENH: Support tags that span multiple lines.

Some code styles spread tags that have many attributes over multiple lines, e.g.
<foo bar="1"
     baz="2">

This patch extends the highlighting to those tags. In s:GetCurrentCursorTag(), when the current line does not contain a full tag, as a fallback the start of a tag is accepted. (It does not verify that the tag is actually properly closed in following lines.)
In s:SearchForMatchingTag(), the patterns are modified to also match newlines (while ensuring that when searching for the start tag, the current end tag is not accidentally matched). (The patterns already include the fix for subset tag names from bc576b5ead1f183f72884108bbb3d2c8763e7993.)