AddMatch adds given rule to rule stack at given scope
(pr *Rule, scope lexer.Reg, regs Matches)
| 329 | |
| 330 | // AddMatch adds given rule to rule stack at given scope |
| 331 | func (ps *State) AddMatch(pr *Rule, scope lexer.Reg, regs Matches) { |
| 332 | rs := &ps.Matches[scope.St.Ln][scope.St.Ch] |
| 333 | rs.Add(pr, scope, regs) |
| 334 | } |
| 335 | |
| 336 | // IsMatch looks for rule at given scope in list of matches, if found |
| 337 | // returns match state info |
no test coverage detected