diff options
| author | John Drouhard <john@drouhard.dev> | 2023-04-08 13:21:09 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-04-15 07:00:14 -0700 |
| commit | dad0864fa324d1df88242a978e9d7de383c5be68 (patch) | |
| tree | fa88a6b447db5334c5e7cf651ce0e0f539fb7152 /tests/query/highlights/cpp | |
| parent | fix(php_inject): add missing @combined to text (diff) | |
| download | nvim-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.cpp | 16 |
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; +} |
