summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index a4d0e835..fa37584e 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -236,7 +236,7 @@ static const struct Syntax ShSyntax[] = {
 		"(([^\n]|\n\t*[^E]|\n\t*E[^O]|\n\t*EO[^F]|\n\t*EOF[^\n])*)"
 		"\n\t*EOF\n" },
 	{ Comment, .parent = ~SET(String), .subexp = 2,
-		.pattern = "(^|" WS ")" "(#.*)" },
+		.pattern = "(^|[[:blank:]]+)(#.*)" },
 	{ Todo, .parent = SET(Comment),
 		.pattern = PATTERN_TODO },
 };