mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
Checkdoc fixes in treesit.el
* lisp/treesit.el (treesit-add-font-lock-rules) (treesit--font-lock-mark-ranges-to-fontify): Checkdoc fixes.
This commit is contained in:
parent
c9d28a05d9
commit
9889774c62
@ -1122,7 +1122,7 @@ and leave settings for other languages unchanged."
|
||||
(t current-value))))))
|
||||
|
||||
(defun treesit-add-font-lock-rules (rules &optional how feature)
|
||||
"Add font-lock RULES to the current buffer
|
||||
"Add font-lock RULES to the current buffer.
|
||||
|
||||
RULES should be the return value of `treesit-font-lock-rules'. RULES
|
||||
will be enabled and added to `treesit-font-lock-settings'.
|
||||
@ -1413,7 +1413,8 @@ For RANGES and PARSER see `treesit-parser-add-notifier'.
|
||||
After the parser reparses, we get the changed ranges, and
|
||||
1) update non-primary parsers' ranges in the changed ranges
|
||||
2) mark these ranges as to-be-fontified,
|
||||
3) tell syntax-ppss to start reparsing from the min point of the ranges.
|
||||
3) tell `syntax-ppss' to start reparsing from the min point of the
|
||||
ranges.
|
||||
|
||||
We need to mark to-be-fontified ranges before redisplay starts working,
|
||||
because sometimes the range edited by the user is not the only range
|
||||
|
Loading…
Reference in New Issue
Block a user