summary refs log tree commit diff
path: root/bin/hilex/hilex.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-29 22:39:16 -0500
committerJune McEnroe <june@causal.agency>2020-12-29 22:39:16 -0500
commit7c70322c7c8e88af93375b89146b0cd6cb8cc7f0 (patch)
tree109495ff8c3b181f871d38d8b5d34835d23a185c /bin/hilex/hilex.c
parentClean up C lexer (diff)
downloadsrc-7c70322c7c8e88af93375b89146b0cd6cb8cc7f0.tar.gz
src-7c70322c7c8e88af93375b89146b0cd6cb8cc7f0.zip
Add make lexer
This is kind of a mess and needs to be cleaned up against more careful
reading of the make grammar.
Diffstat (limited to 'bin/hilex/hilex.c')
-rw-r--r--bin/hilex/hilex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/hilex/hilex.c b/bin/hilex/hilex.c
index 8b824bcd..1fa620e3 100644
--- a/bin/hilex/hilex.c
+++ b/bin/hilex/hilex.c
@@ -32,6 +32,7 @@ static const struct {
 	const char *pattern;
 } Lexers[] = {
 	{ &LexC, "c", "[.][chlmy]$" },
+	{ &LexMake, "make", "[.]mk$|^Makefile$" },
 	{ &LexMdoc, "mdoc", "[.][1-9]$" },
 	{ &LexText, "text", "[.]txt$" },
 };