From 6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9 Mon Sep 17 00:00:00 2001 From: June 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(-) (limited to 'bin') 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), -- cgit 1.4.1