commit 7e09f2c64ad6552254aa3acc1c4d99f3a6859ef9
parent 968c07fc8186092a1b06dc7efaeee96426798b67
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 9 May 2017 17:37:05 +0200
syntax: makefile: color comments only at start of line or after whitespace
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/makefile.nanorc b/syntax/makefile.nanorc
@@ -7,7 +7,7 @@ color red "[:=]"
color magenta "\<(if|ifeq|else|endif)\>"
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
color brightblue "^[^ ]+:"
-color green "#.*$"
+color green "(^|[[:space:]]+)#.*"
## Trailing whitespace.
color ,green "[[:space:]]+$"