<pmichaud> std:  say v2013.4.5
<camelia> std fc92e1e: OUTPUT«===SORRY!===␤Confused at /tmp/W0MHCqFo4M line 
1:␤------> say v2013.⏏4.5 [...]
<pmichaud> aha
<lizmat> :-)
<pmichaud> looks like STD and Rakudo agree here about multi-digit version 
numbers
<masak> I recognize this failure mode.
<masak> we've encountered it before
<pmichaud> it's a longest-token-matching issue
<masak> (not just earlier today)
<masak> I bet there is an RT ticket with it somewhere
* masak goes hunting for it
<pmichaud> I suspect that   v123.10   ends up with "v123" as identifier over 
'v1'
<masak> *nod*
<pmichaud> because the grammar rule is
<pmichaud> token version:sym<v> {
<pmichaud>         'v' <?before \d> :: <vnum> +% '.' '+'?
<pmichaud>     }
<pmichaud> which means LTM stops at the ::
<masak> https://rt.perl.org/Ticket/Display.html?id=116016
<masak> is that one related?
<masak> it's from 2012
<pmichaud> yes, it looks exactly the same
* masak merges the two tickets
<pmichaud> I wonder why we need the <?before \d> ::  part
<pmichaud> well, <?before \d>  is guarding against  "v*.3.4"  as a version 
identifier
<pmichaud> I wonder what happens if we get rid of the '::'
<FROGGS> and the :: commits to that token, no?
<FROGGS> so it won't try other rules, at least in theory
<pmichaud> no
<pmichaud> :: commits to an alternation

Reply via email to