[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold 3dd7c477fb 305/417: feat: Add CMake support (
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold 3dd7c477fb 305/417: feat: Add CMake support (#86) |
Date: |
Mon, 1 Jul 2024 10:02:45 -0400 (EDT) |
branch: elpa/treesit-fold
commit 3dd7c477fb08874d1bbbcb2588029e7ebd4b445f
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: GitHub <noreply@github.com>
feat: Add CMake support (#86)
---
CHANGELOG.md | 1 +
README.md | 2 +-
ts-fold-parsers.el | 7 +++++++
ts-fold-summary.el | 1 +
ts-fold.el | 1 +
5 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3c6713d927..dd67c52a1c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for
recommendations on how
* Add Zig support (#82)
* Add Erlang support (#83)
* Add basic Pascal support (#84)
+* Add CMake support (#85)
## 0.2.0
> Released Sep 01, 2023
diff --git a/README.md b/README.md
index 0825875f19..e59085a87f 100644
--- a/README.md
+++ b/README.md
@@ -113,7 +113,7 @@ If evil mode is loaded, then these commands are also added
to the evil folding l
These languages are fairly complete:
- Bash / Beancount
-- C / C++ / C# / Clojure / CSS
+- C / C++ / C# / Clojure / CMake / CSS
- Dart
- Elisp / Elixir / Erlang
- GDScript / Go
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index e666b21bbc..27d0951306 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -124,6 +124,13 @@
. (lambda (node offset)
(ts-fold-range-line-comment node offset ";;")))))
+(defun ts-fold-parsers-cmake ()
+ "Rule set for CMake."
+ '((body . ts-fold-range-seq)
+ (line_comment
+ . (lambda (node offset)
+ (ts-fold-range-line-comment node offset "#")))))
+
(defun ts-fold-parsers-csharp ()
"Rule set for C#."
'((block . ts-fold-range-seq)
diff --git a/ts-fold-summary.el b/ts-fold-summary.el
index 22c2ce84f0..1908eb381b 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."
(beancount-mode . ts-fold-summary-elisp)
(c-mode . ts-fold-summary-c)
(c++-mode . ts-fold-summary-c)
+ (cmake-mode . ts-fold-summary-ruby-doc)
(clojure-mode . ts-fold-summary-elisp)
(csharp-mode . ts-fold-summary-csharp)
(css-mode . ts-fold-summary-javadoc)
diff --git a/ts-fold.el b/ts-fold.el
index 1aebeecad0..bb32536260 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -64,6 +64,7 @@
(c-mode . ,(ts-fold-parsers-c))
(c++-mode . ,(ts-fold-parsers-c++))
(caml-mode . ,(ts-fold-parsers-ocaml))
+ (cmake-mode . ,(ts-fold-parsers-cmake))
(clojure-mode . ,(ts-fold-parsers-clojure))
(csharp-mode . ,(ts-fold-parsers-csharp))
(css-mode . ,(ts-fold-parsers-css))
- [nongnu] elpa/treesit-fold 9cbc292502 394/417: fix: Use handle dependent, (continued)
- [nongnu] elpa/treesit-fold 9cbc292502 394/417: fix: Use handle dependent, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c7a9d62e4c 363/417: feat: Add Ninja support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 2236641e53 397/417: chore: changelog, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold f2650076af 382/417: fix: Clean compile warngins, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 882c4faae8 271/417: fix(parsers): update nix definitions (#37), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bb5bd2e31e 276/417: feat: Add Clojure support (#64), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold dcf6fdcb85 292/417: Bump version for next version, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b52b33357e 300/417: feat: Add Erlang support (#83), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold cd7963038f 318/417: feat: Add Fish support (#96), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 8972eb674e 391/417: feat: Fully support isearch and modification conditions (#1), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 3dd7c477fb 305/417: feat: Add CMake support (#86),
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 250567abd2 345/417: Register qss-mode with CSS, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 648f75ef06 342/417: fix(indicators): Add option for rendering method, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold db35c17409 331/417: lint, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c70ac04ea5 358/417: Fixed linting warnings, untabified, tested locally with eask., ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 4ef65016fd 396/417: fix: Respect same line folding from close all, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold dd36cd388a 360/417: Untabified, reorganized alphabetically: parsers, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 4e9492c2f8 370/417: fix changelog, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 714d645b68 337/417: fix: error Invalid face box quote (:line-width -1 :style 'pressed-button), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c8638d41be 372/417: feat(Zig): Add more Zig folding rules, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c45985d720 330/417: fix: Remove unused function, ELPA Syncer, 2024/07/01