Function: js--treesit-fontify-assignment-lhs
js--treesit-fontify-assignment-lhs is a byte-compiled function defined
in js.el.gz.
Signature
(js--treesit-fontify-assignment-lhs NODE OVERRIDE START END &rest _)
Documentation
Fontify the lhs NODE of an assignment_expression.
For OVERRIDE, START, END, see treesit-font-lock-rules.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--treesit-fontify-assignment-lhs (node override start end &rest _)
"Fontify the lhs NODE of an assignment_expression.
For OVERRIDE, START, END, see `treesit-font-lock-rules'."
(dolist (node (treesit-query-capture
node js--treesit-lhs-identifier-query nil nil t))
(treesit-fontify-with-override
(treesit-node-start node) (treesit-node-end node)
(pcase (treesit-node-type node)
("identifier" 'font-lock-variable-use-face)
("property_identifier" 'font-lock-property-use-face)
("shorthand_property_identifier_pattern" 'font-lock-variable-use-face))
override start end)))