commit 90946c5e9e098e005ef0bbf68bea243b990feaae
parent 9a778f9a007219ab0c8e8af54628c53759b2a5b0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 23 Nov 2021 11:56:17 +0100
syntax: nanorc: avoid colorizing #rgb codes as if they were comments
Demand that trailing comments (which are not really supported anyway)
have a space or tab after their hash mark.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc
@@ -29,7 +29,7 @@ color magenta "^[[:blank:]]*i?color\>|[[:blank:]](start=|end=)"
color bold,pink "[[:cntrl:]]"
# Comments
-color brightblue "(^|[[:blank:]]+)#.*"
+color brightblue "^[[:blank:]]*#.*|[[:blank:]]#[[:blank:]].*"
color cyan "^[[:blank:]]*##.*"
# Trailing whitespace