Tags: patch Given the following valid C++ code: void Foo::bar() { } c++-ts-mode should fontify bar with the font-lock-function-name-face face. The attached patch adds support for fontifying function declarations whose identifier is "buried" inside qualified_identifier nodes. I've checked that the patch also fontifies bar in void Foo::Bar::bar() { } but fontifies bar with font-lock-variable-name-face face in the following cases: Foo::Bar::Bar2 bar; Foo::Bar bar; I don't check for C++ mode in the code, as I think the impact of this new check should be negligible for C code, but I'm open to feedback. Thanks.