Subject: | 10_000.10_000.10_000 does not parse to a Number::Version token |
according to the documentation in Number::Version, 10_000.10_000.10_000
should be a version number but PPI parses it into two float tokens.
PPI::Token::Number::Float '10_000.10_000'
PPI::Token::Number::Float '.10_000'
looking at the source in Number::Float, i see the following:
} elsif ( $t->{token}->{content} !~ /_/ ) {
# Underscore means not a Version, fall through to end token
$t->{class} = $t->{token}->set_class( 'Number::Version' );
return 1;
}
which leads me to believe the !~ should actually be a =~, although
making that change locally produces this:
PPI::Token::Number::Version '10_000.10_000.10'
PPI::Token::Word '_000'
which is still incorrect, but getting there. :)
before i go hunting down where the rest of the potential bug is, i just
want to confirm that the string really should parse to a Number::Version
token.
--
-jae