aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorYuan Fu2024-12-07 23:18:53 -0800
committerYuan Fu2024-12-07 23:36:02 -0800
commitb953bcb17047998c9e41cede7c5e5ffec22209b2 (patch)
tree67f674c6c27201029acdcf2e44369c8919742a10 /doc
parent6f6b641975e4828f96913b29b1476c6323c952d8 (diff)
downloademacs-b953bcb17047998c9e41cede7c5e5ffec22209b2.tar.gz
emacs-b953bcb17047998c9e41cede7c5e5ffec22209b2.zip
Allow treesit--font-lock-level-setter to be an alist
* lisp/treesit.el (treesit-font-lock-level): Allow the value to be an alist mapping major modes to font lock levels. (treesit--font-lock-level-setter): Rewrite. (treesit--compute-font-lock-level): New function. (treesit-font-lock-recompute-features): Use new function. * doc/lispref/modes.texi (Parser-based Font Lock): Minor fix.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index ed7cc141cd5..43282c7cd30 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -4415,7 +4415,7 @@ ignored.
4415@defvar treesit-font-lock-feature-list 4415@defvar treesit-font-lock-feature-list
4416This is a list of lists of feature symbols. Each element of the list 4416This is a list of lists of feature symbols. Each element of the list
4417is a list that represents a decoration level. 4417is a list that represents a decoration level.
4418@code{treesit-font-lock-level} controls which levels are 4418@var{treesit-font-lock-level} controls which levels are
4419activated. 4419activated.
4420 4420
4421Each element of the list is a list of the form @w{@code{(@var{feature} 4421Each element of the list is a list of the form @w{@code{(@var{feature}