summary refs log tree commit diff
path: root/bin/hi.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-18 18:52:11 -0500
committerJune McEnroe <june@causal.agency>2019-02-18 18:52:11 -0500
commit901e37ead8bdd1b8bde9a61e2d6217a48fd49192 (patch)
treef0232504807707ff2edc70d5a99962d7e3f56428 /bin/hi.c
parentMatch Sh and Ss as Tag in mdoc (diff)
downloadsrc-901e37ead8bdd1b8bde9a61e2d6217a48fd49192.tar.gz
src-901e37ead8bdd1b8bde9a61e2d6217a48fd49192.zip
Match sh functions as Tag
Diffstat (limited to 'bin/hi.c')
-rw-r--r--bin/hi.c2
1 files changed, 2 insertions, 0 deletions
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])*)"