aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/moon_parser.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-11-03 15:04:22 +0800
committerLi Jin <dragon-fly@qq.com>2020-11-03 15:04:22 +0800
commitf641df51ecec17dbd24b476e271a4ee49ed6aded (patch)
treef0a83f650a45037d33057dc913ca24ce04986dd3 /src/MoonP/moon_parser.cpp
parente07a2eb9c389f27103872a3b5a5bfe500d0c2d62 (diff)
downloadyuescript-f641df51ecec17dbd24b476e271a4ee49ed6aded.tar.gz
yuescript-f641df51ecec17dbd24b476e271a4ee49ed6aded.tar.bz2
yuescript-f641df51ecec17dbd24b476e271a4ee49ed6aded.zip
fix issue #30
Diffstat (limited to 'src/MoonP/moon_parser.cpp')
-rw-r--r--src/MoonP/moon_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MoonP/moon_parser.cpp b/src/MoonP/moon_parser.cpp
index 63eabb3..8b9ead4 100644
--- a/src/MoonP/moon_parser.cpp
+++ b/src/MoonP/moon_parser.cpp
@@ -489,7 +489,7 @@ MoonParser::MoonParser() {
489 KeyValue = variable_pair | normal_pair; 489 KeyValue = variable_pair | normal_pair;
490 490
491 KeyValueList = KeyValue >> *(sym(',') >> KeyValue); 491 KeyValueList = KeyValue >> *(sym(',') >> KeyValue);
492 KeyValueLine = CheckIndent >> (KeyValueList >> -sym(',') | TableBlockIndent | Space >> expr('*') >> Exp); 492 KeyValueLine = CheckIndent >> (KeyValueList >> -sym(',') | TableBlockIndent | Space >> expr('*') >> (Exp | TableBlock));
493 493
494 FnArgDef = (Variable | SelfName) >> -(sym('=') >> Space >> Exp); 494 FnArgDef = (Variable | SelfName) >> -(sym('=') >> Space >> Exp);
495 495