Function: python--treesit-fontify-variable

python--treesit-fontify-variable is a byte-compiled function defined in python.el.gz.

Signature

(python--treesit-fontify-variable NODE OVERRIDE START END &rest _)

Documentation

Fontify an identifier node if it is a variable.

For NODE, OVERRIDE, START, END, and ARGS, see treesit-font-lock-rules.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python--treesit-fontify-variable (node override start end &rest _)
  "Fontify an identifier node if it is a variable.
For NODE, OVERRIDE, START, END, and ARGS, see
`treesit-font-lock-rules'."
  (when (python--treesit-variable-p node)
    (treesit-fontify-with-override
     (treesit-node-start node) (treesit-node-end node)
     'font-lock-variable-use-face override start end)))