Function: c-ts-mode--fontify-for-each-tail

c-ts-mode--fontify-for-each-tail is a byte-compiled function defined in c-ts-mode.el.gz.

Signature

(c-ts-mode--fontify-for-each-tail NODE OVERRIDE START END &rest _)

Documentation

Fontify FOR_EACH_* macro variants in Emacs sources.

For NODE, OVERRIDE, START, and END, see treesit-font-lock-rules. The captured NODE is a function_definition node.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/c-ts-mode.el.gz
(defun c-ts-mode--fontify-for-each-tail (node override start end &rest _)
  "Fontify FOR_EACH_* macro variants in Emacs sources.
For NODE, OVERRIDE, START, and END, see
`treesit-font-lock-rules'.  The captured NODE is a
function_definition node."
  (let ((for-each-tail (treesit-node-child-by-field-name node "type"))
        (args (treesit-node-child-by-field-name node "declarator")))
    (treesit-fontify-with-override
     (treesit-node-start for-each-tail) (treesit-node-end for-each-tail)
     'default override start end)
    (treesit-fontify-with-override
     (1+ (treesit-node-start args)) (1- (treesit-node-end args))
     'default override start end)))