[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold 0fe507ba03 111/417: Support sharp blocks
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold 0fe507ba03 111/417: Support sharp blocks |
Date: |
Mon, 1 Jul 2024 10:02:16 -0400 (EDT) |
branch: elpa/treesit-fold
commit 0fe507ba03ceade0fb01b82bc0f743f5d77b3b0a
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: Jen-Chieh Shen <jcs090218@gmail.com>
Support sharp blocks
---
tree-sitter-fold-parsers.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tree-sitter-fold-parsers.el b/tree-sitter-fold-parsers.el
index 56240d664c..4ef34fee1b 100644
--- a/tree-sitter-fold-parsers.el
+++ b/tree-sitter-fold-parsers.el
@@ -131,7 +131,11 @@
(use_list . tree-sitter-fold-range-seq)
(switch_block . tree-sitter-fold-range-seq)
(compound_statement . tree-sitter-fold-range-seq)
- (comment . tree-sitter-fold-c-like-comment)))
+ (comment
+ . (lambda (node offset)
+ (if (string-prefix-p "#" (tsc-node-text node))
+ (tree-sitter-fold-range-line-comment node offset "#")
+ (tree-sitter-fold-c-like-comment node offset))))))
(defun tree-sitter-fold-parsers-python ()
"Rule sets for Python."
- [nongnu] elpa/treesit-fold 66a8b272cc 101/417: Fix docstring extract condition, (continued)
- [nongnu] elpa/treesit-fold 66a8b272cc 101/417: Fix docstring extract condition, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1602759fdd 178/417: Rename util module without util prefix, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b505f0719f 183/417: ci: No more platform specific, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e9d26a8e18 186/417: Update Eask, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 4e59c763c4 187/417: ci: cancel last workflow on push, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 62667ad992 189/417: Update README.md, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d6fbca3748 168/417: Update changelog, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9fdf72dc20 201/417: docs(README): order contribute section, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 4a2996eb5e 109/417: Organize, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 8a5c66d099 110/417: Add support for PHP, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 0fe507ba03 111/417: Support sharp blocks,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 91fdf441bf 366/417: chore: Update copyright year, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold cad8607df0 107/417: Organize parsers, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1e19f7c159 113/417: Fix compile warnings, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9a7b17aec8 208/417: update, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d8d6fc0558 209/417: update, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bada0924b6 149/417: Support ruby, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a137933c2b 153/417: Add screneshot, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d7af314083 160/417: Done html, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e286098005 164/417: Support css comment, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 19a05adc09 167/417: Rename, ELPA Syncer, 2024/07/01