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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index ab9b657..0c08d4f 100755
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -469,7 +469,9 @@ YueParser::YueParser() {
469 and_(expr('[')) >> LuaString | 469 and_(expr('[')) >> LuaString |
470 and_(expr('{')) >> TableLit); 470 and_(expr('{')) >> TableLit);
471 471
472 TableValue = ((KeyValue | Exp) >> not_(sym('='))) | meta_default_pair | default_pair; 472 SpreadExp = sym("...") >> Exp;
473
474 TableValue = ((KeyValue | SpreadExp | Exp) >> not_(sym('='))) | meta_default_pair | default_pair;
473 475
474 table_lit_lines = SpaceBreak >> TableLitLine >> *(-sym(',') >> SpaceBreak >> TableLitLine) >> -sym(','); 476 table_lit_lines = SpaceBreak >> TableLitLine >> *(-sym(',') >> SpaceBreak >> TableLitLine) >> -sym(',');
475 477