From f49d2a9ddcfa4402b78f2d6fa121fa97f7e71017 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 14 May 2020 14:24:19 -0400 Subject: Add hi rule for sh arithmetic expansion Shell highlighting is hopeless anyway but this makes it slightly less obviously broken. --- bin/hi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/hi.c b/bin/hi.c index b59a88e9..7e19f3fc 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), -- cgit 1.4.1