()
| 334 | } |
| 335 | |
| 336 | func (s *scanner) readDecimalEscape() (r rune) { |
| 337 | b := [3]rune{} |
| 338 | for c, i := s.current, 0; i < len(b) && isDecimal(c); i, c = i+1, s.current { |
| 339 | b[i], r = c, 10*r+c-'0' |
| 340 | s.advance() |
| 341 | } |
| 342 | if r > math.MaxUint8 { |
| 343 | s.escapeError(b[:], "decimal escape too large") |
| 344 | } |
| 345 | return |
| 346 | } |
| 347 | |
| 348 | func (s *scanner) readString() token { |
| 349 | delimiter := s.current |
no test coverage detected