https://github.com/dannymcgee/vscode-go-grammar
A detailed TextMate grammar for Go
https://github.com/dannymcgee/vscode-go-grammar
go golang grammar syntax-highlighting textmate-grammar vscode vscode-extension
Last synced: 12 days ago
JSON representation
A detailed TextMate grammar for Go
- Host: GitHub
- URL: https://github.com/dannymcgee/vscode-go-grammar
- Owner: dannymcgee
- License: mit
- Created: 2021-01-10T21:52:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T20:36:33.000Z (almost 3 years ago)
- Last Synced: 2025-04-19T09:02:52.768Z (16 days ago)
- Topics: go, golang, grammar, syntax-highlighting, textmate-grammar, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 1.22 MB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Grammar
This extension provides a highly detailed VSCode TextMate grammar for Go. The TextMate scopes are mostly borrowed from Microsoft's TypeScript grammar, so it should work out-of-the-box with your favorite theme.


Do note that some of the highlights aren't _quite_ right due to the limits of TextMate's grammar format (and the limits of my patience 🙂), particularly around variables vs packages vs types. If this sort of thing bugs you as much as it bugs me, you can install my [patched version of gopls](https://github.com/dannymcgee/golang-tools/tree/semantic-tokens) to fix it.

