From c093761e7687a3778b1a2c5a5e7de0f9b8f520ce Mon Sep 17 00:00:00 2001 From: John Kelly Date: Tue, 8 Aug 2023 12:29:30 +0100 Subject: [PATCH 1/2] Add textobjects for protobuf --- runtime/queries/protobuf/textobjects.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/queries/protobuf/textobjects.scm diff --git a/runtime/queries/protobuf/textobjects.scm b/runtime/queries/protobuf/textobjects.scm new file mode 100644 index 000000000000..634fa4e4fef5 --- /dev/null +++ b/runtime/queries/protobuf/textobjects.scm @@ -0,0 +1,14 @@ +(rpc) @function.inside +(rpc) @function.around + +(rpc + (enumMessageType) @parameter.inside) + +(message + (messageBody) @class.inside) @class.around + +(service + (serviceBody) @class.inside) @class.around + +(comment) @comment.inside +(comment)+ @comment.around From 3e00ea2a67a14a1e713ca7b572ff16cee09148aa Mon Sep 17 00:00:00 2001 From: John Kelly Date: Mon, 4 Sep 2023 19:25:23 +0100 Subject: [PATCH 2/2] run xtask --- book/src/generated/lang-support.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 22689c9c6405..12eaefe85903 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -115,7 +115,7 @@ | ponylang | ✓ | ✓ | ✓ | | | prisma | ✓ | | | `prisma-language-server` | | prolog | | | | `swipl` | -| protobuf | ✓ | | ✓ | `bufls`, `pb` | +| protobuf | ✓ | ✓ | ✓ | `bufls`, `pb` | | prql | ✓ | | | | | purescript | ✓ | | | `purescript-language-server` | | python | ✓ | ✓ | ✓ | `pylsp` |