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

Raw strings are not handled properly with backslash or some internal double quotes #15

Open
adamvandenhovenfm opened this issue Mar 22, 2018 · 0 comments

Comments

@adamvandenhovenfm
Copy link

I came across two minor annoyances with the language specification and how it handles raw strings.

The first has to do with backslash escaping. I couldn't find a more definitive statement but this description of String Templates suggests that raw strings don't do backslash escaping. So this isn't rendered correctly:

escaping

Its not the end of the world because I know whats going on. Still it would be nice to fix.

The other issue is slightly more pernicious and probably harder to resolve. Raw strings are allowed to include double quotes, and the language spec handles that fine except when a quote comes at the end of the raw string (that is the parser sees """". So this:

wrong

Can be fixed this way by adding a bit of space at the end:

ok

But there is no reason to expect that whitespace at the end of the string isn't meaningful.

Beyond the colours of the code that follows is the issue of how other editor features would interact if they think they're dealing with text.

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

No branches or pull requests

1 participant