[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [WIP PATCH v3 16/26] gnu: Add tree-sitter-php.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [WIP PATCH v3 16/26] gnu: Add tree-sitter-php. |
Date: |
Thu, 10 Feb 2022 22:55:17 +0000 |
* gnu/packages/tree-sitter.scm (tree-sitter-php): New variable.
---
gnu/packages/tree-sitter.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index aeb541224a..072d2bf588 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -424,3 +424,26 @@ (define-public tree-sitter-julia
(description
"This package provides a Julia grammar for the Tree-sitter library.")
(license license:expat)))
+
+(define-public tree-sitter-php
+ (package (inherit tree-sitter-c)
+ (name "tree-sitter-php")
+ (version "0.19.0")
+ (source (tree-sitter-origin
+ name
+ version
+ "17cmybgpprw7w9d2v7lmc6zmr90d70g0jqq279gzg0mpwfzla53s"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments tree-sitter-c)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ ;; The parse-example script tries to clone git repositories.
+ (add-after 'unpack 'remove-parse-example
+ (lambda _
+ (substitute* "package.json"
+ ((" && script\\/parse-examples") ""))))))))
+ (home-page "https://github.com/tree-sitter/tree-sitter-php")
+ (synopsis "Tree-sitter PHP grammar")
+ (description
+ "This package provides a PHP grammar for the Tree-sitter library.")
+ (license license:expat)))
--
2.34.0
- [bug#49946] [WIP PATCH v3 04/26] gnu: Add tree-sitter., (continued)
- [bug#49946] [WIP PATCH v3 04/26] gnu: Add tree-sitter., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 10/26] gnu: Add tree-sitter-go., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 13/26] gnu: Add tree-sitter-javascript., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 11/26] gnu: Add tree-sitter-html., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 03/26] gnu: Add rust-spin@0.7., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 07/26] gnu: Add tree-sitter-cpp., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 12/26] gnu: Add tree-sitter-java., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 09/26] gnu: Add tree-sitter-css., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 08/26] gnu: Add tree-sitter-bash., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 14/26] gnu: Add tree-sitter-json., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 16/26] gnu: Add tree-sitter-php.,
Pierre Langlois <=
- [bug#49946] [WIP PATCH v3 20/26] gnu: Add rust-tree-sitter-for-emacs., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 15/26] gnu: Add tree-sitter-julia., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 22/26] gnu: rust-emacs-macros: Update to 0.17., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 24/26] gnu: Add emacs-tree-sitter-core., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 02/26] gnu: Add rust-html-escape., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 17/26] gnu: Add tree-sitter-python., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 18/26] gnu: Add tree-sitter-rust., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 21/26] gnu: rust-emacs-module: Update to 0.18., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 19/26] gnu: Add tree-sitter-typescript., Pierre Langlois, 2022/02/10
- [bug#49946] [WIP PATCH v3 26/26] gnu: Add emacs-tree-sitter-langs., Pierre Langlois, 2022/02/10