summary refs log tree commit diff
path: root/bin
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 /bin
parentAdd make syntax to hi (diff)
downloadsrc-75dbab368bcbb6ed484e4d8ca9e6b3e1b3988b2d.tar.gz
src-75dbab368bcbb6ed484e4d8ca9e6b3e1b3988b2d.zip
Detect .mk files as make
Diffstat (limited to 'bin')
-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) {
class='logheader'>2020-12-29Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe You can tell I was just copying the HTML code huh. 2020-12-29Add hilex HTML outputJune McEnroe