解析错误容量限制

This commit is contained in:
codeboss 2025-02-24 20:04:31 +08:00
parent a29515f72e
commit 881cfb8198
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ void lib_syntax::MatchCursor::logExprsError(std::shared_ptr<const lib_words::IPr
this->_exprs_errors.last()->addError(t, msg);
// 普适性质的判定标准
this->setFailure(this->exprsErrorCount() > 1);
this->setFailure(this->exprsErrorCount() > 1 || this->_total_errors.size() > 300);
}
void MatchCursor::quitExprs() {