From 7e09f2c64ad6552254aa3acc1c4d99f3a6859ef9 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 9 May 2017 17:37:05 +0200
Subject: [PATCH] syntax: makefile: color comments only at start of line or
 after whitespace

---
 syntax/makefile.nanorc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/makefile.nanorc b/syntax/makefile.nanorc
index 188f004a..71f39f03 100644
--- 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:]]+$"
-- 
GitLab