summary refs log tree commit diff
path: root/bin/hi.c
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
commit6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9 (patch)
tree930707e19c1212c995b814c4fc5291fd8503ccfb /bin/hi.c
parentSet Bl -column tables to 100% width (diff)
downloadsrc-6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9.tar.gz
src-6f3421d7ec1abc2b88ef886ff6bc3db042f4ffe9.zip
Highlight single-char variables nested in make interpolations
e.g. ${LDLIBS_$@}
Diffstat (limited to 'bin/hi.c')
-rw-r--r--bin/hi.c4
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),