[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold 1d8d9352a1 369/417: feat: Add Svelte support
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold 1d8d9352a1 369/417: feat: Add Svelte support |
Date: |
Mon, 1 Jul 2024 10:03:05 -0400 (EDT) |
branch: elpa/treesit-fold
commit 1d8d9352a1b04e5082a224d5800b6898b9f18831
Author: JenChieh <jcs090218@gmail.com>
Commit: Jen-Chieh Shen <jcs090218@gmail.com>
feat: Add Svelte support
---
CHANGELOG.md | 1 +
README.md | 2 +-
ts-fold-parsers.el | 4 ++++
ts-fold-summary.el | 1 +
ts-fold.el | 1 +
5 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 43d354d9a3..cf2017a627 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for
recommendations on how
* Add `LLVM MIR` support (#108)
* Add `MATLAB` support (#110)
* Add `Ninja` support (#112)
+* Add `Svelte` support (#113)
## 0.3.0
> Released Nov 29, 2023
diff --git a/README.md b/README.md
index bdf8a35874..5a46bf61d4 100644
--- a/README.md
+++ b/README.md
@@ -129,7 +129,7 @@ These languages are fairly complete:
- OCaml / Org
- Perl / PHP / Python
- R / Ruby / Rust / reStructuredText
-- Scala / Scheme / SQL / Swift
+- Scala / Scheme / SQL / Svelte / Swift
- TOML / TypeScript / TSX
- Verilog / VHDL
- XML
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index 02bce3f512..aab43005b4 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -586,6 +586,10 @@
(list . ts-fold-range-seq)
(marginalia . ts-fold-range-c-like-comment))) ; This is the comment!
+(defun ts-fold-parsers-svelte ()
+ "Rule set for Svelte."
+ (append (ts-fold-parsers-html)))
+
(defun ts-fold-parsers-swift ()
"Rule set for Swift."
'((switch_statement . ts-fold-range-seq)
diff --git a/ts-fold-summary.el b/ts-fold-summary.el
index 7aa45e2d56..515b67cd20 100644
--- a/ts-fold-summary.el
+++ b/ts-fold-summary.el
@@ -295,6 +295,7 @@ type of content by checking the word boundary's existence."
(scheme-mode . ts-fold-summary-elisp)
(sh-mode . ts-fold-summary-javadoc)
(sql-mode . ts-fold-summary-c)
+ (svelte-mode . ts-fold-summary-xml)
(swift-mode . ts-fold-summary-c)
(tablegen-mode . ts-fold-summary-javadoc)
(toml-mode . ts-fold-summary-javadoc)
diff --git a/ts-fold.el b/ts-fold.el
index ab2e8faa2b..cfc3cdd3f4 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -134,6 +134,7 @@
(sh-mode . ,(ts-fold-parsers-bash))
(scala-mode . ,(ts-fold-parsers-scala))
(sql-mode . ,(ts-fold-parsers-sql))
+ (svelte-mode . ,(ts-fold-parsers-svelte))
(swift-mode . ,(ts-fold-parsers-swift))
(tablegen-mode . ,(ts-fold-parsers-tablegen))
(toml-mode . ,(ts-fold-parsers-toml))
- [nongnu] elpa/treesit-fold 58adaef135 328/417: Support k8s-mode, (continued)
- [nongnu] elpa/treesit-fold 58adaef135 328/417: Support k8s-mode, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e82256dd27 393/417: fix: missing treesit prefix, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d705c12059 299/417: feat: Add Zig support (#82), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 7a7bd70185 295/417: feat: Add VHDL support (#79), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 0c13c0e4ed 374/417: ci: Bump Emacs 29.x to 3, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e015c9a3eb 297/417: feat: Add Jsonnet support (#81), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d50f5dd2f8 398/417: feat(parser): Add token_tree to Rust, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6dda55a29a 298/417: doc: Add development languages, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ac1461d364 338/417: feat: Add LLVM support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9f82f1e632 400/417: Support for treesit.el (#3), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1d8d9352a1 369/417: feat: Add Svelte support,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold c0e9bb7f3e 344/417: fix: Improve Julia rules, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9f48ef560c 322/417: fix: render all frames, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 12ae1d0457 356/417: Added section & environment folding to latex-parser, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ee0c0eb252 312/417: fix(make): Folding recipe, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 57c1bb8e0a 317/417: feat: Add Arduino support (#95), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 15811f4465 386/417: fix: on fold hook in recursive open, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9945282f03 349/417: Added a matlab parser for folding., ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a549e4050c 367/417: chore: Test 29.2, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c6014608c7 365/417: fix(parser): Support Assembly's block comment, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6a57bd945d 364/417: fix(cmake): Enhance body folding, ELPA Syncer, 2024/07/01