summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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),