From 03470766d32782746fd158efab144d9e588ffb0d Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 12 Feb 2019 18:18:52 -0500 Subject: Fix sh comment pattern to require blank --- bin/hi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/hi.c') diff --git a/bin/hi.c b/bin/hi.c index 9ac3851e..2da1ea6d 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 }, }; -- cgit 1.4.1