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

Fail to reject an invalid literal string #128

Open
bendrissou opened this issue Feb 3, 2023 · 0 comments
Open

Fail to reject an invalid literal string #128

bendrissou opened this issue Feb 3, 2023 · 0 comments

Comments

@bendrissou
Copy link

The parser fails to reject the following invalid input:

return "\u{XYZ}"

Only hexadecimal digits should be allowed in the escape sequence, which is not the case in the example above.

From the Lua specification, we have:

The UTF-8 encoding of a Unicode character can be inserted in a literal string with the escape sequence \u{XXX} (note the mandatory enclosing brackets), where XXX is a sequence of one or more hexadecimal digits representing the character code point.

Can you provide feedback on this issue please.

Thanks

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