Skip to content
Permalink
Browse files

Add support for all coloncircumfix in the form 42.:<->

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 1835f2806fa1e3dcc6663731d07dbf0d69d7c0ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Perl6/Grammar.nqp
@@ -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"> ]?
}

0 comments on commit 1835f28

Please sign in to comment.
You can’t perform that action at this time.