summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-14 21:36:36 -0500
committerJune McEnroe <june@causal.agency>2020-01-14 21:37:59 -0500
commitac8ed5c1c67e0952892ef58ead18c47167917797 (patch)
tree009dd7bac8dd2c5176e3355f0cd79f9ff97e3c67 /bin
parentSet Bl -column tables to 100% width (diff)
downloadsrc-ac8ed5c1c67e0952892ef58ead18c47167917797.tar.gz
src-ac8ed5c1c67e0952892ef58ead18c47167917797.zip
Highlight single-char variables nested in make interpolations
e.g. ${LDLIBS_$@}
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c4
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),