MCPcopy Create free account
hub / github.com/cogentcore/core / AddNonMatch

Method AddNonMatch

parse/parser/state.go:408–410  ·  view source on GitHub ↗

AddNonMatch adds given rule to non-matching rule set for this scope

(scope lexer.Reg, pr *Rule)

Source from the content-addressed store, hash-verified

406
407// AddNonMatch adds given rule to non-matching rule set for this scope
408func (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
413func (ps *State) IsNonMatch(scope lexer.Reg, pr *Rule) bool {

Callers 2

MatchMethod · 0.80
MatchGroupMethod · 0.80

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected