3 Replies
      Latest reply on Oct 28, 2016 3:23 AM by eskimo
      appstudiofreek Level 1 Level 1 (0 points)

        Hello hello.


        Since Swift 3 and Xcode 8, nested `if let` aren't correctly syntax highlighted? For instance:


        if let first = dict["foo"] as? String,
             let second = dict["bar"] as? String
             // ...


        The first `let` keyword is correctly highlighted by Xcode. The second `let` keyword, and any succeeding `var` and `let` keywords in the if statement aren't. This has been present since Xcode 8, and is still present in Xcode 8.1 GM. Funnily enough, Swift Playgrounds on iPad doesn't have this problem.


        This is seriously triggering my OCD.


        If this can be fixed manually, I'd be glad to know. Thanks in advance!