Subject: [PATCH v3] gnu: Add tree-sitter-yaml.

From: Olivier Rojon <[email-masked]>
Date: Wed, 12 Mar 2025 19:10:04 +0000

* gnu/packages/tree-sitter.scm (tree-sitter-yaml): New variable.

Change-Id: I2bc2ad26dba4b4a16cdc738fca867854da225442
---
 gnu/packages/tree-sitter.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 19e32f53f1..da2cdec775 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -814,3 +814,14 @@ (define-public tree-sitter-vhdl
              (("\\(integer_decimal\n") "(integer_decimal)\n")
              (("\\(integer\\)") "")
              (("\"0\")") "\"0\"")))))))
+
+(define-public tree-sitter-yaml
+  (tree-sitter-grammar
+   "yaml" "YAML"
+   "0z5fz9hiafzapi0ijhyz8np6rksq6c1pb16xv1vhnlfh75rg6zyv" "0.7.0"
+   #:grammar-directories '("schema/core" "schema/json")
+   #:get-cleanup-snippet
+   (lambda _
+     #~(begin
+         (use-modules (guix build utils))
+         (delete-file-recursively "bindings")))))
-- 
2.48.1