diff options
author | June McEnroe <june@causal.agency> | 2019-02-18 18:52:11 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-18 18:52:11 -0500 |
commit | 901e37ead8bdd1b8bde9a61e2d6217a48fd49192 (patch) | |
tree | f0232504807707ff2edc70d5a99962d7e3f56428 | |
parent | Match Sh and Ss as Tag in mdoc (diff) | |
download | src-901e37ead8bdd1b8bde9a61e2d6217a48fd49192.tar.gz src-901e37ead8bdd1b8bde9a61e2d6217a48fd49192.zip |
Match sh functions as Tag
-rw-r--r-- | bin/hi.c | 2 |
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])*)" |