diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-04-23 12:23:15 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-01 09:59:50 +0200 |
| commit | f58cae6c228e26681039253cb172de16cd764408 (patch) | |
| tree | 5dab18e7bf7eb9fcecc99f543a7b3c6e776291d5 /tests/query/highlights/capnp | |
| parent | bot(lockfile): update angular, cpp, djot, html, json5, mlir, python, solidity... (diff) | |
| download | nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.gz nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.bz2 nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.lz nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.xz nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.zst nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.zip | |
feat: more `@keyword.type` captures
Diffstat (limited to 'tests/query/highlights/capnp')
| -rw-r--r-- | tests/query/highlights/capnp/test.capnp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/query/highlights/capnp/test.capnp b/tests/query/highlights/capnp/test.capnp index 9480affd3..b70e91358 100644 --- a/tests/query/highlights/capnp/test.capnp +++ b/tests/query/highlights/capnp/test.capnp @@ -35,7 +35,7 @@ using Cxx = import "c++.capnp"; $Cxx.namespace("capnproto_test::capnp::test"); enum TestEnum { -# <- @keyword +# <- @keyword.type # ^^^^^^^^ @type foo @0; # ^^^ @constant @@ -51,7 +51,7 @@ enum TestEnum { # <- @punctuation.bracket struct TestAllTypes { -# <- @keyword +# <- @keyword.type voidField @0 : Void; # ^^^^^^^^^ @variable.member # ^ @punctuation.special @@ -97,7 +97,7 @@ struct TestInterleavedGroups { foo @0 :UInt32; bar @2 :UInt64; union { -# ^^^^^ @keyword +# ^^^^^ @keyword.type qux @4 :UInt16; corge :group { # ^^^^^ @type @@ -114,7 +114,7 @@ struct TestInterleavedGroups { } group2 :group { -# ^^^^^ @keyword +# ^^^^^ @keyword.type foo @1 :UInt32; bar @3 :UInt64; union { @@ -214,7 +214,7 @@ struct TestGenerics(Foo, Bar) { qux @3 :Qux; interface DeepNestInterface(Quux) { -# ^^^^^^^^^ @keyword +# ^^^^^^^^^ @keyword.type # At one time this failed to compile. call @0 () -> (); # ^^^^ @function.method @@ -230,7 +230,7 @@ struct TestGenerics(Foo, Bar) { } annotation ann(struct) :Foo; -# ^^^^^^^^^^ @keyword +# ^^^^^^^^^^ @keyword.type # ^^^ @function.method # ^^^^^^ @variable.parameter.builtin |
