From 07ffe902c638d58b677820aa26c16db94510eca3 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 6 Feb 2023 04:05:19 +0200 Subject: [PATCH] c-ts-mode: Highlight "property functions" as functions * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Highlight "property functions" as functions (bug#61302). --- lisp/progmodes/c-ts-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 5093c3980b6..3740130be30 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -470,7 +470,9 @@ MODE is either `c' or `cpp'." :language mode :feature 'function '((call_expression - function: (identifier) @font-lock-function-name-face)) + function: + [(identifier) @font-lock-function-name-face + (field_expression field: (field_identifier) @font-lock-function-name-face)])) :language mode :feature 'variable -- 2.39.5