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).
This commit is contained in:
Dmitry Gutov 2023-02-06 04:05:19 +02:00
parent a529b0d646
commit 07ffe902c6

View file

@ -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