summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-07 21:25:53 -0500
committerJune McEnroe <june@causal.agency>2019-02-07 21:25:53 -0500
commit75dbab368bcbb6ed484e4d8ca9e6b3e1b3988b2d (patch)
treed89ca109ad7390d10d50254ca94a20428ad279da
parentAdd make syntax to hi (diff)
downloadsrc-75dbab368bcbb6ed484e4d8ca9e6b3e1b3988b2d.tar.gz
src-75dbab368bcbb6ed484e4d8ca9e6b3e1b3988b2d.zip
Detect .mk files as make
Diffstat (limited to '')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 5c9d89dd..6dc6b3b5 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -129,7 +129,7 @@ static const struct Language {
 	size_t len;
 } Languages[] = {
 	{ "c", "\\.[ch]$", CSyntax, ARRAY_LEN(CSyntax) },
-	{ "make", "Makefile$", MakeSyntax, ARRAY_LEN(MakeSyntax) },
+	{ "make", "Makefile$|\\.mk$", MakeSyntax, ARRAY_LEN(MakeSyntax) },
 };
 
 static regex_t compile(const char *pattern, int flags) {