Skip to content

Commit

Permalink
fix: clojure function
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 3, 2024
1 parent 14e1e92 commit cc11b64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ts-fold-parsers.el
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@
(str_lit . ts-fold-range-seq)
(comment
. (lambda (node offset)
(ts-fold-range-line-comment node offset ";;")))))
(ts-fold-range-line-comment node
(ts-fold--cons-add offset '(0 . -1))
";;")))))

(defun ts-fold-parsers-cmake ()
"Rule set for CMake."
Expand Down
4 changes: 2 additions & 2 deletions ts-fold.el
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ more information."
For arguments NODE and OFFSET, see function `ts-fold-range-seq' for
more information."
(when-let* ((param-node (car (ts-fold-find-children node "vec_lit")))
(next-node (tsc-get-next-sibling param-node))
(when-let* ((name-node (nth 1 (ts-fold-find-children node "sym_lit")))
(next-node (tsc-get-next-sibling name-node))
(beg (tsc-node-start-position next-node))
(end (1- (tsc-node-end-position node))))
(unless ts-fold-on-next-line ; display nicely
Expand Down

0 comments on commit cc11b64

Please sign in to comment.