AddNonMatch adds given rule to non-matching rule set for this scope
(scope lexer.Reg, pr *Rule)
| 406 | |
| 407 | // AddNonMatch adds given rule to non-matching rule set for this scope |
| 408 | func (ps *State) AddNonMatch(scope lexer.Reg, pr *Rule) { |
| 409 | ps.NonMatches.Add(scope, pr) |
| 410 | } |
| 411 | |
| 412 | // IsNonMatch looks for rule in nonmatch list at given scope |
| 413 | func (ps *State) IsNonMatch(scope lexer.Reg, pr *Rule) bool { |
no test coverage detected