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

[USL] Support for raw strings in identifier content #323

Open
piotr-j opened this issue May 28, 2020 · 1 comment
Open

[USL] Support for raw strings in identifier content #323

piotr-j opened this issue May 28, 2020 · 1 comment
Labels

Comments

@piotr-j
Copy link
Contributor

piotr-j commented May 28, 2020

Currently some characters are not allowed in content, namely ,, } and \n as they are used to find end of content in Lexer#lexIdentifierContent(). Optional " for raw strings would be nice.

Ive encountered this in definition for FreeTypeFontGenerator as it uses field for characters that should be generated.

While I dont really need this to be fixed, issue created in case someone else founds this problem.
One way this can be worked around is by using unicode escapes in the string instead of actual characters, ie \u007D instead of }

@kotcrab kotcrab added the usl label May 29, 2020
@kotcrab
Copy link
Owner

kotcrab commented May 29, 2020

Thanks for reporting, might be worth adding it to the wiki.

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

No branches or pull requests

2 participants