-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Additional Options for Quoted Strings #194
Comments
Feel free to create a PR with your suggestions, this seems sensible. Do you have known languages in mind that use it while keeping the existing |
Interesting point about the |
Support added in #202 |
In my use case, I wanted to add backtick to quote strings. Looking at the
Scanner
it seems straightforward to add more types. If this is something you think could be useful to others I can start a PR.Not sure what your prefer approach would be, but my initial thoughts are:
StringLiteralQuotes
enums and follow the pattern for single and double quotes.ReadQuotedString
method public and people can make their own parsersAs a workaround I hacked option 3 by creating a BacktickLiteral, that uses
UnsafeAccessor
to access the private method.The text was updated successfully, but these errors were encountered: