From 6d5b34d9de7b2f1b346d9aff123ad20c942166dc Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 1 Nov 2022 00:26:15 -0700 Subject: [PATCH] ; Tree-sitter font-lock debugging: print node type not language * lisp/treesit.el (treesit-font-lock-fontify-region): Print node type. --- lisp/treesit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5