From 9d0b4d05da3023105f8f45e5c29f9e0097a0097a Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 2 Mar 2023 18:27:49 +0800 Subject: fix missing indent check for comment in in_block start. --- src/yuescript/yue_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index 78e6e52..d8fdc28 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp @@ -230,7 +230,7 @@ YueParser::YueParser() { return true; }); - in_block = +space_break >> advance_match >> ensure(Block, pop_indent); + in_block = space_break >> *(*set(" \t") >> line_break) >> advance_match >> ensure(Block, pop_indent); LocalFlag = expr('*') | '^'; LocalValues = NameList >> -(space >> '=' >> space >> (TableBlock | ExpListLow)); -- cgit v1.2.3-55-g6feb