From ddaef3b27a7339faca4cdb982c022b38bf8d9606 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 18 Feb 2019 18:52:11 -0500 Subject: Match sh functions as Tag --- bin/hi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/hi.c b/bin/hi.c index 98bb7697..1206243d 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -228,6 +228,8 @@ static const struct Syntax ShSyntax[] = { "|" "[.:]|break|continue|eval|exec|exit|export|local|readonly|return" "|" "set|shift|times|trap|unset" ")" WB }, + { Tag, .subexp = 2, + .pattern = WB "(" PATTERN_ID ")" BL0 "[(]" BL0 "[)]" }, { String, .newline = true, .subexp = 1, .pattern = "<<-?" BL0 "EOF[^\n]*\n" "(([^\n]|\n\t*[^E]|\n\t*E[^O]|\n\t*EO[^F]|\n\t*EOF[^\n])*)" -- cgit 1.4.1