aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-11-09 15:17:17 +0800
committerLi Jin <dragon-fly@qq.com>2022-11-09 15:17:17 +0800
commite02780668e0ce2ebf7088bad2e70ad94b6824b08 (patch)
tree5542a135197d4b7c7741708a9544180ee4fbcf13 /src
parent42f50d380cf3a5dc30b4c0d06caec93d0ddd76d9 (diff)
downloadyuescript-e02780668e0ce2ebf7088bad2e70ad94b6824b08.tar.gz
yuescript-e02780668e0ce2ebf7088bad2e70ad94b6824b08.tar.bz2
yuescript-e02780668e0ce2ebf7088bad2e70ad94b6824b08.zip
fix readme.
Diffstat (limited to 'src')
-rw-r--r--src/yuescript/yue_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index df64759..0d9a183 100644
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -544,7 +544,7 @@ YueParser::YueParser() {
544 | (not_(Space >> export_default) >> pl::user(true_(), [](const item_t& item) { 544 | (not_(Space >> export_default) >> pl::user(true_(), [](const item_t& item) {
545 State* st = reinterpret_cast<State*>(item.user_data); 545 State* st = reinterpret_cast<State*>(item.user_data);
546 if (st->exportDefault && st->exportCount > 1) { 546 if (st->exportDefault && st->exportCount > 1) {
547 throw ParserError("can not export more items when export default has been declared", *item.begin, *item.end); 547 throw ParserError("can not export any more items when 'export default' is declared", *item.begin, *item.end);
548 } 548 }
549 return true; 549 return true;
550 }) >> ExpList >> -Assign) 550 }) >> ExpList >> -Assign)