[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))
- [nongnu] elpa/treesit-fold e015c9a3eb 297/417: feat: Add Jsonnet support (#81), (continued)
- [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, 2024/07/01
- [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 <=
- [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
- [nongnu] elpa/treesit-fold 0fa1378c9b 407/417: Remove dependency in `fringe-helper.el` (#7), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 7c8e1a5467 406/417: fix: In case the AST doesn't get refreshed, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e2d4cb9fac 411/417: docs: Add Gleam to supported list, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold af3a57b656 413/417: docs: Changelog bump, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 75d6f9ed31 253/417: Add extra folding definitions for golang (#42), ELPA Syncer, 2024/07/01