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
Allow underscores at more positions in grammar for numbers (#3681)
DecimalDigitsNoSingleUS and HexDigitsNoSingleUS previously did not
accept underscores at the start and end at the same time, but DMD allows
this. For example the hex literal `0x_1_` and the floating point
literals `0_1_.0`, `1e_1_` and `0x_1_p_1_` are accepted by DMD, but were
not allowed by the grammar. BinaryDigitsNoSingleUS was already correct.
The grammar is also simplified by using optional parts instead of
multiple rules.
0 commit comments