()
| 185 | } |
| 186 | |
| 187 | func (p *prattParserWorker) nextSignificantToken() token { |
| 188 | if p.isRecoveryLimitExceeded() { |
| 189 | return token{kind: tokEnd, start: p.length, end: p.length} |
| 190 | } |
| 191 | for { |
| 192 | tok := p.lexer.Lex() |
| 193 | if tok.kind == tokWhitespace || tok.kind == tokComment { |
| 194 | continue |
| 195 | } |
| 196 | if tok.kind == tokError { |
| 197 | p.reportSyntaxError(tok, "%s", p.lexer.GetError().message) |
| 198 | if p.isRecoveryLimitExceeded() { |
| 199 | return token{kind: tokEnd, start: p.length, end: p.length} |
| 200 | } |
| 201 | } |
| 202 | return tok |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | func (p *prattParserWorker) scanNextSignificantToken() token { |
| 207 | for { |
no test coverage detected