The way the regex parser currently works is good enough in most cases, but when you try to escape the start of a sting, or try to use <-[]>, then it breaks
token var1 { <[" a..r ]> } # works correctly
token var1 { <-[" a..r ]> } # rest of document is string
token var3 { <-[\" a..r ]> } # rest of document is string
token var4 { <-['"' a..r ]> } # works correctly but REJECTED BY PERL6
token quoted_string { \" .*? \" } # rest of document is string
token quoted_string { '"' .*? '"' } # works correctly
Please fix
The way the regex parser currently works is good enough in most cases, but when you try to escape the start of a sting, or try to use
<-[]>, then it breaksPlease fix