mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
The new golang 1.18 version (currently in beta) [introduced](https://github.com/golang/go/issues/45713) a new file type called `go.work`. This commit adds support for the syntax of that file using the https://github.com/omertuc/tree-sitter-go-work repository That repository is heavily based on previous work in the https://github.com/camdencheek/tree-sitter-go-mod repository, with a few minor changes to make it work on the very similar `go.work` files.
14 lines
112 B
Scheme
14 lines
112 B
Scheme
[
|
|
"replace"
|
|
"go"
|
|
"use"
|
|
] @keyword
|
|
|
|
"=>" @operator
|
|
|
|
(comment) @comment
|
|
|
|
[
|
|
(version)
|
|
(go_version)
|
|
] @string
|