From 1de47610f483d06088063c2438ebe5b6c31103c2 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 7 Jun 2022 17:19:24 +0200 Subject: [PATCH] syntax: default: do not colorize a square or angle bracket after a URL Sometimes a URL is wrapped in [] or <> brackets -- the closing ] or > is not part of the URL and should not be colored. --- syntax/default.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/default.nanorc b/syntax/default.nanorc index 120883a6..e0f43b08 100644 --- a/syntax/default.nanorc +++ b/syntax/default.nanorc @@ -18,7 +18,7 @@ color latte "\<[12][0-9]{3}\.(0[1-9]|1[012])\.(0[1-9]|[12][0-9]|3[01])\>" color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>" # URLs. -color lightblue "\[:space:],.]" # Bracketed captions in certain config files. color brightgreen "^\[[^][]+\]$"