mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
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:
parent
788d212ab3
commit
07fc8cc20e
2 changed files with 27 additions and 0 deletions
|
|
@ -104,6 +104,16 @@ list.go = {
|
||||||
maintainers = {"@theHamsta", "@WinWisely268"},
|
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 = {
|
list.graphql = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/bkegley/tree-sitter-graphql",
|
url = "https://github.com/bkegley/tree-sitter-graphql",
|
||||||
|
|
|
||||||
17
queries/gomod/highlights.scm
Normal file
17
queries/gomod/highlights.scm
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
[
|
||||||
|
"require"
|
||||||
|
"replace"
|
||||||
|
"go"
|
||||||
|
"exclude"
|
||||||
|
"retract"
|
||||||
|
"module"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
"=>" @operator
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
(version)
|
||||||
|
(go_version)
|
||||||
|
] @string
|
||||||
Loading…
Add table
Add a link
Reference in a new issue