textmate / swift.tmbundle

TextMate support for Swift
72 stars 30 forks source link

Wrong color for parameter named "continue" #34

Closed LinusU closed 6 years ago

LinusU commented 6 years ago

First of all, I noticed this in VS Code with the default syntax highlighting, terribly sorry if this is not the correct repo to report to 🙈

screen shot 2018-04-20 at 11 35 51

Pasted in the following:

optional func application(_ application: UIApplication, 
                 continue userActivity: NSUserActivity, 
       restorationHandler: @escaping ([Any]?) -> Void) -> Bool

and started googling what the continue keyword meant for a function parameter 😂

jtbandes commented 6 years ago

No, this is handled fine by Swift.tmbundle:

(In fact, GitHub syntax highlighting also uses this bundle, so your code sample above is enough to see that it is working 😉)

LinusU commented 6 years ago

Sorry 🙈 I'll dig deeper

infininight commented 6 years ago

In many cases VSCode does use the TextMate grammar versions but in this case it uses:

https://github.com/freebroccolo/atom-language-swift

It is no longer maintained though so you may need to ask VSCode support to switch to a more maintained grammar or see if someone wants to take up maintenance otherwise.