mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Keywords like 'let' can serve as argument labels. When they do so, we should highlight them as identifiers instead of keywords. However, the check for this situation seems overly lenient so that when 'let', 'var' appear in conditions of IfStmt or GuardStmt, they are wrongly highlighted as identifiers too. This commit strengthens the checking to preserve keywords' identity in these statements. rdar://28297337
54 KiB
54 KiB