aboutsummaryrefslogtreecommitdiff
path: root/src/yuescript/yue_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
-rw-r--r--src/yuescript/yue_parser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index 21f19a3..ffe3ad2 100644
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -909,11 +909,11 @@ YueParser::YueParser() {
909 white >> '}' 909 white >> '}'
910 ); 910 );
911 911
912 table_block_inner = Seperator >> key_value_line >> *((+(plain_space >> line_break) >> key_value_line) | (+space_break >> not_(expr("--")) >> key_value_line)); 912 table_block_inner = Seperator >> key_value_line >> *(((plain_space >> line_break) >> key_value_line) | (+space_break >> not_(expr("--")) >> key_value_line));
913 TableBlock = ((+(plain_space >> line_break)) | (+space_break >> not_(expr("--")))) >> advance_match >> ensure(table_block_inner, pop_indent); 913 TableBlock = ((+(plain_space >> line_break)) | (+space_break >> not_(expr("--")))) >> advance_match >> ensure(table_block_inner, pop_indent);
914 TableBlockIndent = ('*' | '-' >> space_one) >> Seperator >> disable_arg_table_block_rule( 914 TableBlockIndent = ('*' | '-' >> space_one) >> Seperator >> disable_arg_table_block_rule(
915 space >> key_value_list >> -(space >> ',') >> 915 space >> key_value_list >> -(space >> ',') >>
916 -((plain_space >> line_break >> advance_match >> space >> ensure(key_value_list >> -(space >> ',') >> *((+(plain_space >> line_break) >> key_value_line) | (+space_break >> not_(expr("--")) >> key_value_line)), pop_indent)) | 916 -((plain_space >> line_break >> advance_match >> space >> ensure(key_value_list >> -(space >> ',') >> *(((plain_space >> line_break) >> key_value_line) | (+space_break >> not_(expr("--")) >> key_value_line)), pop_indent)) |
917 (+space_break >> advance_match >> space >> ensure(key_value_list >> -(space >> ',') >> *(+space_break >> key_value_line), pop_indent)))); 917 (+space_break >> advance_match >> space >> ensure(key_value_list >> -(space >> ',') >> *(+space_break >> key_value_line), pop_indent))));
918 918
919 ClassMemberList = Seperator >> key_value >> *(space >> ',' >> space >> key_value); 919 ClassMemberList = Seperator >> key_value >> *(space >> ',' >> space >> key_value);
@@ -1019,6 +1019,7 @@ YueParser::YueParser() {
1019 MetaNormalPair; 1019 MetaNormalPair;
1020 key_value_list = key_value >> *(space >> ',' >> space >> key_value); 1020 key_value_list = key_value >> *(space >> ',' >> space >> key_value);
1021 key_value_line = 1021 key_value_line =
1022 (EmptyLine >> YueComment) |
1022 YueComment | 1023 YueComment |
1023 check_indent_match >> space >> ( 1024 check_indent_match >> space >> (
1024 key_value_list >> -(space >> ',') | 1025 key_value_list >> -(space >> ',') |