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 | 6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9 (patch) | |
tree | 930707e19c1212c995b814c4fc5291fd8503ccfb | |
parent | Set Bl -column tables to 100% width (diff) | |
download | src-6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9.tar.gz src-6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9.zip |
Highlight single-char variables nested in make interpolations
e.g. ${LDLIBS_$@}
-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 3af6766f..06b2c14c 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), |