Fix extensions for language detection with Makefile syntax

add_libdifftastic
Wilfred Hughes 2022-09-02 11:42:28 +07:00
parent fd571c98a7
commit 5b866f8db3
2 changed files with 3 additions and 2 deletions

@ -7,7 +7,8 @@ UTF-16-LE. Previously it required files to be UTF-8.
Added support for Makefiles.
Fixed an issue with HCL language detection on `.workflow` files.
Fixed an issue with HCL language detection on `.workflow` files. Fixed
an issue with Makefile language detection.
### Command Line Interface

@ -126,7 +126,7 @@ pub const LANG_EXTENSIONS: &'static [(Language, &[&str])] = &[
(Lua, &["lua"]),
(
Make,
&[".mak", ".d", ".make", ".makefile", ".mk", ".mkfile"],
&["mak", "d", "make", "makefile", "mk", "mkfile"],
),
(Nix, &["nix"]),
(OCaml, &["ml"]),