fn lex_number(bytes: &[u8], start: usize) -> Result<(TokenKind, usize), String>Expand description
Lex one numeric literal starting at i. Returns the token kind plus the
end byte offset. Accepts:
- decimal int (
0,12,02) - hex int (
0x1F,0xff) - float (
1.5,.5,5.,1e2,1.5e-3) - optional suffix
f/F/h/H/u/U/l/L(consumed but ignored — the parser uses the post-parsing numeric value).