diff options
author | June McEnroe <june@causal.agency> | 2020-01-14 21:36:36 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-01-14 21:37:59 -0500 |
commit | ac8ed5c1c67e0952892ef58ead18c47167917797 (patch) | |
tree | 009dd7bac8dd2c5176e3355f0cd79f9ff97e3c67 | |
parent | Set Bl -column tables to 100% width (diff) | |
download | src-ac8ed5c1c67e0952892ef58ead18c47167917797.tar.gz src-ac8ed5c1c67e0952892ef58ead18c47167917797.zip |
Highlight single-char variables nested in make interpolations
e.g. ${LDLIBS_$@}
Diffstat (limited to '')
-rw-r--r-- | bin/hi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hi.c b/bin/hi.c index af7470da..63463580 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -156,9 +156,9 @@ static const struct Syntax MakeSyntax[] = { .pattern = "[$]." }, // Support one level of nesting with the same delimiter. { Interp, - .pattern = "[$][(](" "[^$)]" "|" "[$][(][^)]*[)]" ")*[)]" }, + .pattern = "[$][(](" "[^$)]" "|" "[$]." "|" "[$][(][^)]*[)]" ")*[)]" }, { Interp, - .pattern = "[$][{](" "[^$}]" "|" "[$][{][^}]*[}]" ")*[}]" }, + .pattern = "[$][{](" "[^$}]" "|" "[$]." "|" "[$][{][^}]*[}]" ")*[}]" }, { Escape, .pattern = "[$][$]" }, { Comment, .parent = ~SET(String), |