diff options
| author | Omer Tuchfeld <otuchfel@redhat.com> | 2021-12-16 22:40:06 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-12-18 20:02:08 +0100 |
| commit | 3b05ef44927cc245d2c68873d0a526592d3f93cd (patch) | |
| tree | d732680a54cedbb52b19c1f74a00d37657628d9a /lua | |
| parent | Fix misleading text in `CONTRIBUTING.md` (#2137) (diff) | |
| download | nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.tar nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.tar.gz nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.tar.bz2 nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.tar.lz nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.tar.xz nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.tar.zst nvim-treesitter-3b05ef44927cc245d2c68873d0a526592d3f93cd.zip | |
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.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 57280e820..304166ef8 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -184,6 +184,16 @@ list.gomod = { filetype = "gomod", } +list.gowork = { + install_info = { + url = "https://github.com/omertuc/tree-sitter-go-work", + branch = "main", + files = { "src/parser.c" }, + }, + maintainers = { "@omertuc" }, + filetype = "gowork", +} + list.graphql = { install_info = { url = "https://github.com/bkegley/tree-sitter-graphql", |
