a parser for CSS selectors
| 11 | |
| 12 | // a parser for CSS selectors |
| 13 | type parser struct { |
| 14 | s string // the source text |
| 15 | i int // the current position |
| 16 | depth int // current nesting depth |
| 17 | |
| 18 | // if `false`, parsing a pseudo-element |
| 19 | // returns an error. |
| 20 | acceptPseudoElements bool |
| 21 | } |
| 22 | |
| 23 | // parseEscape parses a backslash escape. |
| 24 | func (p *parser) parseEscape() (result string, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected