(c rune)
| 139 | } |
| 140 | |
| 141 | func (s *scanner) save(c rune) { |
| 142 | if err := s.buffer.WriteByte(byte(c)); err != nil { |
| 143 | s.scanError("lexical element too long", 0) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | func (s *scanner) checkNext(str string) bool { |
| 148 | if s.current == 0 || !strings.ContainsRune(str, s.current) { |
no test coverage detected