Skip to content

Commit

Permalink
RakuAST: throw correct exception on missing digit after decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Mar 5, 2023
1 parent a620d0f commit ae4ce14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raku/Grammar.nqp
Expand Up @@ -2354,7 +2354,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
]
| <VALUE=decint>
]
# <!!before ['.' <?before \s | ',' | '=' | ':' <!before <coloncircumfix <OPER=prefix> > > | <.terminator> | $ > <.typed_sorry: 'X::Syntax::Number::IllegalDecimal'>]? >
<!!before ['.' <?before \s | ',' | '=' | ':' <!before <coloncircumfix <OPER=prefix> > > | <.terminator> | $ > <.typed_sorry: 'X::Syntax::Number::IllegalDecimal'>]? >
[ <?before '_' '_'+\d> <.sorry: "Only isolated underscores are allowed inside numbers"> ]?
}
Expand Down

0 comments on commit ae4ce14

Please sign in to comment.