summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
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),