diff options
author | Andrew Wong <wongandj@icloud.com> | 2025-05-27 06:23:27 -0400 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2025-07-29 21:32:23 +0800 |
commit | 0411cfaead078966157a11f6cad322acabe2032f (patch) | |
tree | 6f4ca0c41fba769e885e171e52abe90496af85bc | |
parent | bcccf30ed0aeba072ab2b1b2b97b12880bd4fcbb (diff) |
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>
-rw-r--r-- | gnu/packages/tree-sitter.scm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 88afd50583..608ccfb85e 100644 --- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -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" |