From 9cfa498e0ab4876e38f46b4ee9e26804512fd666 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sun, 24 Dec 2023 04:07:15 +0200 Subject: [PATCH] treesit-major-mode-setup: Use 'treesit--syntax-propertize-notifier' * lisp/treesit.el (treesit-major-mode-setup): Make sure 'treesit--syntax-propertize-notifier' is used (bug#66732) --- lisp/treesit.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/treesit.el b/lisp/treesit.el index 2ef4e382cf3..eed53bc2b99 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -2461,6 +2461,9 @@ before calling this function." parser #'treesit--font-lock-notifier)) (add-hook 'pre-redisplay-functions #'treesit--pre-redisplay 0 t)) ;; Syntax + (dolist (parser (treesit-parser-list)) + (treesit-parser-add-notifier + parser #'treesit--syntax-propertize-notifier)) (add-hook 'syntax-propertize-extend-region-functions #'treesit--pre-syntax-ppss 0 t) ;; Indent. -- 2.39.2