diff options
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
| -rw-r--r-- | src/yuescript/yue_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index 0cf7f05..07c1120 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
| @@ -1130,7 +1130,7 @@ ParseInfo YueParser::parse(std::string_view astName, std::string_view codes, boo | |||
| 1130 | if (it != _rules.end()) { | 1130 | if (it != _rules.end()) { |
| 1131 | return parse(codes, *it->second, lax); | 1131 | return parse(codes, *it->second, lax); |
| 1132 | } | 1132 | } |
| 1133 | return {}; | 1133 | return {.error = ParseInfo::Error{"invalid rule: "s + std::string{astName}, 1, 1}}; |
| 1134 | } | 1134 | } |
| 1135 | 1135 | ||
| 1136 | bool YueParser::match(std::string_view astName, std::string_view codes) { | 1136 | bool YueParser::match(std::string_view astName, std::string_view codes) { |
