mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
; Add heuristic for treesit--update-ranges-non-local
* lisp/treesit.el (treesit--update-ranges-non-local): Treat language symbols that happens to be a command as just language symbol, not function.
This commit is contained in:
parent
ee021b0ec1
commit
d19c511425
1 changed files with 2 additions and 1 deletions
|
|
@ -1079,7 +1079,8 @@ returns the ranges to use for that node.
|
|||
|
||||
Return updated parsers as a list."
|
||||
(let ((ranges-by-lang
|
||||
(if (functionp embed-lang)
|
||||
;; Filter out functions like `markdown' using `commandp'.
|
||||
(if (and (functionp embed-lang) (not (commandp embed-lang)))
|
||||
(treesit-query-range-by-language
|
||||
host-parser query embed-lang beg end offset range-fn)
|
||||
(list (cons embed-lang
|
||||
|
|
|
|||
Loading…
Reference in a new issue