Skip to content

Commit

Permalink
Add support for all coloncircumfix in the form 42.:<->
Browse files Browse the repository at this point in the history
Before only `42.:<->` was permitted. This commit weakens numbers-may-not-end-with-decimal error checking to support `42.:<<->>`, `42.:['-']`, etc to bring it inline with `(42).:['-']`, `(42).:['-']`, etc working. These are the requested changes that AlexDaniel made with regard to my pull request to fix GitHub #2094.
  • Loading branch information
ribbon-otter committed Aug 26, 2018
1 parent ec366c3 commit 1835f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -3688,7 +3688,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
]
| <VALUE=decint>
]
<!!before ['.' <?before \s | ',' | '=' | ':' <!before ['<' <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 1835f28

Please sign in to comment.