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

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

[nongnu] elpa/treesit-fold 1995c646fd 103/417: Fix csharp summary


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 1995c646fd 103/417: Fix csharp summary
Date: Mon, 1 Jul 2024 10:02:16 -0400 (EDT)

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

    Fix csharp summary
---
 tree-sitter-fold-summary.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tree-sitter-fold-summary.el b/tree-sitter-fold-summary.el
index e4415b002c..aa548b8f80 100644
--- a/tree-sitter-fold-summary.el
+++ b/tree-sitter-fold-summary.el
@@ -108,9 +108,9 @@ type of content by checking the word boundary's existence."
 
 (defun tree-sitter-fold-summary-csharp (doc-str)
   "Extract summary for C# from DOC-STR."
-  (or (tree-sitter-fold-summary-javadoc doc-str)
-      (tree-sitter-fold-summary-csharp-vsdoc doc-str)
-      (tree-sitter-fold-summary-c-macro doc-str)))
+  (cond ((string-match-p "///" doc-str)
+         (tree-sitter-fold-summary-csharp-vsdoc doc-str))
+        (t (tree-sitter-fold-summary-javadoc doc-str))))
 
 (defun tree-sitter-fold-summary-javadoc (doc-str)
   "Extract javadoc summary from DOC-STR."



reply via email to

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