From bbedb616079b46f5c36c7d1524ac2a6d37fb196c Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 14 Jul 2023 10:25:26 -0500 Subject: [PATCH] Restore comment specific to match/case --- parser/src/soft_keywords.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/src/soft_keywords.rs b/parser/src/soft_keywords.rs index bcb8680..510c33b 100644 --- a/parser/src/soft_keywords.rs +++ b/parser/src/soft_keywords.rs @@ -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 {