We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Python supports some, but not all Unicode characters in identifiers. See https://docs.python.org/3/reference/lexical_analysis.html#identifiers and https://peps.python.org/pep-3131/
However, Ruff is not correctly enforcing the subset of valid unicode characters e.g. in is_identifier
is_identifier
ruff/crates/ruff_python_stdlib/src/identifiers.rs
Lines 3 to 23 in 1df7e98
This causes bugs such as:
We need to add validation of the specific supported subset of characters.
The text was updated successfully, but these errors were encountered:
The relevant function in our lexer
ruff/crates/ruff_python_parser/src/lexer.rs
Lines 1182 to 1187 in 4d49d5e
Sorry, something went wrong.
I can work on this one
LaBatata101
Successfully merging a pull request may close this issue.
Python supports some, but not all Unicode characters in identifiers. See https://docs.python.org/3/reference/lexical_analysis.html#identifiers and https://peps.python.org/pep-3131/
However, Ruff is not correctly enforcing the subset of valid unicode characters e.g. in
is_identifier
ruff/crates/ruff_python_stdlib/src/identifiers.rs
Lines 3 to 23 in 1df7e98
This causes bugs such as:
We need to add validation of the specific supported subset of characters.
The text was updated successfully, but these errors were encountered: