From 05f01adfa766e99611eb7719e3475789219d93e2 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Mon, 9 Sep 2024 14:48:57 -0700 Subject: [PATCH] feat(nix): Support multi-line comment --- ts-fold-parsers.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el index 5f9ad01..89aed42 100644 --- a/ts-fold-parsers.el +++ b/ts-fold-parsers.el @@ -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."