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

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

[nongnu] elpa/treesit-fold 57c1bb8e0a 317/417: feat: Add Arduino support


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 57c1bb8e0a 317/417: feat: Add Arduino support (#95)
Date: Mon, 1 Jul 2024 10:02:57 -0400 (EDT)

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

    feat: Add Arduino support (#95)
---
 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 21d5393472..f71b2dff2d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for 
recommendations on how
 * Add `Common Lisp` support (#92)
 * Add `HLSL` support (#93)
 * Add `GLSL` support (#94)
+* Add `Arduino` support (#95)
 
 ## 0.2.0
 > Released Sep 01, 2023
diff --git a/README.md b/README.md
index 83da1d63eb..575e878da9 100644
--- a/README.md
+++ b/README.md
@@ -112,7 +112,7 @@ If evil mode is loaded, then these commands are also added 
to the evil folding l
 
 These languages are fairly complete:
 
-- Assembly
+- Arduino / Assembly
 - Bash / Beancount
 - C / C++ / C# / Clojure / CMake / CSS
 - Dart
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index 193b0b8724..0448b0a7e6 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -90,6 +90,10 @@
   "Rule set for Agda."
   '(()))
 
+(defun ts-fold-parsers-arduino ()
+  "Rule set for Arduino."
+  (append (ts-fold-parsers-c++)))
+
 (defun ts-fold-parsers-asm ()
   "Rule set for Assembly."
   '((label . ts-fold-range-asm-label)
diff --git a/ts-fold-summary.el b/ts-fold-summary.el
index 65752d4655..5d314e3cfe 100644
--- a/ts-fold-summary.el
+++ b/ts-fold-summary.el
@@ -218,6 +218,7 @@ type of content by checking the word boundary's existence."
 ;; TODO(everyone): keep this alist alphabetically sorted
 (defcustom ts-fold-summary-parsers-alist
   `((actionscript-mode      . ts-fold-summary-javadoc)
+    (arduino-mode           . ts-fold-summary-c)
     (fasm-mode              . ts-fold-summary-elisp)
     (masm-mode              . ts-fold-summary-elisp)
     (nasm-mode              . ts-fold-summary-elisp)
diff --git a/ts-fold.el b/ts-fold.el
index 5aeff25933..e75ab1c3e4 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -60,6 +60,7 @@
 ;; alphabetically sorted
 (defcustom ts-fold-range-alist
   `((agda-mode              . ,(ts-fold-parsers-agda))
+    (arduino-mode           . ,(ts-fold-parsers-arduino))
     (fasm-mode              . ,(ts-fold-parsers-asm))
     (masm-mode              . ,(ts-fold-parsers-asm))
     (nasm-mode              . ,(ts-fold-parsers-asm))



reply via email to

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