syntax: html: don't bother coloring tags that cross line boundaries

Prefer speed above being fully correct.

This addresses https://savannah.gnu.org/bugs/?51644.
This commit is contained in:
Benno Schulenberg 2017-08-03 21:14:23 +02:00
parent ac2c81fad1
commit 94b484ea97
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ magic "HTML document text"
comment "<!--|-->"
# Tags:
color cyan start="<[[:alpha:]/!?]" end=">"
color cyan "<[[:alpha:]/!?][^>]*>"
# Bold, italic, and underlined:
color brightmagenta "</?[biu]>"