mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-16 08:30:30 +00:00
Apply NFKC normalization to unicode identifiers in the lexer (#10412)
This commit is contained in:
parent
bb540718c2
commit
92e6026446
9 changed files with 68 additions and 15 deletions
|
@ -16,6 +16,9 @@ pub enum Tok {
|
|||
/// Token value for a name, commonly known as an identifier.
|
||||
Name {
|
||||
/// The name value.
|
||||
///
|
||||
/// Unicode names are NFKC-normalized by the lexer,
|
||||
/// matching [the behaviour of Python's lexer](https://docs.python.org/3/reference/lexical_analysis.html#identifiers)
|
||||
name: Box<str>,
|
||||
},
|
||||
/// Token value for an integer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue