Add firstline match for Makefile

Some makefiles don't have a file extension and are not named "*Makefile*" but have a shebang that can be used to identify it as a makefile. Example: `debian/rules` in all Debian packages.
This commit is contained in:
David Lechner 2017-11-11 10:47:31 -06:00 committed by GitHub
parent 099025d9ba
commit cabc8385d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@
"aliases": ["Makefile", "makefile"],
"extensions": [ ".mk" ],
"filenames": [ "Makefile", "makefile", "GNUmakefile", "OCamlMakefile" ],
"firstLine": "^#!/usr/bin/make",
"configuration": "./language-configuration.json"
}],
"grammars": [{
@ -26,4 +27,4 @@
}
}
}
}
}