[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold c8638d41be 372/417: feat(Zig): Add more Zig f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold c8638d41be 372/417: feat(Zig): Add more Zig folding rules |
Date: |
Mon, 1 Jul 2024 10:03:06 -0400 (EDT) |
branch: elpa/treesit-fold
commit c8638d41be3a04bc1eef71c2bb2cca2cc2a4a540
Author: JenChieh <jcs090218@gmail.com>
Commit: Jen-Chieh Shen <jcs090218@gmail.com>
feat(Zig): Add more Zig folding rules
---
ts-fold-parsers.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index 77c416c6e3..6116829a81 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -660,8 +660,15 @@
(defun ts-fold-parsers-zig ()
"Rule set for Zig."
- '((Block . ts-fold-range-seq)
- (line_comment . ts-fold-range-c-like-comment)))
+ '((ErrorSetDecl . (lambda (node offset)
+ (ts-fold-range-markers node offset "{")))
+ (ContainerDecl . (lambda (node offset)
+ (ts-fold-range-markers node offset "{")))
+ (SwitchExpr . (lambda (node offset)
+ (ts-fold-range-markers node offset "{")))
+ (Block . ts-fold-range-seq)
+ (InitList . ts-fold-range-seq)
+ (line_comment . ts-fold-range-c-like-comment)))
(provide 'ts-fold-parsers)
;;; ts-fold-parsers.el ends here
- [nongnu] elpa/treesit-fold 8972eb674e 391/417: feat: Fully support isearch and modification conditions (#1), (continued)
- [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, 2024/07/01
- [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 <=
- [nongnu] elpa/treesit-fold c45985d720 330/417: fix: Remove unused function, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 45f20588f0 304/417: docs(README.md): Add development languages, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 206d849f72 012/417: add support for nix, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 13941aa169 016/417: Add support for Go structs, interfaces, methods and functions, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 665dd1e46d 017/417: Merge pull request #1 from jakejx/go-support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 2b10944ca4 027/417: Remove old readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a3b5c852ac 044/417: WIP js support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bf8fef92c1 050/417: Update core, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c89ccafa7d 052/417: Simplify, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 5551d9ebd8 086/417: Fix toggle, ELPA Syncer, 2024/07/01