From: Yuan Fu Date: Tue, 1 Nov 2022 07:26:15 +0000 (-0700) Subject: ; Tree-sitter font-lock debugging: print node type not language X-Git-Tag: emacs-29.0.90~1737 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d5b34d9de7b2f1b346d9aff123ad20c942166dc;p=emacs.git ; Tree-sitter font-lock debugging: print node type not language * lisp/treesit.el (treesit-font-lock-fontify-region): Print node type. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 82eda595b9e..b4f79dc1572 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -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