Fix treesit-node-top-level (bug#63374)
* lisp/treesit.el (treesit-node-top-level): Fix the use of rx-to-string.
This commit is contained in:
parent
0e4cc6a8bf
commit
b625ccff87
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ and more. See `treesit-thing-settings' for details.
|
|||
|
||||
If INCLUDE-NODE is non-nil, return NODE if it satisfies PRED."
|
||||
(let ((pred (or pred (rx-to-string
|
||||
`(bos ,(treesit-node-type node) eos))))
|
||||
`(seq bos ,(treesit-node-type node) eos))))
|
||||
(result nil))
|
||||
(cl-loop for cursor = (if include-node node
|
||||
(treesit-node-parent node))
|
||||
|
|
Loading…
Add table
Reference in a new issue