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 | |
| 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')
| -rw-r--r-- | tests/query/highlights/capnp/test.capnp | 12 | ||||
| -rw-r--r-- | tests/query/highlights/cpp/concepts.cpp | 2 | ||||
| -rw-r--r-- | tests/query/highlights/fusion/basic.fusion | 2 | ||||
| -rw-r--r-- | tests/query/highlights/hack/use.hack | 4 | ||||
| -rw-r--r-- | tests/query/highlights/prisma/test.prisma | 2 | ||||
| -rw-r--r-- | tests/query/highlights/solidity/test.sol | 2 | ||||
| -rw-r--r-- | tests/query/highlights/t32/var.cmm | 6 | ||||
| -rw-r--r-- | tests/query/highlights/tiger/object-oriented.tig | 4 | ||||
| -rw-r--r-- | tests/query/highlights/wing/class.w | 2 |
9 files changed, 18 insertions, 18 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 diff --git a/tests/query/highlights/cpp/concepts.cpp b/tests/query/highlights/cpp/concepts.cpp index 09d975c98..3189813bc 100644 --- a/tests/query/highlights/cpp/concepts.cpp +++ b/tests/query/highlights/cpp/concepts.cpp @@ -1,7 +1,7 @@ template <class T, class U> concept Derived = std::is_base_of<U, T>::value; -// ^ @keyword +// ^ @keyword.type // ^ @type.definition template<typename T> diff --git a/tests/query/highlights/fusion/basic.fusion b/tests/query/highlights/fusion/basic.fusion index 16b99f431..5f3cc346a 100644 --- a/tests/query/highlights/fusion/basic.fusion +++ b/tests/query/highlights/fusion/basic.fusion @@ -3,7 +3,7 @@ include: SomeFile.fusion // ^ @string.special.url namespace: ns = Neos.Fusion.Space -//<- @keyword +//<- @keyword.type // ^ @module // ^ @operator // ^ @module diff --git a/tests/query/highlights/hack/use.hack b/tests/query/highlights/hack/use.hack index 0b1fde364..ab17d1140 100644 --- a/tests/query/highlights/hack/use.hack +++ b/tests/query/highlights/hack/use.hack @@ -5,9 +5,9 @@ use function Space\Func\F as E; // ^ @function // ^ @function use type Space\Type\T; -// ^ @keyword +// ^ @keyword.type use namespace Space\Name\N as M; -// ^ @keyword +// ^ @keyword.type // ^ @module use namespace Space\Name2\N2, Space\Nothing\N3 as N8, type Space\Type2\N4,; diff --git a/tests/query/highlights/prisma/test.prisma b/tests/query/highlights/prisma/test.prisma index 6a5795699..5517e9eb5 100644 --- a/tests/query/highlights/prisma/test.prisma +++ b/tests/query/highlights/prisma/test.prisma @@ -47,7 +47,7 @@ model Reaction { } enum ReactionType { -// ^ keyword +// ^ keyword.type LIKE HAHA SAD diff --git a/tests/query/highlights/solidity/test.sol b/tests/query/highlights/solidity/test.sol index b53dd857d..52334bd7e 100644 --- a/tests/query/highlights/solidity/test.sol +++ b/tests/query/highlights/solidity/test.sol @@ -12,7 +12,7 @@ import * as something from "anotherFile"; /// @title Voting with delegation. // <- @comment contract Ballot { -// ^keyword +// ^keyword.type // ^ @type // This declares a new complex type which will // be used for variables later. diff --git a/tests/query/highlights/t32/var.cmm b/tests/query/highlights/t32/var.cmm index b8dc463b5..0deed996f 100644 --- a/tests/query/highlights/t32/var.cmm +++ b/tests/query/highlights/t32/var.cmm @@ -44,17 +44,17 @@ Var.Assign padd = (CAddition const * volatile)&d ; ^ @variable Var.Assign e1 = (enum e2)&e ; ^ @variable -; ^ @keyword +; ^ @keyword.type ; ^ @type ; ^ @variable Var.Assign *vector = (struct Vector3d*)&acceleration ; ^ @variable -; ^ @keyword +; ^ @keyword.type ; ^ @type ; ^ @variable Var.Assign z = (union foo)x ; ^ @variable -; ^ @keyword +; ^ @keyword.type ; ^ @type ; ^ @variable Var.Assign b = -a diff --git a/tests/query/highlights/tiger/object-oriented.tig b/tests/query/highlights/tiger/object-oriented.tig index e67029c42..5c48c543e 100644 --- a/tests/query/highlights/tiger/object-oriented.tig +++ b/tests/query/highlights/tiger/object-oriented.tig @@ -1,11 +1,11 @@ let class A extends Object {} - /* <- @keyword */ + /* <- @keyword.type */ /* ^ @keyword */ /* ^ @type.builtin */ type B = class extends A { - /* ^ @keyword */ + /* ^ @keyword.type */ /* ^ @keyword */ /* ^ @type */ diff --git a/tests/query/highlights/wing/class.w b/tests/query/highlights/wing/class.w index 602b2f749..9f76b16e8 100644 --- a/tests/query/highlights/wing/class.w +++ b/tests/query/highlights/wing/class.w @@ -2,7 +2,7 @@ bring cloud; // <- @keyword class Foo { -// <- @keyword +// <- @keyword.type // ^ @type // ^ @punctuation.bracket name: str; |
