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') 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 ion value='master' selected='selected'>master patched shell with cmake build
summary refs log tree commit diff
path: root/src (unfollow)
Commit message (Expand)Author
2018-04-19eval: Restore input files in evalcommandHerbert Xu
2018-04-19eval: Reap zombies after built-in commands and functionsHerbert Xu
2018-04-19redir: Fix typo in noclobber codeHerbert Xu
2018-04-19expand: Fix glibc glob(3) supportHerbert Xu
2018-04-02expand: Fix buffer overflow in expandmetaHerbert Xu
2018-04-02builtin: Move echo space/nl handling into print_escape_strHerbert Xu
2018-04-02builtin: Fix echo performance regressionHerbert Xu
2018-04-02expand: Fix ghost fields with unquoted $@/$*Herbert Xu
2018-04-02parser: Allow newlines within parameter substitutionHerbert Xu
2018-04-02expand: Fix bugs with words connected to the right of $@Herbert Xu
2018-03-25Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"Herbert Xu
2018-03-22parser: Fix backquote support in here-document EOF markHerbert Xu