From 94b484ea970a7cf1c5aac84b2e581d5d43f0fc1c Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 3 Aug 2017 21:14:23 +0200
Subject: [PATCH] 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.
---
 syntax/html.nanorc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/html.nanorc b/syntax/html.nanorc
index c0386f4b..63d0476b 100644
--- a/syntax/html.nanorc
+++ b/syntax/html.nanorc
@@ -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]>"
 
-- 
GitLab