| 25410 | } |
| 25411 | |
| 25412 | func (p *parser) parseAnyMatcher(any *anyMatcher) (any, bool) { |
| 25413 | if p.debug { |
| 25414 | defer p.out(p.in("parseAnyMatcher")) |
| 25415 | } |
| 25416 | |
| 25417 | if p.pt.rn == utf8.RuneError && p.pt.w == 0 { |
| 25418 | // EOF - see utf8.DecodeRune |
| 25419 | p.failAt(false, p.pt.position, ".") |
| 25420 | return nil, false |
| 25421 | } |
| 25422 | start := p.pt |
| 25423 | p.read() |
| 25424 | p.failAt(true, start.position, ".") |
| 25425 | return p.sliceFrom(start), true |
| 25426 | } |
| 25427 | |
| 25428 | func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (any, bool) { |
| 25429 | if p.debug { |