diff options
author | June McEnroe <june@causal.agency> | 2020-12-29 22:39:16 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-29 22:39:16 -0500 |
commit | 7c70322c7c8e88af93375b89146b0cd6cb8cc7f0 (patch) | |
tree | 109495ff8c3b181f871d38d8b5d34835d23a185c /bin/hilex/hilex.c | |
parent | Clean up C lexer (diff) | |
download | src-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 '')
-rw-r--r-- | bin/hilex/hilex.c | 1 |
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$" }, }; |