Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for escaped quotes in regex #3

Open
czipperz opened this issue Jul 24, 2015 · 3 comments
Open

Add support for escaped quotes in regex #3

czipperz opened this issue Jul 24, 2015 · 3 comments

Comments

@czipperz
Copy link

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

@hinrik
Copy link
Owner

hinrik commented Oct 14, 2015

Currently, perl6-mode highlights all the contents of regexes and grammars in the same way as normal code, so they are mostly incorrectly highlighted (except by accident on occasion).

I'm working on syntax highlighting for nested constructs (strings, regexes, grammars, Q//, Pod), so I will address this soon.

@bradclawsie
Copy link

I have been impacted by this as well, although in the meantime, using '"' in place of " has worked.

@ufobat
Copy link

ufobat commented Dec 20, 2016

i'd love to see this fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants