From 22663f8a2e2dc2cf556f5efe22208888cca649f3 Mon Sep 17 00:00:00 2001 From: Cristian Caloghera Date: Fri, 18 May 2018 13:52:46 +0100 Subject: [PATCH] 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 --- syntax/makefile.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/makefile.nanorc b/syntax/makefile.nanorc index 4676473d..96bf3557 100644 --- 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 "#"