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

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

[nongnu] elpa/treesit-fold 08abd98ba4 272/417: feat: Add Dart support (#


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 08abd98ba4 272/417: feat: Add Dart support (#62)
Date: Mon, 1 Jul 2024 10:02:34 -0400 (EDT)

branch: elpa/treesit-fold
commit 08abd98ba4620a1cc659f44bef2646d4b752e757
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: GitHub <noreply@github.com>

    feat: Add Dart support (#62)
    
    * feat: Add Dart support
    
    * Changelog
---
 CHANGELOG.md       | 1 +
 ts-fold-parsers.el | 8 ++++++++
 ts-fold-summary.el | 1 +
 ts-fold.el         | 1 +
 4 files changed, 11 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8afeb9612c..d11d505db7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for 
recommendations on how
 * Add more folding definitions (#51)
 * Add support for Lua (#52)
 * Add support for Python docstring (#58)
+* Add Dart support (#62)
 
 ## 0.1.0
 > Released Oct 18, 2021
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index 4e38f85ad4..488252395a 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -118,6 +118,14 @@
     (block               . ts-fold-range-seq)
     (comment             . ts-fold-range-c-like-comment)))
 
+(defun ts-fold-parsers-dart ()
+  "Rule set for Dart."
+  '((block                 . ts-fold-range-seq)
+    (arguments             . ts-fold-range-seq)
+    (comment               . ts-fold-range-c-like-comment)
+    (documentation_comment . ts-fold-range-c-like-comment)
+    (list_literal          . ts-fold-range-seq)))  ; array
+
 (defun ts-fold-parsers-elixir ()
   "Rules set for Elixir."
   '((list . ts-fold-range-seq)
diff --git a/ts-fold-summary.el b/ts-fold-summary.el
index fc8c6536c3..75e6217e1d 100644
--- a/ts-fold-summary.el
+++ b/ts-fold-summary.el
@@ -205,6 +205,7 @@ type of content by checking the word boundary's existence."
     (c++-mode          . ts-fold-summary-c)
     (csharp-mode       . ts-fold-summary-csharp)
     (css-mode          . ts-fold-summary-javadoc)
+    (dart-mode         . ts-fold-summary-javadoc)
     (go-mode           . ts-fold-summary-go)
     (html-mode         . ts-fold-summary-xml)
     (java-mode         . ts-fold-summary-javadoc)
diff --git a/ts-fold.el b/ts-fold.el
index c826523cfe..fd32145ca1 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -65,6 +65,7 @@
     (caml-mode       . ,(ts-fold-parsers-ocaml))
     (csharp-mode     . ,(ts-fold-parsers-csharp))
     (css-mode        . ,(ts-fold-parsers-css))
+    (dart-mode       . ,(ts-fold-parsers-dart))
     (elixir-mode     . ,(ts-fold-parsers-elixir))
     (ess-r-mode      . ,(ts-fold-parsers-r))
     (go-mode         . ,(ts-fold-parsers-go))



reply via email to

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