diff options
author | June McEnroe <june@causal.agency> | 2020-05-14 14:24:19 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-14 14:24:19 -0400 |
commit | 6e1986ae0939e02ac72b5e7f0ac018d3c0fff1fb (patch) | |
tree | 57b4ae8ccac63cd228af6f835b227908b40b72f5 | |
parent | Remove gpg symlink from NetBSD install (diff) | |
download | src-6e1986ae0939e02ac72b5e7f0ac018d3c0fff1fb.tar.gz src-6e1986ae0939e02ac72b5e7f0ac018d3c0fff1fb.zip |
Add hi rule for sh arithmetic expansion
Shell highlighting is hopeless anyway but this makes it slightly less obviously broken.
-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 38810d51..80fe2864 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -257,6 +257,8 @@ static const struct Syntax ShSyntax[] = { .pattern = "[\\][\"$\\`]" }, { Interp, .parent = ~SET(Escape), .pattern = "[$][(][^)]*[)]" "|" "`[^`]*`" }, + { Interp, .parent = ~SET(Escape), + .pattern = "[$][(][(]([^)]|[)][^)])*[)][)]" }, { String, .parent = SET(Interp), .pattern = PATTERN_DQ }, { Interp, .parent = ~SET(Escape), |