Add go-mod tree-sitter config

Adds a tree-sitter config for go.mod files as well as highlighting
queries.
This commit is contained in:
Camden Cheek 2021-04-27 15:17:42 -06:00 committed by Thomas Vigouroux
parent 788d212ab3
commit 07fc8cc20e
2 changed files with 27 additions and 0 deletions

View file

@ -104,6 +104,16 @@ list.go = {
maintainers = {"@theHamsta", "@WinWisely268"},
}
list.gomod = {
install_info = {
url = "https://github.com/camdencheek/tree-sitter-go-mod",
branch = "main",
files = { "src/parser.c" },
},
maintainers = {"@camdencheek"},
filetype = "gomod",
}
list.graphql = {
install_info = {
url = "https://github.com/bkegley/tree-sitter-graphql",

View file

@ -0,0 +1,17 @@
[
"require"
"replace"
"go"
"exclude"
"retract"
"module"
] @keyword
"=>" @operator
(comment) @comment
[
(version)
(go_version)
] @string