IsNonMatch looks for rule in nonmatch list at given scope
(scope lexer.Reg, pr *Rule)
| 411 | |
| 412 | // IsNonMatch looks for rule in nonmatch list at given scope |
| 413 | func (ps *State) IsNonMatch(scope lexer.Reg, pr *Rule) bool { |
| 414 | return ps.NonMatches.Has(scope, pr) |
| 415 | } |
| 416 | |
| 417 | // ResetNonMatches resets the non-match map -- do after every EOS |
| 418 | func (ps *State) ResetNonMatches() { |