mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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"},
|
||||
}
|
||||
|
||||
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",
|
||||
|
|
|
|||
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