-
Notifications
You must be signed in to change notification settings - Fork 8
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go syntax highlighting missing for structs #7
Comments
Why they're differentAtom upgraded (not without issues) to the Tree-Sitter parser written by Max Brunsfeld who has done an awesome job. The tree sitter is an objectively more powerful parser and is order of magnitudes more efficient than the old standard: TextMate grammar parsers. Not to mention the design and documentation is great, while TextMate does not have any official documentation at all and contains multiple design shortfalls. (TM grammars are used well-beyond their creators intended scope). Someone has written a tree-sitter go lang grammar, which is what Atom uses. VS Code is working on switching to tree sitter parsers microsoft/vscode#50140 However, the TextMate grammar parser is heavily heavily heavily integrated into VS Code. Its going to be hard to switch. I've done some work myself with George Fraser (CEO of Fivetran) and Max Burnfelds to get experimental Tree Sitter support for VS Code via an extension. What this repo isAFAIK this repo Most-up-to-date grammar isn't saying much because this is a relatively simple/primitive TextMate grammar. How to fix what you're seeingFirst, you probably want to get a theme that colors operators like Next, coloring aspects like We can break issue into feature request issues, but in TextMate things like struct definitions and struct-type usage will be separate problems and struct-type usage will likely be broken into several more sub-problems, some of which may be unsolvable. |
@Jacalz If you're interested in improving the Go Syntax let me know and I can help walk you through what needs to be done. |
Thanks for the offer. I would definitely be interested in helping out in any way that I can. Perhaps not right now because I have a lot to do, but in a couple weeks maybe :) |
I just started using Go in vscode and started searching for this exact problem. Are there no solutions yet for this problem? |
Originally posted on microsoft/vscode#89288
The text was updated successfully, but these errors were encountered: