mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
feat: add gosum
This commit is contained in:
parent
588cdb6c06
commit
98a52ce300
4 changed files with 46 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [go](https://github.com/tree-sitter/tree-sitter-go) (maintained by @theHamsta, @WinWisely268)
|
- [x] [go](https://github.com/tree-sitter/tree-sitter-go) (maintained by @theHamsta, @WinWisely268)
|
||||||
- [x] [Godot Resources (gdresource)](https://github.com/PrestonKnopp/tree-sitter-godot-resource) (maintained by @pierpo)
|
- [x] [Godot Resources (gdresource)](https://github.com/PrestonKnopp/tree-sitter-godot-resource) (maintained by @pierpo)
|
||||||
- [x] [gomod](https://github.com/camdencheek/tree-sitter-go-mod) (maintained by @camdencheek)
|
- [x] [gomod](https://github.com/camdencheek/tree-sitter-go-mod) (maintained by @camdencheek)
|
||||||
|
- [x] [gosum](https://github.com/amaanq/tree-sitter-go-sum) (maintained by @amaanq)
|
||||||
- [x] [gowork](https://github.com/omertuc/tree-sitter-go-work) (maintained by @omertuc)
|
- [x] [gowork](https://github.com/omertuc/tree-sitter-go-work) (maintained by @omertuc)
|
||||||
- [x] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley)
|
- [x] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley)
|
||||||
- [ ] [hack](https://github.com/slackhq/tree-sitter-hack)
|
- [ ] [hack](https://github.com/slackhq/tree-sitter-hack)
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,9 @@
|
||||||
"gomod": {
|
"gomod": {
|
||||||
"revision": "4a65743dbc2bb3094114dd2b43da03c820aa5234"
|
"revision": "4a65743dbc2bb3094114dd2b43da03c820aa5234"
|
||||||
},
|
},
|
||||||
|
"gosum": {
|
||||||
|
"revision": "68974b63c19dc6e27214a5c76b6e26c0c40fe5b7"
|
||||||
|
},
|
||||||
"gowork": {
|
"gowork": {
|
||||||
"revision": "949a8a470559543857a62102c84700d291fc984c"
|
"revision": "949a8a470559543857a62102c84700d291fc984c"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -534,6 +534,15 @@ list.gomod = {
|
||||||
filetype = "gomod",
|
filetype = "gomod",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.gosum = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/amaanq/tree-sitter-go-sum",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@amaanq" },
|
||||||
|
filetype = "gosum",
|
||||||
|
}
|
||||||
|
|
||||||
list.gowork = {
|
list.gowork = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/omertuc/tree-sitter-go-work",
|
url = "https://github.com/omertuc/tree-sitter-go-work",
|
||||||
|
|
|
||||||
33
queries/gosum/highlights.scm
Normal file
33
queries/gosum/highlights.scm
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
[
|
||||||
|
"alpha"
|
||||||
|
"beta"
|
||||||
|
"dev"
|
||||||
|
"pre"
|
||||||
|
"rc"
|
||||||
|
"+incompatible"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
(module_path)
|
||||||
|
(hash)
|
||||||
|
] @string
|
||||||
|
|
||||||
|
(base_version) @string.special
|
||||||
|
|
||||||
|
(hash_version) @symbol
|
||||||
|
|
||||||
|
[
|
||||||
|
(number)
|
||||||
|
(number_with_decimal)
|
||||||
|
(hex_number)
|
||||||
|
] @number
|
||||||
|
|
||||||
|
(checksum
|
||||||
|
"go.mod" @string)
|
||||||
|
|
||||||
|
[
|
||||||
|
":"
|
||||||
|
"."
|
||||||
|
"-"
|
||||||
|
"/"
|
||||||
|
] @punctuation.delimiter
|
||||||
Loading…
Add table
Add a link
Reference in a new issue