From 10dd49958c96f86c8247c715bd20a6681afc1d8b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 24 Dec 2023 12:52:21 +0100 Subject: chore(tests): consistent captures --- tests/query/highlights/cpp/concepts.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/query/highlights/cpp/concepts.cpp') diff --git a/tests/query/highlights/cpp/concepts.cpp b/tests/query/highlights/cpp/concepts.cpp index 27aed7a70..6fe6af436 100644 --- a/tests/query/highlights/cpp/concepts.cpp +++ b/tests/query/highlights/cpp/concepts.cpp @@ -1,14 +1,14 @@ template concept Derived = std::is_base_of::value; -// ^ keyword -// ^ type.definition +// ^ @keyword +// ^ @type.definition template concept Hashable = requires(T a) { -// ^ keyword -// ^ parameter -// ^ type +// ^ @keyword +// ^ @parameter +// ^ @type { std::hash{}(a) } -> std::convertible_to; typename CommonType; // CommonType is valid and names a type { CommonType{std::forward(t)} }; @@ -18,5 +18,5 @@ concept Hashable = requires(T a) { template requires requires (T x) { x + x; } // ad-hoc constraint, note keyword used twice -// ^ keyword +// ^ @keyword T add(T a, T b) { return a + b; } -- cgit v1.2.3-70-g09d2