Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong color for parameter named "continue" #34

Closed
LinusU opened this issue Apr 20, 2018 · 3 comments
Closed

Wrong color for parameter named "continue" #34

LinusU opened this issue Apr 20, 2018 · 3 comments

Comments

@LinusU
Copy link

LinusU commented Apr 20, 2018

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
Copy link
Collaborator

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
Copy link
Author

LinusU commented Apr 22, 2018

Sorry 馃檲 I'll dig deeper

@infininight
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants