From cabc8385d1f7bdaaf9537c09d5e33f37c25f78c2 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 11 Nov 2017 10:47:31 -0600 Subject: [PATCH] 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. --- extensions/make/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/make/package.json b/extensions/make/package.json index 3671909199f..1447119db85 100644 --- a/extensions/make/package.json +++ b/extensions/make/package.json @@ -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 @@ } } } -} \ No newline at end of file +}