From: Dmitry Gutov Date: Sun, 24 Dec 2023 02:07:15 +0000 (+0200) Subject: treesit-major-mode-setup: Use 'treesit--syntax-propertize-notifier' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9cfa498e0ab4876e38f46b4ee9e26804512fd666;p=emacs.git 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) --- 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.