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)
This commit is contained in:
parent
da2e440462
commit
9cfa498e0a
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue