commit 22663f8a2e2dc2cf556f5efe22208888cca649f3
parent 5d02ee64b6559e310a27bb5a84e99b37c6a99aef
Author: Cristian Caloghera <cristi.caloghera@gmail.com>
Date: Fri, 18 May 2018 13:52:46 +0100
syntax: makefile: recognize also an all-lowercase makefile name
Recognize not just "Makefile" but also "makefile" and "GNUmakefile".
And recognize these only when they are the full filenames, not when
they are the tail part of a longer name.
Signed-off-by: Cristian Caloghera <cristi.caloghera@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/makefile.nanorc b/syntax/makefile.nanorc
@@ -1,6 +1,6 @@
## Here is an example for Makefiles.
-syntax makefile "(Makefile[^/]*$|\.(make|mk)$)"
+syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)"
magic "makefile script"
comment "#"