From ac8ed5c1c67e0952892ef58ead18c47167917797 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 14 Jan 2020 21:36:36 -0500 Subject: Highlight single-char variables nested in make interpolations e.g. ${LDLIBS_$@} --- bin/hi.c | 4 ++-- 1 file 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), -- cgit 1.4.1