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 | b2de730b6105964949df8bcf3937704108ba12b0 (patch) | |
tree | d8a1653d32432b9cf5c4ae1df806c172f3f44cb6 /bin/hilex/hilex.c | |
parent | Clean up C lexer (diff) | |
download | src-b2de730b6105964949df8bcf3937704108ba12b0.tar.gz src-b2de730b6105964949df8bcf3937704108ba12b0.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 b2bebd5f..1735b10a 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$" }, }; |