We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d1a41 commit 8432964Copy full SHA for 8432964
parser/src/soft_keywords.rs
@@ -54,8 +54,8 @@ where
54
// 1. The token is at the start of a logical line.
55
// 2. The logical line contains a top-level colon (that is, a colon that is not nested
56
// inside a parenthesized expression, list, or dictionary).
57
- // 3. The top-level colon is not the immediate sibling of a soft keyword token.
58
- // (This is to avoid treating soft keywords as identifiers when annotated with
+ // 3. The top-level colon is not the immediate sibling of a `match` or `case` token.
+ // (This is to avoid treating `match` or `case` as identifiers when annotated with
59
// type hints.)
60
if matches!(tok, Tok::Match | Tok::Case) {
61
if !self.start_of_line {
0 commit comments