]> git.eshelyaron.com Git - emacs.git/commitdiff
; Tree-sitter font-lock debugging: print node type not language
authorYuan Fu <casouri@gmail.com>
Tue, 1 Nov 2022 07:26:15 +0000 (00:26 -0700)
committerYuan Fu <casouri@gmail.com>
Tue, 1 Nov 2022 19:54:55 +0000 (12:54 -0700)
* lisp/treesit.el (treesit-font-lock-fontify-region): Print node type.

lisp/treesit.el

index 82eda595b9e9cbbf93958c1225c22d948d725a00..b4f79dc15725c9a7296c504298269d8eb44d22d1 100644 (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