Skip to content

Commit cabc838

Browse files
authored
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.
1 parent 099025d commit cabc838

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/make/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"aliases": ["Makefile", "makefile"],
1414
"extensions": [ ".mk" ],
1515
"filenames": [ "Makefile", "makefile", "GNUmakefile", "OCamlMakefile" ],
16+
"firstLine": "^#!/usr/bin/make",
1617
"configuration": "./language-configuration.json"
1718
}],
1819
"grammars": [{
@@ -26,4 +27,4 @@
2627
}
2728
}
2829
}
29-
}
30+
}

0 commit comments

Comments
 (0)