From fa48f70dfcee8388fcb4e0d449d6d5bc4e5cfc68 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 20 Jan 2021 18:01:04 -0500 Subject: Add messy sh lexer Surprisingly seems to work for everything I looked at in my repos. --- bin/hilex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/hilex.c') 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 }, }; -- cgit 1.4.1