From: Dmitry Gutov Date: Mon, 6 Feb 2023 02:05:19 +0000 (+0200) Subject: c-ts-mode: Highlight "property functions" as functions X-Git-Tag: emacs-29.0.90~487 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=07ffe902c63;p=emacs.git 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). --- 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