From 5b656d2913e4f9f0017698ec835ce4ddda1dc81f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 18 Sep 2020 17:24:03 +0800 Subject: support inserting common expression item started with * symbol into a table block. --- src/MoonP/moon_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MoonP/moon_parser.cpp') diff --git a/src/MoonP/moon_parser.cpp b/src/MoonP/moon_parser.cpp index 394ce50..41db324 100644 --- a/src/MoonP/moon_parser.cpp +++ b/src/MoonP/moon_parser.cpp @@ -491,7 +491,7 @@ MoonParser::MoonParser() { }); KeyValueList = KeyValue >> *(sym(',') >> KeyValue); - KeyValueLine = CheckIndent >> (KeyValueList >> -sym(',') | TableBlockIndent); + KeyValueLine = CheckIndent >> (KeyValueList >> -sym(',') | TableBlockIndent | Space >> expr('*') >> Exp); FnArgDef = (Variable | SelfName) >> -(sym('=') >> Space >> Exp); -- cgit v1.2.3-55-g6feb