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
commitfa48f70dfcee8388fcb4e0d449d6d5bc4e5cfc68 (patch)
treefe33da042f097a918eb979c5591e1d4ea555fee0 /bin/hilex.c
parentAdd all target to git.causal.agency Makefile (diff)
downloadsrc-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 '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 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 },
 };