aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp/concepts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/cpp/concepts.cpp')
-rw-r--r--tests/query/highlights/cpp/concepts.cpp12
1 files changed, 6 insertions, 6 deletions
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 <class T, class U>
concept Derived = std::is_base_of<U, T>::value;
-// ^ keyword
-// ^ type.definition
+// ^ @keyword
+// ^ @type.definition
template<typename T>
concept Hashable = requires(T a) {
-// ^ keyword
-// ^ parameter
-// ^ type
+// ^ @keyword
+// ^ @parameter
+// ^ @type
{ std::hash<T>{}(a) } -> std::convertible_to<std::size_t>;
typename CommonType<T, U>; // CommonType<T, U> is valid and names a type
{ CommonType<T, U>{std::forward<T>(t)} };
@@ -18,5 +18,5 @@ concept Hashable = requires(T a) {
template<typename T>
requires requires (T x) { x + x; } // ad-hoc constraint, note keyword used twice
-// ^ keyword
+// ^ @keyword
T add(T a, T b) { return a + b; }