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

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

[nongnu] elpa/treesit-fold a860af5c66 302/417: feat(ts): Include more ru


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold a860af5c66 302/417: feat(ts): Include more rules for TS
Date: Mon, 1 Jul 2024 10:02:42 -0400 (EDT)

branch: elpa/treesit-fold
commit a860af5c66d02878f2135cb4f2b0267f7af7a8a2
Author: JenChieh <jcs090218@gmail.com>
Commit: JenChieh <jcs090218@gmail.com>

    feat(ts): Include more rules for TS
---
 ts-fold-parsers.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index d4984ad578..697432af3d 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -420,7 +420,12 @@
 
 (defun ts-fold-parsers-typescript ()
   "Rule set for TypeScript."
-  (append (ts-fold-parsers-javascript)))
+  (append
+   (ts-fold-parsers-javascript)
+   '((class_body    . ts-fold-range-seq)
+     (enum_body     . ts-fold-range-seq)
+     (named_imports . ts-fold-range-seq)
+     (object_type   . ts-fold-range-seq))))
 
 (defun ts-fold-parsers-verilog ()
   "Rule set for Verilog."



reply via email to

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