You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to parse literals with arbitrary suffixes (e.g. "foo"bla or 23px)
Add suffix() method to all literal types except BoolLit
Add IntegerBase::value
Add from_suffix and suffix methods to FloatType and IntegerType
Add FromStr and Display impls to FloatType and IntegerType
Changed
Breaking: Mark FloatType and IntegerType as #[non_exhaustive]
Breaking: Fix integer parsing for cases like 27f32. Literal::parse
and IntegerLit::parse will both identify this as an integer literal.
Breaking: Fix float parsing by correctly rejecting inputs like 27f32. A
float literal must have a period OR an exponent part, according to the spec.
Previously decimal integers were accepted in FloatLit::parse.