1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; Tree-sitter font-lock debugging: print node type not language

* lisp/treesit.el (treesit-font-lock-fontify-region): Print node type.
This commit is contained in:
Yuan Fu 2022-11-01 00:26:15 -07:00
parent f6e92035a7
commit 6d5b34d9de
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -677,8 +677,8 @@ If LOUDLY is non-nil, display some debugging information."
;; a function. This is to allow intermediate capture
;; names used for #match and #eq.
(when (or loudly treesit--font-lock-verbose)
(message "Fontifying text from %d to %d, Face: %s Language: %s"
start end face language)))))))))
(message "Fontifying text from %d to %d, Face: %s, Node: %s"
start end face (treesit-node-type node))))))))))
`(jit-lock-bounds ,start . ,end))
;;; Indent