(l *Lexer)
| 70 | } |
| 71 | |
| 72 | func number(l *Lexer) stateFn { |
| 73 | if !l.scanNumber() { |
| 74 | return l.error("bad number syntax: %q", l.word()) |
| 75 | } |
| 76 | l.emit(Number) |
| 77 | return root |
| 78 | } |
| 79 | |
| 80 | func (l *Lexer) scanNumber() bool { |
| 81 | digits := "0123456789_" |
nothing calls this directly
no test coverage detected
searching dependent graphs…