mirror of
https://github.com/tnodir/fort
synced 2024-11-14 22:05:12 +00:00
UI: RuleTextParser: Add parseNot()
This commit is contained in:
parent
729b15c163
commit
6cd542b21f
@ -215,8 +215,7 @@ bool RuleTextParser::parseSectionChar()
|
||||
return parseName();
|
||||
} break;
|
||||
case CharNot: {
|
||||
m_ruleFilter.isNot = !m_ruleFilter.isNot;
|
||||
return true;
|
||||
return parseNot();
|
||||
} break;
|
||||
case CharColon: {
|
||||
m_ruleFilter.isSectionEnd = true;
|
||||
@ -308,6 +307,13 @@ bool RuleTextParser::parseName()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RuleTextParser::parseNot()
|
||||
{
|
||||
m_ruleFilter.isNot = !m_ruleFilter.isNot;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void RuleTextParser::parseBracketValues()
|
||||
{
|
||||
RuleCharTypes expectedSeparator = CharNone;
|
||||
|
@ -106,6 +106,7 @@ private:
|
||||
bool checkListEnd();
|
||||
|
||||
bool parseName();
|
||||
bool parseNot();
|
||||
|
||||
void parseBracketValues();
|
||||
bool parseBracketValue(RuleCharTypes expectedSeparator);
|
||||
|
Loading…
Reference in New Issue
Block a user