This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #134125) make no digits after 0x/0b fatal
authorTony Cook <tony@develop-help.com>
Thu, 20 Jun 2019 01:06:13 +0000 (11:06 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 26 Jun 2019 23:53:57 +0000 (09:53 +1000)
commit1ef28cc363aecc46572509c9acfcd02ed416d226
treed2fadd0525a278cd2928ac16250a3a8e58313ffc
parentc4d7a63389c79059f9f3d318c4166a3b11bb0974
(perl #134125) make no digits after 0x/0b fatal

My original change in 7259f4194 silently adjusted the parse
position to immediately after the 0 in an incomplete hex or binary
literal.  In most cases this leads to a syntax error, but in some
cases, especially with 0x, this can lead to a silent change in
behaviour.

So throw an error instead.
pod/perldiag.pod
t/lib/croak/toke
t/op/hexfp.t
toke.c