feat: add gosum

This commit is contained in:
Amaan Qureshi 2023-02-03 10:14:13 -05:00 committed by ObserverOfTime
parent 588cdb6c06
commit 98a52ce300
4 changed files with 46 additions and 0 deletions

View file

@ -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] [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] [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] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley)
- [ ] [hack](https://github.com/slackhq/tree-sitter-hack)

View file

@ -155,6 +155,9 @@
"gomod": {
"revision": "4a65743dbc2bb3094114dd2b43da03c820aa5234"
},
"gosum": {
"revision": "68974b63c19dc6e27214a5c76b6e26c0c40fe5b7"
},
"gowork": {
"revision": "949a8a470559543857a62102c84700d291fc984c"
},

View file

@ -534,6 +534,15 @@ list.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 = {
install_info = {
url = "https://github.com/omertuc/tree-sitter-go-work",

View 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