aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-03-02 18:27:49 +0800
committerLi Jin <dragon-fly@qq.com>2023-03-02 18:27:49 +0800
commit9d0b4d05da3023105f8f45e5c29f9e0097a0097a (patch)
tree1b74e372ea927105684ff5a64bc222bf0355b6f3
parent0ec7d6e7152cf6325a3acba13b1807efe0939dba (diff)
downloadyuescript-9d0b4d05da3023105f8f45e5c29f9e0097a0097a.tar.gz
yuescript-9d0b4d05da3023105f8f45e5c29f9e0097a0097a.tar.bz2
yuescript-9d0b4d05da3023105f8f45e5c29f9e0097a0097a.zip
fix missing indent check for comment in in_block start.
-rw-r--r--src/yuescript/yue_parser.cpp2
1 files changed, 1 insertions, 1 deletions
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() {
230 return true; 230 return true;
231 }); 231 });
232 232
233 in_block = +space_break >> advance_match >> ensure(Block, pop_indent); 233 in_block = space_break >> *(*set(" \t") >> line_break) >> advance_match >> ensure(Block, pop_indent);
234 234
235 LocalFlag = expr('*') | '^'; 235 LocalFlag = expr('*') | '^';
236 LocalValues = NameList >> -(space >> '=' >> space >> (TableBlock | ExpListLow)); 236 LocalValues = NameList >> -(space >> '=' >> space >> (TableBlock | ExpListLow));