feat!: change upstream proto parser and improve highlights

This commit is contained in:
Trey Wood 2023-08-02 11:54:53 -06:00 committed by GitHub
parent 4c4d586a05
commit 8968a3a541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 12 deletions

View file

@ -306,7 +306,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [pony](https://github.com/amaanq/tree-sitter-pony) (maintained by @amaanq, @mfelsche) - [x] [pony](https://github.com/amaanq/tree-sitter-pony) (maintained by @amaanq, @mfelsche)
- [x] [prisma](https://github.com/victorhqc/tree-sitter-prisma) (maintained by @elianiva) - [x] [prisma](https://github.com/victorhqc/tree-sitter-prisma) (maintained by @elianiva)
- [x] [promql](https://github.com/MichaHoffmann/tree-sitter-promql) (maintained by @MichaHoffmann) - [x] [promql](https://github.com/MichaHoffmann/tree-sitter-promql) (maintained by @MichaHoffmann)
- [x] [proto](https://github.com/mitchellh/tree-sitter-proto) (maintained by @fsouza) - [x] [proto](https://github.com/treywood/tree-sitter-proto) (maintained by @treywood)
- [x] [prql](https://github.com/PRQL/tree-sitter-prql) (maintained by @matthias-Q) - [x] [prql](https://github.com/PRQL/tree-sitter-prql) (maintained by @matthias-Q)
- [x] [pug](https://github.com/zealot128/tree-sitter-pug) (experimental, maintained by @zealot128) - [x] [pug](https://github.com/zealot128/tree-sitter-pug) (experimental, maintained by @zealot128)
- [x] [puppet](https://github.com/amaanq/tree-sitter-puppet) (maintained by @amaanq) - [x] [puppet](https://github.com/amaanq/tree-sitter-puppet) (maintained by @amaanq)

View file

@ -399,7 +399,7 @@
"revision": "ed9a12f6ae4e75d4622adef8fb1b1e4d0ac0a759" "revision": "ed9a12f6ae4e75d4622adef8fb1b1e4d0ac0a759"
}, },
"proto": { "proto": {
"revision": "42d82fa18f8afe59b5fc0b16c207ee4f84cb185f" "revision": "4f5450ca84ffc1bff6c604f061276729cf184f40"
}, },
"prql": { "prql": {
"revision": "09e158cd3650581c0af4c49c2e5b10c4834c8646" "revision": "09e158cd3650581c0af4c49c2e5b10c4834c8646"

View file

@ -1198,10 +1198,10 @@ list.promql = {
list.proto = { list.proto = {
install_info = { install_info = {
url = "https://github.com/mitchellh/tree-sitter-proto", url = "https://github.com/treywood/tree-sitter-proto",
files = { "src/parser.c" }, files = { "src/parser.c" },
}, },
maintainers = { "@fsouza" }, maintainers = { "@treywood" },
} }
list.prql = { list.prql = {

View file

@ -1,18 +1,30 @@
[ [
"syntax"
"option"
"service"
"rpc"
"returns"
"message"
"enum" "enum"
"extend"
"extensions"
"message"
"oneof" "oneof"
"optional" "option"
"repeated"
"reserved" "reserved"
"service"
"syntax"
"to" "to"
] @keyword ] @keyword
[
"rpc"
] @keyword.function
[
"returns"
] @keyword.return
[
"optional"
"repeated"
"required"
] @type.qualifier
[ [
"package" "package"
"import" "import"
@ -34,6 +46,7 @@
[ [
(string) (string)
"\"proto3\"" "\"proto3\""
"\"proto2\""
] @string ] @string
(int_lit) @number (int_lit) @number