Skip to content

Commit

Permalink
feat(nix): Support multi-line comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Sep 9, 2024
1 parent 55f80a2 commit 05f01ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts-fold-parsers.el
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@
(list_expression . ts-fold-range-seq)
(comment
. (lambda (node offset)
(ts-fold-range-line-comment node offset "#")))))
(if (string-prefix-p "#" (tsc-node-text node))
(ts-fold-range-line-comment node offset "#")
(ts-fold-range-c-like-comment node offset))))))

(defun ts-fold-parsers-ocaml ()
"Rule set for OCaml."
Expand Down

0 comments on commit 05f01ad

Please sign in to comment.