update - syntax:msg

This commit is contained in:
codeboss 2024-07-28 14:46:47 +08:00
parent 8b7ebd11ac
commit 74e065581c
1 changed files with 3 additions and 1 deletions

View File

@ -85,8 +85,10 @@ QString Rept::token_present() const
{ {
if(min_match == 0 && max_match == INT_MAX) if(min_match == 0 && max_match == INT_MAX)
return u8"(" + this->rule_peer->token_present() + QString(u8")*"); return u8"(" + this->rule_peer->token_present() + QString(u8")*");
else if(min_match == 1 && max_match == INT_MAX) else if (min_match == 1 && max_match == INT_MAX)
return u8"(" + this->rule_peer->token_present() + QString(u8")+"); return u8"(" + this->rule_peer->token_present() + QString(u8")+");
else if (min_match == 0 && max_match == 1)
return u8"(" + this->rule_peer->token_present() + QString(u8")?");
return u8"(" + this->rule_peer->token_present() + QString(u8"){%1, %2}").arg(min_match).arg(max_match); return u8"(" + this->rule_peer->token_present() + QString(u8"){%1, %2}").arg(min_match).arg(max_match);
} }