func Number(l *lex.Lexer) lex.StateFn { if !l.ScanNumber() { return l.Errorf("bad number syntax: %q", l.Input[l.Start:l.Pos]) } l.Emit(ItemNumber) return InsideAction }