std.d.
lexer
.isNumberLiteral
public bool isNumberLiteral(IdType type) nothrow pure @safe
Returns
true if the given ID type is for a number literal.