]> git.eshelyaron.com Git - emacs.git/commitdiff
c-ts-mode: Highlight "property functions" as functions
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 6 Feb 2023 02:05:19 +0000 (04:05 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 6 Feb 2023 02:05:19 +0000 (04:05 +0200)
* 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

index 5093c3980b69e0d1709a8b3df6b999d3a8bf74ff..3740130be307fd0a1948422d102b4e38e21a5a31 100644 (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