update - syntax:msg
This commit is contained in:
parent
8b7ebd11ac
commit
74e065581c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue