Subject: bug#61655: [Tree sitter] [Feature Request] font-lock function calls, definitions, separately

From: Jacob Faibussowitsch <[email-masked]>
Date: Mon, 20 Feb 2023 10:54:42 -0500

Hello,

Is it possible to have the builtin tree sitter give differentiate font-locking for function calls and function definitions?

The 3rd party tree-sitter package (https://github.com/emacs-tree-sitter/elisp-tree-sitter) has this feature and it is quite nice. In fact it goes further, allowing you to additionally distinguish between builtin calls, macro calls, method calls, etc. (see https://github.com/emacs-tree-sitter/elisp-tree-sitter/blob/master/lisp/tree-sitter-hl.el).

As far as I could see, the builtin mode only provides `font-lock-function-name-face`. I have set treesit-font-lock-level to 4. 

Examples below are for C/C++ mode, but this would apply to any number of languages.

Desired (i.e. what 3rd party package produces):

Current:

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)