Markdown.pl: improve XML comment parsing
commitd87f4abdb17f81c9deeb60b9810adeb784908b95
authorKyle J. McKay <mackyle@gmail.com>
Wed, 27 Dec 2017 13:13:12 +0000 (27 05:13 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 27 Dec 2017 13:13:12 +0000 (27 05:13 -0800)
treea516f6796ade2c63fe5ec238fa3615d08618eb54
parent434dfdb6bd723f4435410c4660818515f5d25805
Markdown.pl: improve XML comment parsing

Use the actual XML comment rule for parsing XML comments.

The leading delimiter is fixed as "<!--" and the trailing delimiter
is fixed as "-->".

In between the leading and trailing delimiters any characters other
than a "-" may be used and a "-" may be used provided it's followed
immediately with a non-"-" character.

Now that the clear beginning and end of comments can be properly
identified, there no longer needs to be a blank line following the
comment -- the end delimiter serves quite unambiguously.  Relax the
ending match to just be end of line or end of document.

This makes comments parse much more like they're expected to.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Markdown.pl