Add support for new golang go.work files

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.
This commit is contained in:
Omer Tuchfeld 2021-12-16 22:40:06 +01:00 committed by Stephan Seitz
parent 4f2b4238ee
commit 3b05ef4492
7 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1 @@
(comment) @comment

View file

@ -0,0 +1,14 @@
[
"replace"
"go"
"use"
] @keyword
"=>" @operator
(comment) @comment
[
(version)
(go_version)
] @string

View file

@ -0,0 +1 @@
(comment) @comment