From 483538f8f38e8c280b51ab479cec581a6fa598f5 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 18 Oct 2021 11:49:52 +0200 Subject: [PATCH] syntax: email: use a character class, as \s does not work inside brackets This fixes https://savannah.gnu.org/bugs/?61347. Bug existed since version 4.9.3, commit 4f9bebdd. --- syntax/email.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/email.nanorc b/syntax/email.nanorc index 6818d2ff..d9eb4a72 100644 --- a/syntax/email.nanorc +++ b/syntax/email.nanorc @@ -11,7 +11,7 @@ color yellow "^> ?> ?>.*" color brightmagenta "<[^@]+@[^@]+>" # URLs. -color brightblue "(https?|ftp)://\S+\.\S+[^\s.)]" +color brightblue "(https?|ftp)://\S+\.\S+[^[:space:].)]" # Signatures, even quoted ones. color yellow start="^>* ?-- $" end="^>* ?$"