From 974e2181a05b4d797d3070628172146a7b60bb3b Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 29 Jan 2022 12:30:55 +0100 Subject: highlights(cpp): fix function highlighting of Foo::bar::baz() Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396 --- tests/query/highlights/cpp/static-namespace-functions.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/query/highlights/cpp/static-namespace-functions.cpp (limited to 'tests/query/highlights/cpp') diff --git a/tests/query/highlights/cpp/static-namespace-functions.cpp b/tests/query/highlights/cpp/static-namespace-functions.cpp new file mode 100644 index 000000000..1658d5117 --- /dev/null +++ b/tests/query/highlights/cpp/static-namespace-functions.cpp @@ -0,0 +1,12 @@ +// Issue #2396 + +int main() +{ + B::foo(); + // ^ @function + Foo::A::foo(); + // ^ @function + Foo::a::A::foo(); + // ^ @function + return 0; +} -- cgit v1.2.3-70-g09d2