aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp
diff options
context:
space:
mode:
authorJohn Drouhard <john@drouhard.dev>2023-04-08 13:21:09 -0500
committerStephan Seitz <stephan.seitz@fau.de>2023-04-15 07:00:14 -0700
commitdad0864fa324d1df88242a978e9d7de383c5be68 (patch)
treefa88a6b447db5334c5e7cf651ce0e0f539fb7152 /tests/query/highlights/cpp
parentfix(php_inject): add missing @combined to text (diff)
downloadnvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.tar
nvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.tar.gz
nvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.tar.bz2
nvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.tar.lz
nvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.tar.xz
nvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.tar.zst
nvim-treesitter-dad0864fa324d1df88242a978e9d7de383c5be68.zip
feat(cpp): improve function.call to support any level of nesting for qualified identifiers
Diffstat (limited to 'tests/query/highlights/cpp')
-rw-r--r--tests/query/highlights/cpp/static-namespace-functions.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/query/highlights/cpp/static-namespace-functions.cpp b/tests/query/highlights/cpp/static-namespace-functions.cpp
index 2bea488a3..3d16c43cf 100644
--- a/tests/query/highlights/cpp/static-namespace-functions.cpp
+++ b/tests/query/highlights/cpp/static-namespace-functions.cpp
@@ -1,12 +1,14 @@
// Issue #2396
-int main()
-{
- B::foo();
+int main()
+{
+ B::foo();
// ^ @function.call
- Foo::A::foo();
+ Foo::A::foo();
// ^ @function.call
- Foo::a::A::foo();
+ Foo::a::A::foo();
// ^ @function.call
- return 0;
-}
+ Foo::a::A::B::foo();
+ // ^ @function.call
+ return 0;
+}