diff options
author | Li Jin <dragon-fly@qq.com> | 2020-09-18 17:24:03 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-09-18 17:24:03 +0800 |
commit | 5b656d2913e4f9f0017698ec835ce4ddda1dc81f (patch) | |
tree | d5e4239aa264175b78f3c6aa72291c0c94f5055e /src/MoonP/moon_parser.cpp | |
parent | 5e032607d83070ff6968a3fa3eabaf86a0ea2c2e (diff) | |
download | yuescript-5b656d2913e4f9f0017698ec835ce4ddda1dc81f.tar.gz yuescript-5b656d2913e4f9f0017698ec835ce4ddda1dc81f.tar.bz2 yuescript-5b656d2913e4f9f0017698ec835ce4ddda1dc81f.zip |
support inserting common expression item started with * symbol into a table block.
Diffstat (limited to 'src/MoonP/moon_parser.cpp')
-rw-r--r-- | src/MoonP/moon_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
491 | }); | 491 | }); |
492 | 492 | ||
493 | KeyValueList = KeyValue >> *(sym(',') >> KeyValue); | 493 | KeyValueList = KeyValue >> *(sym(',') >> KeyValue); |
494 | KeyValueLine = CheckIndent >> (KeyValueList >> -sym(',') | TableBlockIndent); | 494 | KeyValueLine = CheckIndent >> (KeyValueList >> -sym(',') | TableBlockIndent | Space >> expr('*') >> Exp); |
495 | 495 | ||
496 | FnArgDef = (Variable | SelfName) >> -(sym('=') >> Space >> Exp); | 496 | FnArgDef = (Variable | SelfName) >> -(sym('=') >> Space >> Exp); |
497 | 497 | ||