aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/cpp')
-rw-r--r--tests/query/highlights/cpp/concepts.cpp2
-rw-r--r--tests/query/highlights/cpp/enums-as-constants.cpp2
-rw-r--r--tests/query/highlights/cpp/test.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/query/highlights/cpp/concepts.cpp b/tests/query/highlights/cpp/concepts.cpp
index 6fe6af436..09d975c98 100644
--- a/tests/query/highlights/cpp/concepts.cpp
+++ b/tests/query/highlights/cpp/concepts.cpp
@@ -7,7 +7,7 @@ concept Derived = std::is_base_of<U, T>::value;
template<typename T>
concept Hashable = requires(T a) {
// ^ @keyword
-// ^ @parameter
+// ^ @variable.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
diff --git a/tests/query/highlights/cpp/enums-as-constants.cpp b/tests/query/highlights/cpp/enums-as-constants.cpp
index ae773e8d3..d6b93d5ec 100644
--- a/tests/query/highlights/cpp/enums-as-constants.cpp
+++ b/tests/query/highlights/cpp/enums-as-constants.cpp
@@ -11,7 +11,7 @@ void foo(Foo f){
switch ( f ) {
case Foo::a:
// ^ @type
- // ^ @namespace
+ // ^ @module
// ^ @constant
break;
case Foo::aa:
diff --git a/tests/query/highlights/cpp/test.cpp b/tests/query/highlights/cpp/test.cpp
index 3f903a55f..4a4c6238a 100644
--- a/tests/query/highlights/cpp/test.cpp
+++ b/tests/query/highlights/cpp/test.cpp
@@ -1,11 +1,11 @@
#include <iostream>
#include <cstdlib>
-// ^ @include
+// ^ @keyword.import
// ^ @string
auto main( int argc, char** argv ) -> int
// ^ @type.builtin
- // ^ @parameter
+ // ^ @variable.parameter
// ^ @type.builtin
// ^ @type.builtin
// ^ @operator