From 901e37ead8bdd1b8bde9a61e2d6217a48fd49192 Mon Sep 17 00:00:00 2001 From: Curtis 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(+) (limited to 'bin/hi.c') diff --git a/bin/hi.c b/bin/hi.c index 9b9a430a..e65f8520 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