@@ -580,3 +580,27 @@ (define-public tree-sitter-python
(description
"This package provides a Python grammar for the Tree-sitter library.")
(license license:expat))))
+
+(define-public tree-sitter-r
+ (let ((commit "80efda55672d1293aa738f956c7ae384ecdc31b4")
+ (revision "1"))
+ (package
+ (name "tree-sitter-r")
+ (version (git-version "0.0.1" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/r-lib/tree-sitter-r")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1n7yxi2wf9xj8snw0b85a5w40vhf7x1pwirnwfk78ilr6hhz4ix9"))
+ (modules '((guix build utils)))
+ (snippet tree-sitter-delete-generated-files)))
+ (build-system tree-sitter-build-system)
+ (home-page "https://github.com/r-lib/tree-sitter-r")
+ (synopsis "Tree-sitter R grammar")
+ (description
+ "This package provides a R grammar for the Tree-sitter library.")
+ (license license:expat))))