diff options
author | June McEnroe <june@causal.agency> | 2021-01-20 18:01:04 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-20 18:04:04 -0500 |
commit | fa48f70dfcee8388fcb4e0d449d6d5bc4e5cfc68 (patch) | |
tree | fe33da042f097a918eb979c5591e1d4ea555fee0 /bin/hilex.c | |
parent | Add all target to git.causal.agency Makefile (diff) | |
download | src-fa48f70dfcee8388fcb4e0d449d6d5bc4e5cfc68.tar.gz src-fa48f70dfcee8388fcb4e0d449d6d5bc4e5cfc68.zip |
Add messy sh lexer
Surprisingly seems to work for everything I looked at in my repos.
Diffstat (limited to '')
-rw-r--r-- | bin/hilex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/hilex.c b/bin/hilex.c index 59c1f12d..79497e0b 100644 --- a/bin/hilex.c +++ b/bin/hilex.c @@ -53,6 +53,7 @@ static const struct { { &LexC, "c", "[.][chlmy]$", NULL }, { &LexMake, "make", "[.](mk|am)$|^Makefile$", NULL }, { &LexMdoc, "mdoc", "[.][1-9]$", "^[.]Dd" }, + { &LexSh, "sh", "[.]sh$|^[.](profile|shrc)$", "^#!/bin/sh" }, { &LexText, "text", "[.]txt$", NULL }, }; |