gnu: Add tree-sitter-typst.

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

Change-Id: I73366ece34af0edc6cbcfc01a50d72e47986e000
Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
Andrew Wong 2025-05-27 06:23:27 -04:00 committed by Hilton Chain
parent 37f8ea1355
commit 0cf6adf890
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -8,6 +8,7 @@
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023, 2024 Raven Hallsby <karl@hallsby.com>
;;; Copyright © 2024 Foundation Devices, Inc. <hello@foundation.xyz>
;;; Copyright © 2025 Andrew Wong <wongandj@icloud.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -666,6 +667,20 @@ which will be used as a snippet in origin."
(define-public tree-sitter-markdown-gfm
(deprecated-package "tree-sitter-markdown-gfm" tree-sitter-markdown))
(define-public tree-sitter-typst
(tree-sitter-grammar
"typst" "Typst"
"198rn8wdcqq51nz6hj1zxk7mplplr2z8vc36z6h1zpjjq925794z"
"0.11.0"
#:repository-url "https://github.com/uben0/tree-sitter-typst"
#:get-cleanup-snippet
(lambda (grammar-directories)
#~(begin
;; These tests are supposed to fail, but they don't fail the way the
;; suite expects anymore.
(delete-file "test/corpus/negative.scm")
#$(tree-sitter-delete-generated-files grammar-directories)))))
(define-public tree-sitter-matlab
(tree-sitter-grammar
"matlab" "Matlab"