branch: elpa/treesit-fold
commit 14e3f13f67efe7e0522fecdf2e63733fd0247469
Author: Akira Komamura <[email protected]>
Commit: GitHub <[email protected]>

    feat: Enhance the Gleam support (#9)
---
 treesit-fold-parsers.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/treesit-fold-parsers.el b/treesit-fold-parsers.el
index 9beea1a971..b8c2f2f0dc 100644
--- a/treesit-fold-parsers.el
+++ b/treesit-fold-parsers.el
@@ -266,8 +266,11 @@
 
 (defun treesit-fold-parsers-gleam ()
   "Rules set for Gleam."
-  '((function        . treesit-fold-range-gleam)
-    (type_definition . treesit-fold-range-gleam)
+  '((function           . treesit-fold-range-gleam)
+    (type_definition    . treesit-fold-range-gleam)
+    (anonymous_function . treesit-fold-range-gleam)
+    (block              . treesit-fold-range-gleam)
+    (list               . treesit-fold-range-seq)
     (module_comment
      . (lambda (node offset)
          (treesit-fold-range-line-comment node offset "////")))

Reply via email to