summary refs log tree commit diff
path: root/bin/hilex.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-20 18:01:04 -0500
committerJune McEnroe <june@causal.agency>2021-01-20 18:04:04 -0500
commit02a9d8a8b07530f50d27b6158329dd8d218d298b (patch)
tree0cf2b2c323758df778fcef13c9fa93f7a1c7c4d7 /bin/hilex.c
parentAdd all target to git.causal.agency Makefile (diff)
downloadsrc-02a9d8a8b07530f50d27b6158329dd8d218d298b.tar.gz
src-02a9d8a8b07530f50d27b6158329dd8d218d298b.zip
Add messy sh lexer
Surprisingly seems to work for everything I looked at in my repos.
Diffstat (limited to 'bin/hilex.c')
-rw-r--r--bin/hilex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/hilex.c b/bin/hilex.c
index 4952c7ad..8a03eb80 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 },
 };