From d6361806a1df4a3463481f66ff9ad6febd886a41 Mon Sep 17 00:00:00 2001 From: June 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(-) 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 }, }; -- cgit 1.4.1