Restore comment specific to match/case

This commit is contained in:
Zanie Blue 2023-07-14 10:25:26 -05:00 committed by Zanie
parent 2e95af73c4
commit bbedb61607

View file

@ -54,8 +54,8 @@ where
// 1. The token is at the start of a logical line.
// 2. The logical line contains a top-level colon (that is, a colon that is not nested
// inside a parenthesized expression, list, or dictionary).
// 3. The top-level colon is not the immediate sibling of a soft keyword token.
// (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
// type hints.)
if matches!(tok, Tok::Match | Tok::Case) {
if !self.start_of_line {