parser: fixed the parsing of hexadecimal and binary literals.

REVIEW: 116795