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:
Yuan Fu 2023-05-08 12:58:19 -07:00
parent 0e4cc6a8bf
commit b625ccff87
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -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))