From d12ba62555f21583d758ce08c701858e3bdc847b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 15 Dec 2019 01:44:25 -0500 Subject: Match .profile and .shrc as shell in hi --- bin/hi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hi.c b/bin/hi.c index 50ce9109..89ae325d 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -286,7 +286,7 @@ static const struct Language { { "make", "[.]mk$|^Makefile$", MakeSyntax, ARRAY_LEN(MakeSyntax) }, { "mdoc", "[.][1-9]$", MdocSyntax, ARRAY_LEN(MdocSyntax) }, { "rust", "[.]rs$", RustSyntax, ARRAY_LEN(RustSyntax) }, - { "sh", "[.]sh$", ShSyntax, ARRAY_LEN(ShSyntax) }, + { "sh", "[.]sh$|^[.](profile|shrc)$", ShSyntax, ARRAY_LEN(ShSyntax) }, { "text", "[.]txt$", NULL, 0 }, }; -- cgit 1.4.1