[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold c36f3ad85c 279/417: feat: Add Perl support (#
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold c36f3ad85c 279/417: feat: Add Perl support (#66) |
Date: |
Mon, 1 Jul 2024 10:02:35 -0400 (EDT) |
branch: elpa/treesit-fold
commit c36f3ad85c7345d6ecd72c5d7bff160462ac22e5
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: GitHub <noreply@github.com>
feat: Add Perl support (#66)
---
CHANGELOG.md | 1 +
README.md | 2 +-
ts-fold-parsers.el | 8 ++++++++
ts-fold-summary.el | 1 +
ts-fold.el | 1 +
5 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b6f08fd5fa..70162a3bd1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for
recommendations on how
* Add Elisp support (#63)
* Add Clojure support (#64)
* Add Haskell support (#65)
+* Add Perl support (#66)
## 0.1.0
> Released Oct 18, 2021
diff --git a/README.md b/README.md
index ee3782d975..49a6630c1b 100644
--- a/README.md
+++ b/README.md
@@ -121,7 +121,7 @@ These languages are fairly complete:
- Java / JavaScript / JSX / JSON / Julia
- Lua
- Nix
-- PHP / Python
+- Perl / PHP / Python
- R / Ruby / Rust
- Scala / Swift
- TypeScript / TSX
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index 17916a4708..afb6ce6004 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -245,6 +245,14 @@
(type_definition . ts-fold-range-ocaml-type-definition)
(value_definition . ts-fold-range-ocaml-value-definition)))
+(defun ts-fold-parsers-perl ()
+ "Rule set for Perl."
+ '((block . ts-fold-range-seq)
+ (list_expression . ts-fold-range-seq)
+ (comment
+ . (lambda (node offset)
+ (ts-fold-range-line-comment node offset "#")))))
+
(defun ts-fold-parsers-php ()
"Rule set for PHP."
'((namespace_use_group . ts-fold-range-seq)
diff --git a/ts-fold-summary.el b/ts-fold-summary.el
index b6eff07665..e92b8acc0b 100644
--- a/ts-fold-summary.el
+++ b/ts-fold-summary.el
@@ -226,6 +226,7 @@ type of content by checking the word boundary's existence."
(markdown-mode . ts-fold-summary-markdown)
(objc-mode . ts-fold-summary-c)
(org-mode . ts-fold-summary-org)
+ (perl-mode . ts-fold-summary-ruby-doc)
(php-mode . ts-fold-summary-javadoc)
(python-mode . ts-fold-summary-python-doc)
(rjsx-mode . ts-fold-summary-javadoc)
diff --git a/ts-fold.el b/ts-fold.el
index 87f2b20ec2..0eb0ba7d5a 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -84,6 +84,7 @@
(lua-mode . ,(ts-fold-parsers-lua))
(nix-mode . ,(ts-fold-parsers-nix))
(ocaml-mode . ,(ts-fold-parsers-ocaml))
+ (perl-mode . ,(ts-fold-parsers-perl))
(php-mode . ,(ts-fold-parsers-php))
(python-mode . ,(ts-fold-parsers-python))
(rjsx-mode . ,(ts-fold-parsers-javascript))
- [nongnu] elpa/treesit-fold 5e956f74dc 148/417: Support python comment and document string, (continued)
- [nongnu] elpa/treesit-fold 5e956f74dc 148/417: Support python comment and document string, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 68c7954b3a 155/417: Apply more accurate c-like comment, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b2222f0f7f 159/417: Update list, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 68d16a9bc9 166/417: Rename to ts-fold, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d556beb204 172/417: Merge pull request #4 from rynffoll/feature/add-support-evil-toggle-fold, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 52d36972ef 218/417: chore(list): sort language alphabetically (#12), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ea554f10e7 220/417: Fix a minor typo in ts-fold-parsers.el (#14), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a7c29941c2 225/417: OCaml parser and first functions added (#21), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1d690b8d06 267/417: feat(python): Support assignment string, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 78f0b0437f 278/417: docs(README.md): Mention Noir in TODO, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c36f3ad85c 279/417: feat: Add Perl support (#66),
ELPA Syncer <=
- [nongnu] elpa/treesit-fold be2b3dd211 275/417: feat: Add Elisp support (#63), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 323e252cf5 284/417: feat: Add Kotlin support (#70), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 8f1f182b40 307/417: perf: Speed up count matches (#88), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c4aaf00303 326/417: fix: Render it's own window, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 0d2b177527 381/417: fix: Update rust line comment rule, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold cc31fb573b 399/417: docs: Update line-reminder config, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6bb13a51ce 401/417: docs: Changelog, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ef32910994 379/417: Update package desc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 2d175b74ad 375/417: chore: Expose overlay's priority, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b8ac9a81ca 387/417: fix: Ensure return t, ELPA Syncer, 2024/07/01