]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve docstring of c-ts-mode--fontify-variable
authorYuan Fu <casouri@gmail.com>
Tue, 6 Dec 2022 08:17:04 +0000 (00:17 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 6 Dec 2022 21:43:58 +0000 (13:43 -0800)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--fontify-variable): Improve
docstring.

lisp/progmodes/c-ts-mode.el

index 400af2db19e4b71d1d5e8d1e183a6c36a58fa97f..1691a5c31d6b1fdce0e6fd2b1f9f08e8b0b97130 100644 (file)
@@ -372,8 +372,8 @@ For NODE, OVERRIDE, START, END, and ARGS, see
       override start end))))
 
 (defun c-ts-mode--fontify-variable (node override start end &rest _)
-  "Fontify an identifier node.
-Fontify it if NODE is not a function identifier.  For NODE,
+  "Fontify an identifier node if it is a variable.
+Don't fontify if it is a function identifier.  For NODE,
 OVERRIDE, START, END, and ARGS, see `treesit-font-lock-rules'."
   (when (not (equal (treesit-node-type
                      (treesit-node-parent node))