Function: python--treesit-fontify-dotted-decorator
python--treesit-fontify-dotted-decorator is a byte-compiled function
defined in python.el.gz.
Signature
(python--treesit-fontify-dotted-decorator NODE OVERRIDE START END &rest _)
Documentation
Fontify dotted decorators.
For example @pytes.mark.skip. Iterate over all nested attribute
nodes and highlight identifier nodes. NODE is the first attribute
node. OVERRIDE is the override flag described in
treesit-font-lock-rules. START and END mark the region to be
fontified.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python--treesit-fontify-dotted-decorator (node override start end &rest _)
"Fontify dotted decorators.
For example @pytes.mark.skip. Iterate over all nested attribute
nodes and highlight identifier nodes. NODE is the first attribute
node. OVERRIDE is the override flag described in
`treesit-font-lock-rules'. START and END mark the region to be
fontified."
(dolist (child (treesit-node-children node t))
(pcase (treesit-node-type child)
("identifier"
(treesit-fontify-with-override
(treesit-node-start child) (treesit-node-end child)
'font-lock-type-face override start end))
("attribute"
(python--treesit-fontify-dotted-decorator child override start end)))))