STD.pm was updated to handle leading dot in Num constants, thus
we now have (in both rakudo's grammar and STD.pm):

    token escale {
        <[Ee]> <[+\-]>? \d+
    }
    
    # careful to distinguish from both integer and 42.method
    token dec_number {
        [
        |            '.' \d+[_\d+]* <escale>?
        | \d+[_\d+]* '.' \d+[_\d+]* <escale>?
        | \d+[_\d+]*                <escale>
        ]
        {*}
    }
    
(Rakudo's version currently has the <escale> subrule calls 
as non-capturing.)

Thanks!

Pm

Reply via email to