Skip to content

Add support for escaped quotes in regex #3

Description

@czipperz

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions