diff options
| -rw-r--r-- | src/yuescript/yue_parser.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index 746ea29..e3dc598 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
| @@ -890,7 +890,11 @@ YueParser::YueParser() { | |||
| 890 | 890 | ||
| 891 | table_lit_line = | 891 | table_lit_line = |
| 892 | -EmptyLine >> ( | 892 | -EmptyLine >> ( |
| 893 | push_indent_match >> (plain_space >> not_(line_break | '}') >> (table_value | YueComment | expected_expression_error) >> *(plain_space >> ',' >> plain_space >> (table_value | YueComment)) >> pop_indent | pop_indent) | 893 | push_indent_match >> ( |
| 894 | space >> not_(line_break | '}') >> (table_value | expected_expression_error) >> *(space >> ',' >> space >> table_value) >> pop_indent | | ||
| 895 | YueComment >> pop_indent | | ||
| 896 | pop_indent | ||
| 897 | ) | ||
| 894 | ) | ( | 898 | ) | ( |
| 895 | space | 899 | space |
| 896 | ); | 900 | ); |
| @@ -899,7 +903,7 @@ YueParser::YueParser() { | |||
| 899 | 903 | ||
| 900 | TableLit = | 904 | TableLit = |
| 901 | '{' >> Seperator >> | 905 | '{' >> Seperator >> |
| 902 | -(plain_space >> (table_value | YueComment) >> *(plain_space >> ',' >> plain_space >> (table_value | YueComment)) >> -(plain_space >> ',')) >> | 906 | -(space >> table_value >> *(space >> ',' >> space >> table_value) >> -(space >> ',')) >> |
| 903 | ( | 907 | ( |
| 904 | table_lit_lines >> white >> end_braces_expression | | 908 | table_lit_lines >> white >> end_braces_expression | |
| 905 | white >> '}' | 909 | white >> '}' |
