Subject: | upper case letters in hexadecimal constants not parsed |
Date: | Sat, 07 Jun 2008 10:08:22 +1000 |
To: | bug-PPI [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Running "ppidump 0x10FF" (ppidump from perlcritic) gives
PPI::Document
PPI::Statement
PPI::Token::Number::Hex '0x10'
PPI::Token::Word 'FF'
where I hoped the PPI::Token::Number::Hex would be '0x10FF'.
There's similar dodginess with an upper case 'X', eg "ppidump 0Xff"
PPI::Document
PPI::Statement
PPI::Token::Number '0'
PPI::Token::Word 'Xff'