[Issue 1466] Spec claims maximal munch technique always works: not for "1..3"
Jascha Wetzel
"[firstname]" at mainia.de
Sun Sep 9 10:47:59 PDT 2007
d-bugmail at puremagic.com wrote:
> // thinks it's [0 ... 1], no maximal munch taking place
> assert (Foo[0... 1] == 0);
> }
this *is* maximal munch taking place. because of the ".." lexeme, float
literals are not lexemes. they are context free production rules
consisting of multiple lexemes. therefore "0." consists of two lexemes
and "..." wins the max munch over ".".
More information about the Digitalmars-d-bugs
mailing list