emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/treesit-fold 3d40d76ad4 165/417: Fix void mulitline


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 3d40d76ad4 165/417: Fix void mulitline
Date: Mon, 1 Jul 2024 10:02:22 -0400 (EDT)

branch: elpa/treesit-fold
commit 3d40d76ad423b3a0ef979ee2e5be714071f19984
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: Jen-Chieh Shen <jcs090218@gmail.com>

    Fix void mulitline
---
 tree-sitter-fold-parsers.el | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/tree-sitter-fold-parsers.el b/tree-sitter-fold-parsers.el
index aa71f7e0b1..0bcf1a222d 100644
--- a/tree-sitter-fold-parsers.el
+++ b/tree-sitter-fold-parsers.el
@@ -33,8 +33,6 @@
 ;; (@* "Externals" )
 ;;
 
-(declare-function tree-sitter-fold--multi-line "tree-sitter-fold.el")
-
 (declare-function tree-sitter-fold-range-seq "tree-sitter-fold.el")
 (declare-function tree-sitter-fold-range-line-comment "tree-sitter-fold.el")
 (declare-function tree-sitter-fold-range-block-comment "tree-sitter-fold.el")
@@ -199,11 +197,7 @@
   '((import_selectors . tree-sitter-fold-range-seq)
     (template_body    . tree-sitter-fold-range-seq)
     (block            . tree-sitter-fold-range-seq)
-    (comment
-     . (lambda (node offset)
-         (if (tree-sitter-fold--multi-line node)
-             (tree-sitter-fold-range-block-comment node offset)
-           (tree-sitter-fold-range-line-comment node offset "///"))))))
+    (comment          . tree-sitter-fold-range-c-like-comment)))
 
 (defun tree-sitter-fold-parsers-swift ()
   "Rule sets for Swift."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]