mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Clarify and correct comment about multi_byte_tokens
This commit is contained in:
parent
3d3026dc60
commit
89cf7d8743
@ -25,9 +25,9 @@ Grammar(
|
|||||||
["^", "CARET"],
|
["^", "CARET"],
|
||||||
["%", "PERCENT"],
|
["%", "PERCENT"],
|
||||||
],
|
],
|
||||||
// TODO: Confirm surmision: the tokens which cannot be recorded in a single UTF-8 byte
|
// Tokens for which the longest match must be chosen (e.g. `..` is a DOTDOT, but `.` is a DOT)
|
||||||
multi_byte_tokens: [
|
multi_byte_tokens: [
|
||||||
[".", "DOT"], // Note: DOT is here because <TODO: REASON>
|
[".", "DOT"],
|
||||||
["..", "DOTDOT"],
|
["..", "DOTDOT"],
|
||||||
["...", "DOTDOTDOT"],
|
["...", "DOTDOTDOT"],
|
||||||
["..=", "DOTDOTEQ"],
|
["..=", "DOTDOTEQ"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user