Skip to content

Commit

Permalink
filetype: Detect make shebang for "makefile".
Browse files Browse the repository at this point in the history
This is useful when writing "debian/rules" files in packages.
  • Loading branch information
parazyd committed Jan 12, 2021
1 parent 334fed9 commit a1733f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/plugins/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ vis.ftdetect.filetypes = {
makefile = {
ext = { "%.iface$", "%.mak$", "%.mk$", "GNUmakefile", "makefile", "Makefile" },
mime = { "text/x-makefile" },
detect = function(_, data)
return data:match("^#!/usr/bin/make")
end
},
man = {
ext = {
Expand Down

0 comments on commit a1733f2

Please sign in to comment.