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 | ddaef3b27a7339faca4cdb982c022b38bf8d9606 (patch) | |
tree | c2eff0feada1fb6def487d16297fbfa00ca9bb8f /bin | |
parent | Match Sh and Ss as Tag in mdoc (diff) | |
download | src-ddaef3b27a7339faca4cdb982c022b38bf8d9606.tar.gz src-ddaef3b27a7339faca4cdb982c022b38bf8d9606.zip |
Match sh functions as Tag
Diffstat (limited to '')
-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 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])*)" |