From c6b454df339f8b767e23247d48a78749f9e54e1c Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 6 Dec 2022 00:17:04 -0800 Subject: [PATCH] ; Improve docstring of c-ts-mode--fontify-variable * lisp/progmodes/c-ts-mode.el (c-ts-mode--fontify-variable): Improve docstring. --- lisp/progmodes/c-ts-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 400af2db19e..1691a5c31d6 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -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)) -- 2.39.2