commit 34b1824822234f8d75c4ac8d7f0f49882a4b7eba
parent b025f678056a32ea55e4b64472354e096bbde485
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 25 Oct 2019 12:21:35 +0200
syntax: default: don't colorize stuff between two pairs of brackets
That is, don't allow another bracket between the opening and the
closing bracket.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/default.nanorc b/syntax/default.nanorc
@@ -17,4 +17,4 @@ color brightred "(GNU )?[Nn]ano [1-4]\.[0-9][-.[:alnum:]]*\>"
color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
# Bracketed captions in certain config files.
-color brightgreen "^\[.*\]$"
+color brightgreen "^\[[^][]+\]$"