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>
This commit is contained in:
Cristian Caloghera 2018-05-18 13:52:46 +01:00 committed by Benno Schulenberg
parent 5d02ee64b6
commit 22663f8a2e

View File

@ -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 "#"