aboutsummaryrefslogtreecommitdiff
path: root/src/yuescript/yue_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
-rwxr-xr-xsrc/yuescript/yue_parser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index c5cae0b..9fca97e 100755
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -659,20 +659,20 @@ YueParser::YueParser() {
659 659
660 Body = InBlock | Space >> Statement; 660 Body = InBlock | Space >> Statement;
661 661
662 empty_line_stop = ( 662 empty_line_break = (
663 check_indent >> (MultiLineComment >> Space | Comment) | 663 check_indent >> (MultiLineComment >> Space | Comment) |
664 advance >> ensure(MultiLineComment >> Space | Comment, PopIndent) | 664 advance >> ensure(MultiLineComment >> Space | Comment, PopIndent) |
665 plain_space) >> and_(Stop); 665 plain_space) >> and_(Break);
666 666
667 Line = 667 Line =
668 CheckIndent >> Statement | 668 CheckIndent >> Statement |
669 Advance >> ensure(Space >> and_(PipeOperator) >> Statement, PopIndent) | 669 Advance >> ensure(Space >> and_(PipeOperator) >> Statement, PopIndent) |
670 empty_line_stop; 670 empty_line_break;
671 Block = Seperator >> Line >> *(+Break >> Line); 671 Block = Seperator >> Line >> *(+Break >> Line);
672 672
673 Shebang = expr("#!") >> *(not_(Stop) >> Any); 673 Shebang = expr("#!") >> *(not_(Stop) >> Any);
674 BlockEnd = Block >> Stop; 674 BlockEnd = Block >> White >> Stop;
675 File = -Shebang >> -Block >> Stop; 675 File = -Shebang >> -Block >> White >> Stop;
676} 676}
677// clang-format on 677// clang-format on
678 678