2022-11-25 01:21:11 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
|
;;; Copyright © 2022 Luis Henrique Gomes Higino <luishenriquegh2701@gmail.com>
|
2022-03-29 20:13:11 +01:00
|
|
|
|
;;; Copyright © 2022, 2023 Pierre Langlois <pierre.langlois@gmx.com>
|
2023-02-09 17:34:05 +04:00
|
|
|
|
;;; Copyright © 2022 muradm <mail@muradm.net>
|
2024-05-06 14:14:03 +02:00
|
|
|
|
;;; Copyright © 2022, 2024 Aleksandr Vityazev <avityazev@posteo.org>
|
2023-02-09 17:34:05 +04:00
|
|
|
|
;;; Copyright © 2023 Andrew Tropin <andrew@trop.in>
|
2024-03-15 20:28:29 +01:00
|
|
|
|
;;; Copyright © 2023, 2024 Nicolas Graves <ngraves@ngraves.fr>
|
2023-06-17 18:05:15 +08:00
|
|
|
|
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
2025-10-01 21:44:33 -05:00
|
|
|
|
;;; Copyright © 2023-2025 Raven Hallsby <karl@hallsby.com>
|
2025-04-12 01:35:34 +08:00
|
|
|
|
;;; Copyright © 2024 Foundation Devices, Inc. <hello@foundation.xyz>
|
2025-05-27 06:23:27 -04:00
|
|
|
|
;;; Copyright © 2025 Andrew Wong <wongandj@icloud.com>
|
2025-12-17 22:41:50 +09:00
|
|
|
|
;;; Copyright © 2025 Nguyễn Gia Phong <cnx@loang.net>
|
2025-09-22 18:17:26 +01:00
|
|
|
|
;;; Copyright © 2025 Evgenii Klimov <eugene.dev@lipklim.org>
|
2025-09-15 20:12:01 -03:00
|
|
|
|
;;; Copyright © 2025 Felipe Silva <git@felipeqq2.rocks>
|
2022-11-25 01:21:11 +00:00
|
|
|
|
;;;
|
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages tree-sitter)
|
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2023-06-06 10:35:08 +02:00
|
|
|
|
#:use-module (gnu packages)
|
2025-09-22 18:17:26 +01:00
|
|
|
|
#:use-module (gnu packages check)
|
2022-03-29 20:13:11 +01:00
|
|
|
|
#:use-module (gnu packages graphviz)
|
2022-11-25 01:21:11 +00:00
|
|
|
|
#:use-module (gnu packages icu4c)
|
2022-03-29 20:13:11 +01:00
|
|
|
|
#:use-module (gnu packages node)
|
2023-05-11 08:33:02 +02:00
|
|
|
|
#:use-module (gnu packages python-build)
|
2022-11-25 01:21:15 +00:00
|
|
|
|
#:use-module (guix build-system cargo)
|
2022-11-25 01:21:11 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2023-06-06 10:35:08 +02:00
|
|
|
|
#:use-module (guix build-system pyproject)
|
2023-02-12 10:14:07 +04:00
|
|
|
|
#:use-module (guix build-system tree-sitter)
|
2025-03-24 23:01:56 +00:00
|
|
|
|
#:use-module (guix download)
|
2022-11-25 01:21:11 +00:00
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
|
|
#:use-module (guix git-download)
|
2025-09-22 18:17:26 +01:00
|
|
|
|
#:use-module (guix i18n)
|
2022-11-25 01:21:11 +00:00
|
|
|
|
#:use-module (guix packages)
|
2025-11-08 18:04:11 +00:00
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
|
#:use-module (ice-9 exceptions))
|
2022-11-25 01:21:11 +00:00
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "tree-sitter")
|
2025-04-12 01:35:34 +08:00
|
|
|
|
(version "0.25.3")
|
2022-11-25 01:21:11 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/tree-sitter/tree-sitter")
|
2025-04-12 01:35:34 +08:00
|
|
|
|
(commit (string-append "v" version))))
|
2022-11-25 01:21:11 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
2025-04-12 01:35:34 +08:00
|
|
|
|
"0cck2wa17figxww7lb508sgwy9sbyqj89vxci07hiscr5sgdx9y5"))
|
2022-11-25 01:21:11 +00:00
|
|
|
|
(modules '((guix build utils)))
|
2023-02-09 12:33:28 +04:00
|
|
|
|
(snippet #~(begin
|
|
|
|
|
|
;; Remove bundled ICU parts
|
|
|
|
|
|
(delete-file-recursively "lib/src/unicode")))))
|
2022-11-25 01:21:11 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(inputs (list icu4c))
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list #:phases
|
2023-02-09 12:33:28 +04:00
|
|
|
|
#~(modify-phases %standard-phases
|
2025-04-12 01:35:34 +08:00
|
|
|
|
(delete 'configure)
|
|
|
|
|
|
;; The library uses -fvisibility=hidden to compile, but this
|
|
|
|
|
|
;; symbol is needed by the Rust bindings.
|
|
|
|
|
|
(add-after 'unpack 'patch-_ts_dup-visibility
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* "lib/src/tree.c"
|
|
|
|
|
|
(("int _ts_dup")
|
|
|
|
|
|
(string-append
|
|
|
|
|
|
"int __attribute__ ((visibility (\"default\"))) "
|
|
|
|
|
|
"_ts_dup"))))))
|
2022-11-25 01:21:11 +00:00
|
|
|
|
#:tests? #f ; there are no tests for the runtime library
|
|
|
|
|
|
#:make-flags
|
2023-02-09 12:33:28 +04:00
|
|
|
|
#~(list (string-append "PREFIX=" #$output)
|
|
|
|
|
|
(string-append "CC=" #$(cc-for-target)))))
|
2022-11-25 01:21:11 +00:00
|
|
|
|
(home-page "https://tree-sitter.github.io/tree-sitter/")
|
|
|
|
|
|
(synopsis "Incremental parsing system for programming tools")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Tree-sitter is a parser generator tool and an incremental parsing
|
2022-03-29 20:13:11 +01:00
|
|
|
|
library. It can build a concrete syntax tree for a source file and
|
|
|
|
|
|
efficiently update the syntax tree as the source file is edited.
|
2022-11-25 01:21:11 +00:00
|
|
|
|
|
|
|
|
|
|
Tree-sitter aims to be:
|
|
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
|
@item General enough to parse any programming language
|
|
|
|
|
|
@item Fast enough to parse on every keystroke in a text editor
|
|
|
|
|
|
@item Robust enough to provide useful results even in the presence of syntax errors
|
|
|
|
|
|
@item Dependency-free so that the runtime library (which is written in pure C)
|
|
|
|
|
|
can be embedded in any application
|
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
2023-02-09 12:33:28 +04:00
|
|
|
|
This package includes the @code{libtree-sitter} runtime library.")
|
2022-11-25 01:21:11 +00:00
|
|
|
|
(license license:expat)))
|
2022-11-25 01:21:15 +00:00
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-cli
|
2022-03-29 20:13:11 +01:00
|
|
|
|
(package
|
|
|
|
|
|
(inherit tree-sitter)
|
2022-11-25 01:21:15 +00:00
|
|
|
|
(name "tree-sitter-cli")
|
2025-04-12 01:35:34 +08:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(inherit (package-source tree-sitter))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
;; Remove the runtime library code and dynamically link to it
|
|
|
|
|
|
;; instead.
|
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
|
(find-files
|
|
|
|
|
|
"lib/src"
|
|
|
|
|
|
(lambda (file stat)
|
|
|
|
|
|
;; These files are required for building the binding.
|
|
|
|
|
|
(not
|
|
|
|
|
|
(or (string-contains file "parser.h")
|
|
|
|
|
|
(string-contains file "stdlib-symbols.txt"))))))
|
|
|
|
|
|
(delete-file "lib/binding_rust/build.rs")
|
|
|
|
|
|
(with-output-to-file "lib/binding_rust/build.rs"
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(format #t "~
|
|
|
|
|
|
use std::{env, fs, path::{Path, PathBuf}};
|
|
|
|
|
|
fn main() {
|
|
|
|
|
|
let out_dir = PathBuf::from(env::var(\"OUT_DIR\").unwrap());
|
|
|
|
|
|
fs::copy(\"src/wasm/stdlib-symbols.txt\",
|
|
|
|
|
|
out_dir.join(\"stdlib-symbols.txt\")).unwrap();
|
|
|
|
|
|
println!(\"cargo:rustc-link-lib=tree-sitter\");
|
|
|
|
|
|
}~%")))))))
|
2022-11-25 01:21:15 +00:00
|
|
|
|
(build-system cargo-build-system)
|
2022-03-29 20:13:11 +01:00
|
|
|
|
(inputs
|
2025-04-12 01:35:34 +08:00
|
|
|
|
(cons* tree-sitter graphviz node-lts (cargo-inputs 'tree-sitter-cli)))
|
2022-11-25 01:21:15 +00:00
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
2022-03-29 20:13:11 +01:00
|
|
|
|
#:cargo-test-flags
|
2024-12-19 10:51:57 +02:00
|
|
|
|
''("--"
|
2022-03-29 20:13:11 +01:00
|
|
|
|
;; Skip tests which rely on downloading grammar fixtures. It is
|
|
|
|
|
|
;; difficult to support such tests given upstream does not encode
|
|
|
|
|
|
;; which version of the grammars are expected.
|
|
|
|
|
|
;; Instead, we do run some tests for each grammar in the tree-sitter
|
|
|
|
|
|
;; build-system, by running `tree-sitter test'. This isn't as
|
|
|
|
|
|
;; complete as running all tests from tree-sitter-cli, but it's a
|
|
|
|
|
|
;; good compromise compared to maintaining two different sets of
|
|
|
|
|
|
;; grammars (Guix packages vs test fixtures).
|
|
|
|
|
|
"--skip=tests::corpus_test"
|
|
|
|
|
|
"--skip=tests::highlight_test"
|
|
|
|
|
|
"--skip=tests::node_test"
|
|
|
|
|
|
"--skip=tests::parser_test"
|
|
|
|
|
|
"--skip=tests::pathological_test"
|
|
|
|
|
|
"--skip=tests::query_test"
|
|
|
|
|
|
"--skip=tests::tags_test"
|
|
|
|
|
|
"--skip=tests::test_highlight_test"
|
|
|
|
|
|
"--skip=tests::test_tags_test"
|
2025-04-12 01:35:34 +08:00
|
|
|
|
"--skip=tests::tree_test"
|
|
|
|
|
|
"--skip=tests::async_context_test"
|
|
|
|
|
|
"--skip=tests::text_provider_test"
|
|
|
|
|
|
"--skip=tests::detect_language"
|
|
|
|
|
|
"--skip=tests::language_test"
|
|
|
|
|
|
"--skip=tests::parser_hang_test")
|
2022-11-25 01:21:15 +00:00
|
|
|
|
;; We're only packaging the CLI program so we do not need to install
|
|
|
|
|
|
;; sources.
|
|
|
|
|
|
#:install-source? #f
|
2025-04-12 01:35:34 +08:00
|
|
|
|
#:cargo-install-paths ''("cli")
|
2022-11-25 01:21:15 +00:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
2025-04-12 01:35:34 +08:00
|
|
|
|
(add-after 'unpack 'patch-references
|
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
|
(substitute* "cli/generate/src/lib.rs"
|
|
|
|
|
|
(("(js_runtime\\.unwrap_or\\(\")node(\"\\))" _ prefix suffix)
|
2022-03-29 20:13:11 +01:00
|
|
|
|
(string-append
|
2025-04-12 01:35:34 +08:00
|
|
|
|
prefix
|
|
|
|
|
|
(search-input-file inputs "bin/node")
|
|
|
|
|
|
suffix)))
|
2022-03-29 20:13:11 +01:00
|
|
|
|
(substitute* "cli/src/util.rs"
|
|
|
|
|
|
(("Command::new\\(\"dot\"\\)")
|
|
|
|
|
|
(string-append
|
2025-04-12 01:35:34 +08:00
|
|
|
|
"Command::new(\""
|
|
|
|
|
|
(search-input-file inputs "bin/dot")
|
|
|
|
|
|
"\")"))))))))
|
2022-11-25 01:21:15 +00:00
|
|
|
|
(description "Tree-sitter is a parser generator tool and an incremental
|
|
|
|
|
|
parsing library. It can build a concrete syntax tree for a source file and
|
|
|
|
|
|
efficiently update the syntax tree as the source file is edited.
|
|
|
|
|
|
|
|
|
|
|
|
Tree-sitter aims to be:
|
|
|
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
|
@item General enough to parse any programming language.
|
|
|
|
|
|
@item Fast enough to parse on every keystroke in a text editor.
|
|
|
|
|
|
@item Robust enough to provide useful results even in the presence of syntax
|
|
|
|
|
|
errors.
|
|
|
|
|
|
@item Dependency-free so that the runtime library (which is written in pure C)
|
|
|
|
|
|
can be embedded in any application.
|
|
|
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
|
|
|
|
This package includes the @command{tree-sitter} command-line tool.")
|
|
|
|
|
|
(license license:expat)))
|
2023-02-09 17:34:05 +04:00
|
|
|
|
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(define (tree-sitter-delete-generated-files grammar-directories)
|
2023-02-12 10:14:07 +04:00
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
2025-11-08 18:04:11 +00:00
|
|
|
|
(define (delete-file-if-exists file)
|
|
|
|
|
|
;; Not every package has all files that we want to delete.
|
|
|
|
|
|
(catch 'system-error
|
|
|
|
|
|
(lambda () (delete-file-recursively file))
|
|
|
|
|
|
(lambda args
|
|
|
|
|
|
(unless (= ENOENT (system-error-errno args))
|
|
|
|
|
|
(apply throw args)))))
|
|
|
|
|
|
(delete-file-if-exists "binding.gyp")
|
|
|
|
|
|
(delete-file-if-exists "bindings")
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(for-each
|
|
|
|
|
|
(lambda (lang)
|
|
|
|
|
|
(with-directory-excursion lang
|
2025-11-08 18:04:11 +00:00
|
|
|
|
(delete-file-if-exists "src/grammar.json")
|
|
|
|
|
|
(delete-file-if-exists "src/node-types.json")
|
|
|
|
|
|
(delete-file-if-exists "src/parser.c")
|
|
|
|
|
|
(delete-file-if-exists "src/tree_sitter")))
|
2023-02-14 13:02:43 +04:00
|
|
|
|
'#$grammar-directories)))
|
2023-02-12 10:14:07 +04:00
|
|
|
|
|
2023-02-09 17:34:05 +04:00
|
|
|
|
(define* (tree-sitter-grammar
|
2023-02-14 13:02:43 +04:00
|
|
|
|
name text hash version
|
2023-02-09 17:34:05 +04:00
|
|
|
|
#:key
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(commit (string-append "v" version))
|
2023-02-09 17:34:05 +04:00
|
|
|
|
(repository-url
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(format #f "https://github.com/tree-sitter/tree-sitter-~a" name))
|
|
|
|
|
|
(grammar-directories '("."))
|
|
|
|
|
|
(article "a")
|
|
|
|
|
|
(inputs '())
|
2023-09-01 09:51:33 +04:00
|
|
|
|
(get-cleanup-snippet tree-sitter-delete-generated-files)
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(license license:expat))
|
|
|
|
|
|
"Returns a package for Tree-sitter grammar. NAME will be used with
|
|
|
|
|
|
tree-sitter- prefix to generate package name and also for generating
|
|
|
|
|
|
REPOSITORY-URL value if it's not specified explicitly, TEXT is a string which
|
2023-09-01 09:51:33 +04:00
|
|
|
|
will be used in description and synopsis. GET-CLEANUP-SNIPPET is a function,
|
2025-02-19 11:11:03 +02:00
|
|
|
|
it receives GRAMMAR-DIRECTORIES as an argument and should return a G-exp,
|
2023-09-01 09:51:33 +04:00
|
|
|
|
which will be used as a snippet in origin."
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(let* ((multiple? (> (length grammar-directories) 1))
|
|
|
|
|
|
(grammar-names (string-append text " grammar" (if multiple? "s" "")))
|
|
|
|
|
|
(synopsis (string-append "Tree-sitter " grammar-names))
|
|
|
|
|
|
(description
|
|
|
|
|
|
(string-append "This package provides "
|
|
|
|
|
|
(if multiple? "" article) (if multiple? "" " ")
|
|
|
|
|
|
grammar-names " for the Tree-sitter library."))
|
|
|
|
|
|
(name (string-append "tree-sitter-" name)))
|
2023-02-09 17:34:05 +04:00
|
|
|
|
(package
|
|
|
|
|
|
(name name)
|
|
|
|
|
|
(version version)
|
|
|
|
|
|
(home-page repository-url)
|
|
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url repository-url)
|
|
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
2023-02-12 10:14:07 +04:00
|
|
|
|
(sha256 (base32 hash))
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(snippet
|
2023-09-01 09:51:33 +04:00
|
|
|
|
(get-cleanup-snippet grammar-directories))))
|
2023-02-12 10:14:07 +04:00
|
|
|
|
(build-system tree-sitter-build-system)
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(arguments (list #:grammar-directories grammar-directories))
|
2025-10-14 10:36:38 +02:00
|
|
|
|
(inputs (if (promise? inputs)
|
|
|
|
|
|
(force inputs)
|
|
|
|
|
|
inputs))
|
2023-02-09 17:34:05 +04:00
|
|
|
|
(synopsis synopsis)
|
2023-02-14 13:02:43 +04:00
|
|
|
|
(description description)
|
|
|
|
|
|
(license license))))
|
2023-02-09 17:34:05 +04:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
;;; Language grammars (sort alphabetically)
|
2023-02-14 13:19:15 +04:00
|
|
|
|
|
2025-11-07 14:34:54 +00:00
|
|
|
|
(define-public tree-sitter-actionscript
|
|
|
|
|
|
(let ((commit "24919034fc78fdf9bedaac6616b6a60af20ab9b5")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"actionscript" "ActionScript"
|
|
|
|
|
|
"0gdkb7hi6nc6d3rza247c66nzi04m471b6fv32adxqjw76w5bg1d"
|
|
|
|
|
|
(git-version "0.1.0" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/Rileran/tree-sitter-actionscript"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(substitute* "grammar.js"
|
|
|
|
|
|
(("u\\{\\[0-9a-fA-F\\]\\+\\}")
|
|
|
|
|
|
"u\\{[0-9a-fA-F]+\\}"))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-01 21:53:22 -05:00
|
|
|
|
(define-public tree-sitter-ada
|
|
|
|
|
|
(let ((version "0.1.0") ; In package.json, but untagged.
|
|
|
|
|
|
(commit "b23672d313b4c994ab96fd54f1b7ff15eac68a55")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ada" "Ada"
|
|
|
|
|
|
"0ly6zd2hbng5gbs14yq6riqw2mbzvh0shc7lp2smzbv9ran6chjy"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/briot/tree-sitter-ada"
|
|
|
|
|
|
#:commit commit)))
|
|
|
|
|
|
|
2025-11-07 14:37:51 +00:00
|
|
|
|
(define-public tree-sitter-agda
|
|
|
|
|
|
;; Use a later commit because some tests fail with the v1.3.1 tag.
|
|
|
|
|
|
(let ((commit "e8d47a6987effe34d5595baf321d82d3519a8527")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"agda" "Agda"
|
|
|
|
|
|
"1x06a1c7k5lyw4803h514yibmzizszg8dc6r4wj9gjnr1vw7l7p6"
|
|
|
|
|
|
(git-version "1.3.1" revision commit)
|
|
|
|
|
|
#:commit commit)))
|
|
|
|
|
|
|
2025-10-14 12:43:52 +01:00
|
|
|
|
(define-public tree-sitter-arduino
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"arduino" "Arduino"
|
|
|
|
|
|
"1h0h61xhs511l6ahv0isj9v59ndz8q3948dw9mi9lc7cp24jshdp"
|
|
|
|
|
|
"0.24.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-arduino"
|
|
|
|
|
|
#:inputs (delay (list tree-sitter-c tree-sitter-cpp))
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2025-11-07 14:41:02 +00:00
|
|
|
|
(define-public tree-sitter-asm
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"asm" "ASM"
|
|
|
|
|
|
"0i5wxrwavhxqj04g6ix76q8vsggl9sq8jazasl9k53mag3rnchi5"
|
|
|
|
|
|
"0.24.0"
|
|
|
|
|
|
#:repository-url "https://github.com/RubixDev/tree-sitter-asm"))
|
|
|
|
|
|
|
2025-11-07 14:42:43 +00:00
|
|
|
|
(define-public tree-sitter-astro
|
|
|
|
|
|
(let ((commit "213f6e6973d9b456c6e50e86f19f66877e7ef0ee")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"astro" "Astro"
|
|
|
|
|
|
"18asz2dsgkq4zj5frxigpzac00pgs4kvbp8l3x27z7yq6vgfr5af"
|
|
|
|
|
|
(git-version "0.0.1" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/virchau13/tree-sitter-astro"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:inputs (delay (list tree-sitter-html))
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(mkdir-p "test/corpus")
|
|
|
|
|
|
(copy-recursively "corpus" "test/corpus")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-awk
|
2025-04-12 01:47:43 +08:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"awk" "AWK"
|
|
|
|
|
|
"1bglimp46cggq9kx92h943wnq2r6ymp7anwynjnl42wrdssc0drh"
|
|
|
|
|
|
"0.7.2"
|
|
|
|
|
|
#:repository-url "https://github.com/Beaglefoot/tree-sitter-awk"))
|
2023-02-14 13:19:55 +04:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-bash
|
2023-02-14 13:19:55 +04:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"bash" "Bash"
|
|
|
|
|
|
"1smlcfkxxknhya1b1h72zj3ccg35szbg9mii2xwh7iq9acnlzpgc"
|
|
|
|
|
|
"0.23.3"))
|
2023-02-14 13:20:12 +04:00
|
|
|
|
|
2025-11-07 14:44:35 +00:00
|
|
|
|
(define-public tree-sitter-beancount
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"beancount" "Beancount"
|
|
|
|
|
|
"0r2ql0n4wkwbcdjpklxhsk91xm8q8dl9n9rdlqk585xagmxf1w4b"
|
|
|
|
|
|
"2.4.1"
|
|
|
|
|
|
#:repository-url "https://github.com/polarmutex/tree-sitter-beancount"))
|
|
|
|
|
|
|
2023-06-05 14:03:05 +02:00
|
|
|
|
(define-public tree-sitter-bibtex
|
|
|
|
|
|
(let ((commit "ccfd77db0ed799b6c22c214fe9d2937f47bc8b34")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"bibtex" "Bibtex"
|
|
|
|
|
|
"0m7f3dkqbmy8x1bhl11m8f4p6n76wfvh99rp46zrqv39355nw1y2"
|
|
|
|
|
|
(git-version "0.1.0" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/latex-lsp/tree-sitter-bibtex"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:license license:expat)))
|
|
|
|
|
|
|
2025-10-14 12:45:32 +01:00
|
|
|
|
(define-public tree-sitter-bicep
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"bicep" "Bicep"
|
|
|
|
|
|
"0ydz1vf6n8ky0vcgcmihr6ddfdlswnz8xa59zjiwdcra0qkf3azs"
|
|
|
|
|
|
"1.1.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-bicep"))
|
|
|
|
|
|
|
2025-11-08 21:13:34 +00:00
|
|
|
|
(define-public tree-sitter-bitbake
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"bitbake" "BitBake"
|
|
|
|
|
|
"1pfma482nyc88x56v6l6rmhdy44qbwibrqri38wkkh66a1fka8ix"
|
|
|
|
|
|
"1.1.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-bitbake"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Invalid node type INHERIT.
|
|
|
|
|
|
(substitute* "queries/highlights.scm"
|
|
|
|
|
|
(("^.*\"INHERIT\".*") ""))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-blueprint
|
|
|
|
|
|
(let ((commit "329699d55f3e3955091e13756563c3f320a561fc")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"blueprint" "Blueprint"
|
|
|
|
|
|
"0pdjka1sdw9dwilw3vjl3k3cn7pcyv7m57cmxqibashg316dygxm"
|
|
|
|
|
|
(git-version "0.0.0" revision commit) ; Upstream has not tagged any releases
|
|
|
|
|
|
#:repository-url "https://github.com/huanie/tree-sitter-blueprint"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:license license:expat)))
|
2023-02-14 13:28:49 +04:00
|
|
|
|
|
2023-02-14 13:20:12 +04:00
|
|
|
|
(define-public tree-sitter-c
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"c" "C"
|
2025-04-12 01:57:59 +08:00
|
|
|
|
"1vw7jd3wrb4vnigfllfmqxa8fwcpvgp1invswizz0grxv249piza"
|
|
|
|
|
|
"0.23.5"))
|
2023-02-14 13:20:25 +04:00
|
|
|
|
|
2025-11-07 14:45:23 +00:00
|
|
|
|
(define-public tree-sitter-cairo
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"cairo" "Cairo"
|
|
|
|
|
|
"08ig80mqs0p00p09rfygrdfarqnn29xsgnlbqvnfdll4jlj5ilid"
|
|
|
|
|
|
"1.0.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-cairo"))
|
|
|
|
|
|
|
2025-11-07 14:46:17 +00:00
|
|
|
|
(define-public tree-sitter-capnp
|
|
|
|
|
|
(let ((commit "7b0883c03e5edd34ef7bcf703194204299d7099f")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"capnp" "Cap'n Proto"
|
|
|
|
|
|
"0ww98b15n9hr6afbnl0ckxs4q8y0c31cnga2pnjx369iwfwdkajq"
|
|
|
|
|
|
(git-version "1.5.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-capnp")))
|
|
|
|
|
|
|
2025-10-14 12:47:07 +01:00
|
|
|
|
(define-public tree-sitter-chatito
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"chatito" "Chatito"
|
|
|
|
|
|
"16pfm7s9zxdskmn1vg5ba6ni91zm5xncbri9pm0cd8pmld5w37wz"
|
|
|
|
|
|
"0.5.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-chatito"))
|
|
|
|
|
|
|
2025-10-14 12:48:39 +01:00
|
|
|
|
(define-public tree-sitter-clarity
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"clarity" "Clarity"
|
|
|
|
|
|
"14qprf98199rnlr6hrjmzvn6d3ch9z8yxgjxva6m6gk9hcyyfy84"
|
|
|
|
|
|
"0.0.5"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/xlittlerag/tree-sitter-clarity"))
|
|
|
|
|
|
|
2025-11-07 14:52:05 +00:00
|
|
|
|
(define-public tree-sitter-clisp
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"clisp" "Common Lisp"
|
|
|
|
|
|
"0xg3ay8l62h7s35abkxi4gjfvndzdvvrpgh1z980q1ib5935sxf0"
|
|
|
|
|
|
"0.4.1"
|
|
|
|
|
|
#:inputs (delay (list tree-sitter-clojure))
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-commonlisp"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-clojure
|
2023-10-19 23:44:36 +08:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"clojure" "Clojure"
|
|
|
|
|
|
"1j41ba48sid6blnfzn6s9vsl829qxd86lr6yyrnl95m42x8q5cx4"
|
|
|
|
|
|
"0.0.13"
|
2025-11-08 18:05:53 +00:00
|
|
|
|
#:repository-url "https://github.com/sogaiu/tree-sitter-clojure"))
|
2023-02-14 13:30:13 +04:00
|
|
|
|
|
2023-07-03 14:49:33 +08:00
|
|
|
|
(define-public tree-sitter-cmake
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"cmake" "CMake"
|
2025-04-12 01:58:33 +08:00
|
|
|
|
"0b30ci696iabk3hm03rm4c3qi72d7xsbipc6g0ixxxj2qihdl2fy"
|
|
|
|
|
|
"0.7.0"
|
2023-07-03 14:49:33 +08:00
|
|
|
|
#:repository-url "https://github.com/uyha/tree-sitter-cmake"))
|
|
|
|
|
|
|
2025-10-14 12:49:54 +01:00
|
|
|
|
(define-public tree-sitter-comment
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"comment" "comment tags (like TODO, FIXME)"
|
|
|
|
|
|
"1x0l8phr4x07n739z0ax8faxq0l6irmpkdprrv1z088zqdr43l1v"
|
|
|
|
|
|
"0.3.0"
|
|
|
|
|
|
#:repository-url "https://github.com/stsewd/tree-sitter-comment"))
|
|
|
|
|
|
|
2025-11-07 14:53:45 +00:00
|
|
|
|
(define-public tree-sitter-cpon
|
|
|
|
|
|
(let ((commit "594289eadfec719198e560f9d7fd243c4db678d5")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"cpon" "ChainPack Object Notation (CPON)"
|
|
|
|
|
|
"0kzs3i62vrckwadp2z2gdfzj3mjparh1di0zcawy94635brvvgrn"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-cpon"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-cpp
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"cpp" "C++"
|
|
|
|
|
|
"0sbvvfa718qrjmfr53p8x3q2c19i4vhw0n20106c8mrvpsxm7zml"
|
|
|
|
|
|
"0.23.4"
|
|
|
|
|
|
#:inputs (list tree-sitter-c)))
|
|
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-c-sharp
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"c-sharp" "C#"
|
|
|
|
|
|
"0w6xdb8m38brhin0bmqsdqggdl95xqs3lbwq7azm5gg94agz9qf1"
|
|
|
|
|
|
"0.23.1"))
|
|
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-css
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"css" "CSS"
|
|
|
|
|
|
"0c5j9zyjcykmraix1agbc0gdk85zs2v379q0aykr10fi9w2r9z9c"
|
|
|
|
|
|
"0.23.2"))
|
|
|
|
|
|
|
2025-11-07 14:57:45 +00:00
|
|
|
|
(define-public tree-sitter-csv
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"csv" "CSV"
|
|
|
|
|
|
"0a1giyifli78chnshzzw4q6y7gqlfkg6mlmvb7kzbw9ss9hlx2rb"
|
|
|
|
|
|
"1.2.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-csv"
|
|
|
|
|
|
#:grammar-directories '("csv" "psv" "tsv")))
|
|
|
|
|
|
|
2025-11-07 14:59:05 +00:00
|
|
|
|
(define-public tree-sitter-cuda
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"cuda" "Cuda"
|
|
|
|
|
|
"116fa26bjh6a88kdshqq5hp6fq4ik95dpaiidw8rn90xxwwl0zxi"
|
|
|
|
|
|
"0.21.1"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-cuda"
|
|
|
|
|
|
#:inputs (list tree-sitter-c
|
|
|
|
|
|
tree-sitter-cpp)))
|
|
|
|
|
|
|
2025-11-08 14:55:18 +00:00
|
|
|
|
(define-public tree-sitter-d
|
|
|
|
|
|
(let ((commit "45e5f1e9d6de2c68591bc8e5ec662cf18e950b4a")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"d" "D"
|
|
|
|
|
|
"1y0kczf4yvk5qbvl5dcc8vf5xjjf2md44v0h3iv8lcmbjn093pmb"
|
|
|
|
|
|
(git-version "0.8.2" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/gdamore/tree-sitter-d"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-14 12:50:51 +01:00
|
|
|
|
(define-public tree-sitter-dart
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "d4d8f3e337d8be23be27ffc35a0aef972343cd54")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"dart" "Dart"
|
|
|
|
|
|
"09k4nclfvclwcz6lza4p2rkm25dpdasj800dn47hvm1b5al5iyym"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/UserNobody14/tree-sitter-dart")))
|
|
|
|
|
|
|
2024-05-06 14:14:03 +02:00
|
|
|
|
(define-public tree-sitter-devicetree
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"devicetree" "Devicetree"
|
2025-04-12 01:58:51 +08:00
|
|
|
|
"13rm15p9mrdklys0d720xy386pnvirxxjswg0wi1m87hs8i49qns"
|
|
|
|
|
|
"0.11.1"
|
2024-05-06 14:14:03 +02:00
|
|
|
|
#:repository-url "https://github.com/joelspadin/tree-sitter-devicetree"
|
2025-04-12 01:58:51 +08:00
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(for-each delete-file '("parser.exp" "parser.lib"))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))
|
2024-05-06 14:14:03 +02:00
|
|
|
|
#:license license:expat))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-dockerfile
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"dockerfile" "Dockerfile"
|
|
|
|
|
|
"09iw9mqlpgsi6ak4mxrv16anvmbyap6vf61r2pi2lqdp9h1mp7g0"
|
|
|
|
|
|
"0.2.0"
|
|
|
|
|
|
#:repository-url "https://github.com/camdencheek/tree-sitter-dockerfile"))
|
|
|
|
|
|
|
2024-05-27 16:14:31 -05:00
|
|
|
|
(define-public tree-sitter-dot
|
|
|
|
|
|
;; 0.1.6 is taken from Cargo.toml. The package.json has 0.1.5.
|
|
|
|
|
|
(let ((version "0.1.6")
|
|
|
|
|
|
(commit "9ab85550c896d8b294d9b9ca1e30698736f08cea")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"dot" "Dot"
|
|
|
|
|
|
"013brrljrhgpnks1r0cdvj93l303kb68prm18gpl96pvhjfci063"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/rydesun/tree-sitter-dot"
|
|
|
|
|
|
#:commit commit)))
|
|
|
|
|
|
|
2025-10-14 12:52:04 +01:00
|
|
|
|
(define-public tree-sitter-doxygen
|
|
|
|
|
|
(let ((version "1.1.0")
|
|
|
|
|
|
(commit "1e28054cb5be80d5febac082706225e42eff14e6")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"doxygen" "Doxygen"
|
|
|
|
|
|
"11xflk40xp7x7f4h9knhy997k79psrw3ik9m0xkc2vzqi57l9by2"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-doxygen")))
|
|
|
|
|
|
|
2025-11-08 15:05:30 +00:00
|
|
|
|
(define-public tree-sitter-elisp
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"elisp" "Emacs Lisp"
|
|
|
|
|
|
"0xymhprxa7kamc9cvlprg8s2rm61qcvbfazggny9kw45yj8rqvak"
|
|
|
|
|
|
"1.5.0"
|
|
|
|
|
|
#:commit "1.5.0"
|
|
|
|
|
|
#:repository-url "https://github.com/Wilfred/tree-sitter-elisp"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
|
|
|
|
|
|
2023-02-14 13:30:13 +04:00
|
|
|
|
(define-public tree-sitter-elixir
|
2025-04-12 02:11:24 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"elixir" "Elixir"
|
|
|
|
|
|
"12i0z8afdzcznn5dzrssr7b7jx4h7wss4xvbh3nz12j6makc7kzl"
|
|
|
|
|
|
"0.3.4"
|
|
|
|
|
|
#:article "an"
|
|
|
|
|
|
#:repository-url "https://github.com/elixir-lang/tree-sitter-elixir"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
;; FIXME: Failure - row: 18, column: 4, expected highlight
|
|
|
|
|
|
;; 'comment.doc', actual highlights: none.
|
|
|
|
|
|
(delete-file "test/highlight/module.ex")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))
|
|
|
|
|
|
#:license (list license:asl2.0 license:expat)))
|
2023-02-14 14:59:30 +04:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-elm
|
|
|
|
|
|
(let ((commit "3b373a3ccb48f31aa4b7ddc9092e2f5e24ab7aed")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"elm" "Elm"
|
|
|
|
|
|
"1cfkqi1vgxg7bkdda1vy9wqz6ap61fwjcdv9qzkcfzxaqr5z8dbw"
|
|
|
|
|
|
(git-version "5.7.0" revision commit)
|
|
|
|
|
|
#:article "an"
|
|
|
|
|
|
#:repository-url "https://github.com/elm-tooling/tree-sitter-elm"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(for-each
|
|
|
|
|
|
delete-file
|
|
|
|
|
|
'("docs/js/tree-sitter-elm.wasm" "docs/js/tree-sitter.wasm"))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-04-12 14:12:15 +08:00
|
|
|
|
(define-public tree-sitter-embedded-template
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"embedded-template" "embedded template (like ERB and EJS)"
|
|
|
|
|
|
"1vq9dywd9vcy59f6i5mk5n7vwk67g8j5x77czg7avpznskgfhqhb"
|
|
|
|
|
|
"0.23.2"
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2024-05-10 11:26:48 -05:00
|
|
|
|
(define-public tree-sitter-erlang
|
2025-04-12 02:26:54 +08:00
|
|
|
|
(let ((commit "364e323b32d098ad0e7b29e7adb4005c2bb5cf34")
|
2024-05-10 11:26:48 -05:00
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"erlang" "Erlang"
|
2025-04-12 02:26:54 +08:00
|
|
|
|
"17dkvygqrx4v3y568jg72q6rdli5bp55l3zfqxvq6b5ibw48kilq"
|
|
|
|
|
|
(git-version "0.14.0" revision commit)
|
2024-05-10 11:26:48 -05:00
|
|
|
|
#:repository-url "https://github.com/WhatsApp/tree-sitter-erlang"
|
2025-04-12 02:26:54 +08:00
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
2024-05-10 11:26:48 -05:00
|
|
|
|
|
2025-10-14 12:53:03 +01:00
|
|
|
|
(define-public tree-sitter-firrtl
|
|
|
|
|
|
(let ((version "0.8.0")
|
|
|
|
|
|
(commit "8503d3a0fe0f9e427863cb0055699ff2d29ae5f5")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"firrtl" "FIRRTL"
|
|
|
|
|
|
"0mmnsks3b21b1dixi85jds31ykgrmzl3hkkc1r7c8k4vdrr0qq93"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-firrtl"
|
|
|
|
|
|
#:license license:asl2.0)))
|
|
|
|
|
|
|
2025-11-08 15:07:09 +00:00
|
|
|
|
(define-public tree-sitter-fish
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"fish" "Fish"
|
|
|
|
|
|
"1l8qmmligfcpf4amqghdv9c4nvs5wbhiifhl7016l7793rfzl235"
|
|
|
|
|
|
"3.6.0"
|
|
|
|
|
|
#:commit "3.6.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/ram02z/tree-sitter-fish"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))
|
|
|
|
|
|
#:license license:unlicense))
|
|
|
|
|
|
|
2025-10-14 12:53:44 +01:00
|
|
|
|
(define-public tree-sitter-fortran
|
|
|
|
|
|
(let ((version "0.5.1")
|
|
|
|
|
|
;; Can't use the tag above directly; the build at that tag is
|
|
|
|
|
|
;; non‑deterministic, so pin to a later commit.
|
|
|
|
|
|
(commit "8334abca785db3a041292e3b3b818a82a55b238f")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"fortran" "Fortran"
|
|
|
|
|
|
"0iwjz7ks0barg6na966jbkvzi8whgys8qh6arxlaygr9b6mhq39i"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/stadelmanma/tree-sitter-fortran"
|
|
|
|
|
|
#:commit commit)))
|
|
|
|
|
|
|
2025-11-08 15:08:37 +00:00
|
|
|
|
(define-public tree-sitter-f-sharp
|
|
|
|
|
|
(let ((commit "5141851c278a99958469eb1736c7afc4ec738e47")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"f-sharp" "F#"
|
|
|
|
|
|
"1mk3adn7q6zwrdxpzkvzmvpsqg5a6ijb50qhw5pd46p3scxmp6kh"
|
|
|
|
|
|
(git-version "0.1.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/ionide/tree-sitter-fsharp"
|
|
|
|
|
|
#:grammar-directories '("fsharp" "fsharp_signature"))))
|
|
|
|
|
|
|
2025-10-14 12:54:13 +01:00
|
|
|
|
(define-public tree-sitter-func
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "c1d2cc41b39760127a8cd5d4f4923e27114c373b")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"func" "FunC"
|
|
|
|
|
|
"066g8jn2snmcxwm74wqyxxz2nz2vsjlwhdc455l389czddnncf2j"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-func")))
|
|
|
|
|
|
|
2025-10-14 12:55:09 +01:00
|
|
|
|
(define-public tree-sitter-gdscript
|
|
|
|
|
|
(let ((version "6.0.0")
|
|
|
|
|
|
;; Can't use the tag above directly; the build at that tag is
|
|
|
|
|
|
;; non‑deterministic, so pin to a later commit.
|
|
|
|
|
|
(commit "839cd921c8aa8b79c9afe2eb71a6a7bfa809e995")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gdscript" "GDScript"
|
|
|
|
|
|
"00icy0dpdmhz2lfa35npvj26y0m37f0l73asxn7f2prmpm2jsm8c"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/PrestonKnopp/tree-sitter-gdscript"
|
|
|
|
|
|
#:commit commit)))
|
|
|
|
|
|
|
2025-11-08 15:09:32 +00:00
|
|
|
|
(define-public tree-sitter-gitattributes
|
|
|
|
|
|
(let ((commit "1b7af09d45b579f9f288453b95ad555f1f431645")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gitattributes" "Git .gitattributes"
|
|
|
|
|
|
"1mmcxw3aqx7skgihl8mman5spjz4cmc0k06jca7fjng904kdqw3q"
|
|
|
|
|
|
(git-version "0.1.6" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-gitattributes")))
|
|
|
|
|
|
|
2025-11-08 15:10:09 +00:00
|
|
|
|
(define-public tree-sitter-gitcommit
|
|
|
|
|
|
(let ((commit "a716678c0f00645fed1e6f1d0eb221481dbd6f6d")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gitcommit" "Git commit"
|
|
|
|
|
|
"0syrmx6icp5n2iyawzwmz7nvpzi5iabrvn138vs7dlv9vyrxr1r9"
|
|
|
|
|
|
(git-version "0.3.3" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/gbprod/tree-sitter-gitcommit"
|
|
|
|
|
|
#:license license:wtfpl2)))
|
|
|
|
|
|
|
2025-10-14 12:57:03 +01:00
|
|
|
|
(define-public tree-sitter-gitignore
|
|
|
|
|
|
(let ((version "0.1.0")
|
|
|
|
|
|
(commit "f4685bf11ac466dd278449bcfe5fd014e94aa504")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gitignore" "Git .gitignore"
|
|
|
|
|
|
"17rar33y4dngmx69kjiw6wgrsd6kc0c8w4xa4rx06rjmv7b1hfij"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/shunsambongi/tree-sitter-gitignore")))
|
|
|
|
|
|
|
2025-10-14 12:58:11 +01:00
|
|
|
|
(define-public tree-sitter-gleam
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gleam" "Gleam"
|
|
|
|
|
|
"0d7z5bk6x0qi3wy4d8174a69wxsc4287c7fcdfabkn8dixpa920q"
|
|
|
|
|
|
"1.1.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/gleam-lang/tree-sitter-gleam"
|
|
|
|
|
|
#:license license:asl2.0))
|
|
|
|
|
|
|
2025-11-08 15:14:48 +00:00
|
|
|
|
(define-public tree-sitter-glsl
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"glsl" "OpenGL Shading Language (GLSL)"
|
|
|
|
|
|
"0d0ymklms4a91b310f0vwl80yy50sji4qq9sdgly5qh42kyjnijb"
|
|
|
|
|
|
"0.2.0"
|
|
|
|
|
|
#:inputs (list tree-sitter-c)
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-glsl"))
|
|
|
|
|
|
|
2025-10-14 12:59:01 +01:00
|
|
|
|
(define-public tree-sitter-gn
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "bc06955bc1e3c9ff8e9b2b2a55b38b94da923c05")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gn" "GN"
|
|
|
|
|
|
"0i6f0kar3c734ag5bli519ah3rmamsk8kihbw5ga5b0ihrxqfzja"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-gn")))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-go
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"go" "Go"
|
|
|
|
|
|
"0yi8if9mqzzcs4qflflz90hhaxkzlq54wia3s0iiqzfqxk24a61g"
|
|
|
|
|
|
"0.23.4"))
|
2023-02-14 15:34:48 +04:00
|
|
|
|
|
2023-07-09 19:02:36 +02:00
|
|
|
|
(define-public tree-sitter-gomod
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gomod" "Go .mod"
|
2025-04-12 02:30:38 +08:00
|
|
|
|
"1vbg4fn54a7lbwcrvjdx3nrwgw5y925chbbb7sd6kwms1434yyhb"
|
|
|
|
|
|
"1.1.0"
|
|
|
|
|
|
#:repository-url "https://github.com/camdencheek/tree-sitter-go-mod"))
|
2023-07-09 19:02:36 +02:00
|
|
|
|
|
2025-10-14 12:55:55 +01:00
|
|
|
|
(define-public tree-sitter-gosum
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "27816eb6b7315746ae9fcf711e4e1396dc1cf237")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gosum" "Go .sum"
|
|
|
|
|
|
"13h690k9q8kf7mldcps10h0kj0bdnlkfml9zkcawdswx8r7wblzn"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-go-sum")))
|
|
|
|
|
|
|
2025-10-01 21:54:36 -05:00
|
|
|
|
(define-public tree-sitter-gpr
|
|
|
|
|
|
(let ((version "0.1.0") ; In package.json, but untagged
|
|
|
|
|
|
(commit "cea857d3c18d1385d1f5b66cd09ea1e44173945c")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gpr" "GNAT Project"
|
|
|
|
|
|
"0mf6ghqdyn0qbani9hg67yr6a68cbbbvhn734ndygxm30vqdz9xn"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/brownts/tree-sitter-gpr"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
;; binding.gyp & bindings is not part of this grammar.
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(for-each
|
|
|
|
|
|
(lambda (lang)
|
|
|
|
|
|
(with-directory-excursion lang
|
|
|
|
|
|
(delete-file "src/grammar.json")
|
|
|
|
|
|
(delete-file "src/node-types.json")
|
|
|
|
|
|
(delete-file "src/parser.c")
|
|
|
|
|
|
(delete-file-recursively "src/tree_sitter")))
|
|
|
|
|
|
'#$grammar-directories))))))
|
|
|
|
|
|
|
2025-11-08 16:52:14 +00:00
|
|
|
|
(define-public tree-sitter-graphql
|
|
|
|
|
|
(let ((commit "5e66e961eee421786bdda8495ed1db045e06b5fe")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"graphql" "GraphQL"
|
|
|
|
|
|
"0xvrd6p9rxdjpqfq575ap6hpl2f7dad5i4d4m05w1qk9jx33vw9n"
|
|
|
|
|
|
(git-version "0.0.1" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/bkegley/tree-sitter-graphql"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(mkdir-p "test/corpus")
|
|
|
|
|
|
(copy-recursively "corpus" "test/corpus")
|
|
|
|
|
|
;; FIXME: Impossible pattern.
|
|
|
|
|
|
(substitute* "queries/graphql/formatter.scm"
|
|
|
|
|
|
(("(\\(input_value_definition(.*@name)?\\))" all value _)
|
|
|
|
|
|
(string-append "(input_fields_definition " value ")")))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-14 12:59:47 +01:00
|
|
|
|
(define-public tree-sitter-groovy
|
|
|
|
|
|
(let ((version "0.0.1")
|
|
|
|
|
|
(commit "86911590a8e46d71301c66468e5620d9faa5b6af")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"groovy" "Groovy"
|
|
|
|
|
|
"0vbsg5xkdja6xyp8nm7g9fs4ndaq3qz6lq8vk9c7l2znw6bb17gb"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/murtaza64/tree-sitter-groovy")))
|
|
|
|
|
|
|
2025-10-14 13:00:16 +01:00
|
|
|
|
(define-public tree-sitter-gstlaunch
|
|
|
|
|
|
(let ((version "0.1.0")
|
|
|
|
|
|
(commit "cf696c7f5e7265a7f6bd0cd1cc8864edd917a3de")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"gstlaunch" "gst-launch-1.0"
|
|
|
|
|
|
"0kd2pmh5jq0vc9mdzf2w12hn8qrcg3jybys1q4j2dnhqcalzmppa"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-gstlaunch")))
|
|
|
|
|
|
|
2025-10-14 13:01:12 +01:00
|
|
|
|
(define-public tree-sitter-hack
|
|
|
|
|
|
(let ((version "0.0.4")
|
|
|
|
|
|
(commit "bc5b3a10d6d27e8220a113a9a7fe9bec0a1574b0")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"hack" "Hack"
|
|
|
|
|
|
"08rmlbxhb79d4zb0rb5wwkm4cqgy4a2l8zh37p2kx9gr352wjl3m"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/slackhq/tree-sitter-hack")))
|
|
|
|
|
|
|
2025-11-14 10:48:58 -06:00
|
|
|
|
(define-public tree-sitter-hare
|
|
|
|
|
|
(let ((version "0.0.1")
|
|
|
|
|
|
(commit "fb6ea01461441ec7c312e64e326649f5e9011a64")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"hare" "Hare"
|
|
|
|
|
|
"0c1zswqig2x0qxg5svd5r17vrwi282x6is9irll2vadkfpfm83r9"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://git.sr.ht/~ecs/tree-sitter-hare"
|
|
|
|
|
|
#:license license:expat)))
|
|
|
|
|
|
|
2023-02-14 15:39:32 +04:00
|
|
|
|
(define-public tree-sitter-haskell
|
2025-04-12 02:46:14 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"haskell" "Haskell"
|
|
|
|
|
|
"08qzkvyc830k56j5lglfzmlp03ygixf9vlrpazbndqvqk20n56xa"
|
|
|
|
|
|
"0.15.0"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(delete-file "test/highlight/Basic.hs") ;FIXME: Language not found.
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
2023-02-14 15:43:25 +04:00
|
|
|
|
|
2025-11-08 21:12:02 +00:00
|
|
|
|
(define-public tree-sitter-haxe
|
|
|
|
|
|
(let ((commit "a55f3e2cf1e4449200fd089a80d3af642bcf5f94")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"haxe" "Haxe"
|
|
|
|
|
|
"0wyrc7l3xav805xmypfp9clgxacm080is598lr3raa2sb31rwdl3"
|
|
|
|
|
|
(git-version "0.13.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/vantreeseba/tree-sitter-haxe"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: No language found.
|
|
|
|
|
|
(delete-file "queries/highlights.scm")
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2024-02-27 03:09:59 +00:00
|
|
|
|
(define-public tree-sitter-hcl
|
2025-04-12 02:48:55 +08:00
|
|
|
|
(let ((commit "de10d494dbd6b71cdf07a678fecbf404dbfe4398")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"hcl" "HCL"
|
|
|
|
|
|
"0dpxrr7m1k4kjasgz6v8kj7ldp0k6jcxlzcrr09qv7209v24s4x1"
|
|
|
|
|
|
(git-version "1.1.0" revision commit)
|
|
|
|
|
|
#:article "an"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-hcl"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:license license:asl2.0)))
|
2024-02-27 03:09:59 +00:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-heex
|
2025-09-20 17:19:43 +09:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"heex" "Heex"
|
|
|
|
|
|
"0d0ljmxrvmr8k1wc0hd3qrjzwb31f1jaw6f1glamw1r948dxh9xf"
|
|
|
|
|
|
"0.8.0"
|
|
|
|
|
|
#:repository-url "https://github.com/phoenixframework/tree-sitter-heex"))
|
2025-09-20 17:19:43 +09:00
|
|
|
|
|
2025-11-08 17:59:21 +00:00
|
|
|
|
(define-public tree-sitter-hlsl
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"hlsl" "HLSL"
|
|
|
|
|
|
"0d850bxzxmbxgxjdh219ag2k3qvbphly1y0hdbs2zsqdsdgf0s05"
|
|
|
|
|
|
"0.2.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-hlsl"
|
|
|
|
|
|
#:inputs (list tree-sitter-c
|
|
|
|
|
|
tree-sitter-cpp)
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-html
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"html" "HTML"
|
|
|
|
|
|
"0slhrmwcw2xax4ylyaykx4libkzlaz2lis8x8jmn6b3hbdxlrpix"
|
|
|
|
|
|
"0.23.2"))
|
|
|
|
|
|
|
2025-10-14 13:02:04 +01:00
|
|
|
|
(define-public tree-sitter-hyprlang
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"hyprlang" "Hyprlang"
|
|
|
|
|
|
"171p3hj36a1jqflg9xv138445j4m4m16na6bgpm1km3l67jhvl54"
|
|
|
|
|
|
"3.1.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-hyprlang"))
|
|
|
|
|
|
|
2025-10-14 13:02:48 +01:00
|
|
|
|
(define-public tree-sitter-ini
|
|
|
|
|
|
(let ((version "1.3.0")
|
|
|
|
|
|
(commit "32b31863f222bf22eb43b07d4e9be8017e36fb31")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ini" "INI"
|
|
|
|
|
|
"0sp9075fllimy6zrw2gx5mij0igl9zvcrakh23wn7m5wh0w9lq4i"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/justinmk/tree-sitter-ini"
|
|
|
|
|
|
#:article "an"
|
|
|
|
|
|
#:license license:asl2.0)))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-janet
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"janet" "Janet"
|
|
|
|
|
|
"1sg862gqxn5y86sqa4habyicsr1ax70i7w8ibnn2yyx1bzn99jqn"
|
|
|
|
|
|
"0.1.0"
|
|
|
|
|
|
#:repository-url "https://github.com/GrayJack/tree-sitter-janet"
|
|
|
|
|
|
#:license license:bsd-3))
|
|
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-java
|
2023-02-14 15:43:25 +04:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"java" "Java"
|
2025-04-12 03:01:16 +08:00
|
|
|
|
"11j4ifhl5hsmb2sa651cp5xds9cjgjynl86yivvk6bnr2ba0xw9s"
|
|
|
|
|
|
"0.23.5"))
|
2023-02-14 15:45:04 +04:00
|
|
|
|
|
2025-10-14 13:30:39 +01:00
|
|
|
|
(define-public tree-sitter-java-properties
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"java-properties" "Java properties"
|
|
|
|
|
|
"0y2w3szzmn4y6m0fh0zi4xqfwr9lm849abrpsi3i3dlz9rnhcs71"
|
|
|
|
|
|
"0.3.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-properties"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-javascript
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"javascript" "JavaScript(JSX)"
|
|
|
|
|
|
"03v1gpr5lnifrk4lns690fviid8p02wn7hfdwp3ynp7lh1cid63a"
|
|
|
|
|
|
"0.23.1"))
|
|
|
|
|
|
|
2025-10-14 13:04:02 +01:00
|
|
|
|
(define-public tree-sitter-jsdoc
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"jsdoc" "JSDoc"
|
|
|
|
|
|
"1qrgan1xpj717qmwdbgb3lqjgffyhsw0qxhjwhdhqfv2lgkw4cn6"
|
|
|
|
|
|
"0.25.0"))
|
|
|
|
|
|
|
2023-02-14 15:45:04 +04:00
|
|
|
|
(define-public tree-sitter-json
|
2025-04-12 03:01:35 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"json" "JSON"
|
|
|
|
|
|
"0p0fiqi5imxm13s1fs6bhqw6v11n79ri1af3d072zm7jqkcl5mhc"
|
|
|
|
|
|
"0.24.8"))
|
2023-02-14 15:46:30 +04:00
|
|
|
|
|
2025-10-14 13:04:58 +01:00
|
|
|
|
(define-public tree-sitter-jsonnet
|
|
|
|
|
|
(let ((version "0.0.1")
|
|
|
|
|
|
(commit "ddd075f1939aed8147b7aa67f042eda3fce22790")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"jsonnet" "JSONNET"
|
|
|
|
|
|
"1bfdjxp0h95d124bzlhlvc9b5q19cdj716aym41nyl6z5a992c9q"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/sourcegraph/tree-sitter-jsonnet")))
|
|
|
|
|
|
|
2023-02-14 15:46:30 +04:00
|
|
|
|
(define-public tree-sitter-julia
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"julia" "Julia"
|
2025-04-12 03:01:52 +08:00
|
|
|
|
"0xi04a48ly438gar25bkkvvr8by4dd013cnafbjdysqjfs04q2wg"
|
|
|
|
|
|
"0.23.1"))
|
2023-02-14 15:57:06 +04:00
|
|
|
|
|
2025-10-14 13:11:22 +01:00
|
|
|
|
(define-public tree-sitter-kconfig
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"kconfig" "Kconfig"
|
|
|
|
|
|
"1gjh5pz2hwccfcljz3qlg66b6rgv3wsv1bdml1gzrphca9xxz66a"
|
|
|
|
|
|
"1.3.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-kconfig"))
|
|
|
|
|
|
|
2024-02-27 03:09:55 +00:00
|
|
|
|
(define-public tree-sitter-kdl
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"kdl" "KDL"
|
|
|
|
|
|
"1015x24ffrvzb0m0wbqdzmaqavpnjw0gvcagxi9b6vj3n1ynm0ps"
|
|
|
|
|
|
"1.1.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-kdl"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-kotlin
|
2023-10-19 23:44:36 +08:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"kotlin" "Kotlin"
|
|
|
|
|
|
"0bv21rcypi9dx87kgfr89mg8qfc7ik1g1fcb8am7ss17by8badwk"
|
|
|
|
|
|
"0.3.8"
|
|
|
|
|
|
#:repository-url "https://github.com/fwcd/tree-sitter-kotlin"
|
|
|
|
|
|
#:commit "0.3.8"))
|
2023-02-14 16:11:18 +04:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-latex
|
2025-04-12 11:10:50 +08:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"latex" "LaTeX"
|
|
|
|
|
|
"18dyda7299imb6i2jnjpr7z2jdrjn804c3958nkkpxzzfhbq39h7"
|
|
|
|
|
|
"0.4.0"
|
2025-11-08 18:08:11 +00:00
|
|
|
|
#:repository-url "https://github.com/latex-lsp/tree-sitter-latex"))
|
2024-02-27 13:06:33 +00:00
|
|
|
|
|
2025-10-14 13:12:13 +01:00
|
|
|
|
(define-public tree-sitter-linkerscript
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "f99011a3554213b654985a4b0a65b3b032ec4621")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"linkerscript" "Linker script"
|
|
|
|
|
|
"004irhiaj5n4sgr0fqwqxnijsbalvn3ahc2ys4s9l33rr4hhr3qf"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-linkerscript")))
|
|
|
|
|
|
|
2025-11-08 18:00:23 +00:00
|
|
|
|
(define-public tree-sitter-llvm
|
|
|
|
|
|
(let ((commit "2914786ae6774d4c4e25a230f4afe16aa68fe1c1")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"llvm" "LLVM"
|
|
|
|
|
|
"0k02dak264y57ng0mxdg9z9hcb4b0jgyd1xm88h4f1bcq6sah54c"
|
|
|
|
|
|
(git-version "1.1.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/benwilliamgraham/tree-sitter-llvm")))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-lua
|
2023-02-14 16:25:37 +04:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"lua" "Lua"
|
2025-11-08 18:13:27 +00:00
|
|
|
|
"082hc274h96sa98n3vxicjmjvnbdhrpjaimxsh002xl69rdl80jm"
|
|
|
|
|
|
"0.4.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-lua"
|
2025-01-14 14:36:14 +01:00
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(delete-file-recursively "test/highlight") ;FIXME
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
2023-02-14 16:30:50 +04:00
|
|
|
|
|
2025-10-14 13:12:42 +01:00
|
|
|
|
(define-public tree-sitter-luadoc
|
|
|
|
|
|
(let ((version "1.1.0")
|
|
|
|
|
|
(commit "818acda56809f994274de64a42f97f509b3c0ad2")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"luadoc" "Luadoc/LuaCATS"
|
|
|
|
|
|
"1sb0zgd2gk0x18c45f5y9pz5fr8mil9adsspa9q7kbd2hwrf14gi"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-luadoc")))
|
|
|
|
|
|
|
2025-10-14 13:13:45 +01:00
|
|
|
|
(define-public tree-sitter-lua-patterns
|
|
|
|
|
|
(let ((version "1.0.1")
|
|
|
|
|
|
(commit "31461ae9bd0866cb5117cfe5de71189854fd0f3e")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"lua-patterns" "Lua patterns"
|
|
|
|
|
|
"1wfsfh44jn7m9kx0lfsbrf0hqavad142wl2pffab3mvpmrnawva9"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-luap")))
|
|
|
|
|
|
|
2025-11-08 18:21:22 +00:00
|
|
|
|
(define-public tree-sitter-luau
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"luau" "Luau"
|
|
|
|
|
|
"00j60425gp0pzrfds0wzr0k1wynbp0zq1saagpnglkmid41xk9p6"
|
|
|
|
|
|
"1.2.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-luau"
|
|
|
|
|
|
#:inputs (list tree-sitter-lua)
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(substitute* "grammar.js"
|
|
|
|
|
|
(("@muniftanjim/") "@tree-sitter-grammars/"))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
|
|
|
|
|
|
2025-10-14 15:07:42 +01:00
|
|
|
|
(define-public tree-sitter-magik
|
|
|
|
|
|
(let ((version "0.0.1")
|
|
|
|
|
|
(commit "1fd4c5502fd375c157bbe0916834f697c97704bb")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"magik" "Magik"
|
|
|
|
|
|
"07zdsilaa97c4hq1pj0qiyhrkbzhawnqc7sbsvr0nsz6n5jj3gwx"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/krn-robin/tree-sitter-magik")))
|
|
|
|
|
|
|
2025-10-14 13:14:38 +01:00
|
|
|
|
(define-public tree-sitter-make
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"make" "Makefile"
|
|
|
|
|
|
"0g8k9rfmc979lza2cx5xwla1ic2p9hpvm0h2sgfs4r29kw1a2ass"
|
|
|
|
|
|
"1.1.1"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-make"))
|
|
|
|
|
|
|
2023-02-14 16:30:50 +04:00
|
|
|
|
(define-public tree-sitter-markdown
|
2025-04-12 12:35:03 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"markdown" "Markdown (CommonMark Spec v0.30)"
|
|
|
|
|
|
"0r8jlmyr1bnyqqipmpmxxw4qw81c9n0l29xdfkz2n2zmjqps5v9r"
|
|
|
|
|
|
"0.4.1"
|
|
|
|
|
|
#:repository-url "https://github.com/MDeiml/tree-sitter-markdown"
|
|
|
|
|
|
#:grammar-directories '("tree-sitter-markdown"
|
|
|
|
|
|
"tree-sitter-markdown-inline")
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME
|
|
|
|
|
|
(with-directory-excursion "tree-sitter-markdown-inline/test/corpus"
|
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
|
'("extension_wikilink.txt" "spec.txt" "tags.txt")))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
2023-02-14 16:59:47 +04:00
|
|
|
|
|
2025-10-16 17:08:05 +02:00
|
|
|
|
(define-deprecated-package tree-sitter-markdown-gfm
|
|
|
|
|
|
tree-sitter-markdown)
|
2023-02-14 17:00:05 +04:00
|
|
|
|
|
2024-03-15 20:28:29 +01:00
|
|
|
|
(define-public tree-sitter-matlab
|
2025-04-12 12:41:47 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"matlab" "Matlab"
|
|
|
|
|
|
"1kcg16aa9swk4a73klp72rib15ljz7zjlr97rr134laym4x0fnvl"
|
|
|
|
|
|
"1.0.4"
|
|
|
|
|
|
#:repository-url "https://github.com/acristoffers/tree-sitter-matlab"
|
|
|
|
|
|
#:license license:expat))
|
2024-03-15 20:28:29 +01:00
|
|
|
|
|
2025-06-12 12:14:22 -05:00
|
|
|
|
(define-public tree-sitter-mermaid
|
|
|
|
|
|
(let ((version "0.0.2") ; In package.json, but untagged
|
|
|
|
|
|
(commit "90ae195b31933ceb9d079abfa8a3ad0a36fee4cc")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"mermaid" "Mermaid"
|
|
|
|
|
|
"1wfdsz3ikdbpym14aljgy80jhr06cgwhhg72rr8d3rsbm8z5ppaf"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/monaqa/tree-sitter-mermaid")))
|
|
|
|
|
|
|
2023-06-17 18:05:15 +08:00
|
|
|
|
(define-public tree-sitter-meson
|
2025-04-12 12:42:03 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"meson" "Meson"
|
|
|
|
|
|
"10v1d22wgkc9m33b7zfl712q7zrpn17l1xyprj4wwasqjvg29l03"
|
|
|
|
|
|
"1.3.0"
|
|
|
|
|
|
#:repository-url "https://github.com/Decodetalkers/tree-sitter-meson"
|
|
|
|
|
|
#:license license:expat))
|
2023-06-17 18:05:15 +08:00
|
|
|
|
|
2025-10-14 13:15:17 +01:00
|
|
|
|
(define-public tree-sitter-netlinx
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"netlinx" "NetLinx"
|
|
|
|
|
|
"09q2w9g4bb8v603b4ykxn5g8ndqjfhrgskslsmzhy095r3jysb2q"
|
|
|
|
|
|
"1.0.4"
|
|
|
|
|
|
#:repository-url "https://github.com/Norgate-AV/tree-sitter-netlinx"))
|
|
|
|
|
|
|
2025-10-14 13:15:51 +01:00
|
|
|
|
(define-public tree-sitter-nim
|
|
|
|
|
|
(let ((version "0.6.2")
|
|
|
|
|
|
(commit "4ad352773688deb84a95eeaa9872acda5b466439")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"nim" "Nim"
|
|
|
|
|
|
"17wgv8lv6v3wgsjhwcmrqpvdj0bj69ldmr62j588vsppn2cwqabn"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/alaviss/tree-sitter-nim"
|
|
|
|
|
|
#:license license:mpl2.0)))
|
|
|
|
|
|
|
2025-10-14 13:16:22 +01:00
|
|
|
|
(define-public tree-sitter-ninja
|
|
|
|
|
|
(let ((version "0.1.0")
|
|
|
|
|
|
(commit "0a95cfdc0745b6ae82f60d3a339b37f19b7b9267")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ninja" "Ninja"
|
|
|
|
|
|
"1vmfx2k6bxfwcz319vskjhyszc6hz3j32bw4lgj72l7p890ykwkv"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/alemuller/tree-sitter-ninja")))
|
|
|
|
|
|
|
2024-03-31 22:53:10 -05:00
|
|
|
|
(define-public tree-sitter-nix
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"nix" "Nix"
|
2025-04-12 12:42:33 +08:00
|
|
|
|
"0rkvr64fvawblpg39rr0mrigf1rhsk30vng2vxviwb7fk50iww0i"
|
|
|
|
|
|
"0.0.2"
|
|
|
|
|
|
#:repository-url "https://github.com/nix-community/tree-sitter-nix"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
2024-03-31 22:53:10 -05:00
|
|
|
|
|
2025-11-08 18:25:00 +00:00
|
|
|
|
(define-public tree-sitter-nqc
|
|
|
|
|
|
(let ((commit "14e6da1627aaef21d2b2aa0c37d04269766dcc1d")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"nqc" "NQC"
|
|
|
|
|
|
"0gpai34vlcdbkyj4a7j2wm36g14p84aj0vldh1146b0n8zbvizhr"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-nqc"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:inputs (list tree-sitter-c)
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; Adjust to the change in tree-sitter-c
|
|
|
|
|
|
(substitute* "grammar.js"
|
|
|
|
|
|
(("\\$\\._statement") "$.statement")
|
|
|
|
|
|
(("\\$\\._expression") "$.expression"))
|
|
|
|
|
|
(delete-file "queries/highlights.scm") ;FIXME
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-11-08 18:25:48 +00:00
|
|
|
|
(define-public tree-sitter-objc
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"objc" "Objective-C"
|
|
|
|
|
|
"1fryxjjxjq7lz93vvcm3lswshb4drywf64knbvjxrr3lq5zh5bv8"
|
|
|
|
|
|
"3.0.2"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-objc"
|
|
|
|
|
|
#:inputs (list tree-sitter-c)
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-ocaml
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ocaml" "OCaml (.ml and .mli)"
|
|
|
|
|
|
"17g2ynqhjf1nyhdidz9j9s0s12iys3b2vbywxkygwyccj7rb8zdi"
|
|
|
|
|
|
"0.24.0"
|
|
|
|
|
|
#:grammar-directories '("grammars/interface" "grammars/ocaml" "grammars/type")))
|
|
|
|
|
|
|
2025-10-14 13:16:55 +01:00
|
|
|
|
(define-public tree-sitter-odin
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"odin" "Odin"
|
|
|
|
|
|
"05ljga1gqhx8hr7ldpcbrz79ixni5qyz6ckyyh7chxnkl5fkjp5y"
|
|
|
|
|
|
"1.3.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-odin"
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2023-02-14 17:00:05 +04:00
|
|
|
|
(define-public tree-sitter-org
|
|
|
|
|
|
;; There are a lot of additions, the last tag was placed a while ago
|
2025-04-12 12:44:47 +08:00
|
|
|
|
(let ((commit "64cfbc213f5a83da17632c95382a5a0a2f3357c1")
|
|
|
|
|
|
(revision "1"))
|
2023-02-14 17:00:05 +04:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"org" "Org"
|
2025-04-12 12:44:47 +08:00
|
|
|
|
"1l62p4a3b22pa7b5mzmy497pk5b8w01hx6zinfwpbnzg2rjdwkgz"
|
2023-02-14 17:00:05 +04:00
|
|
|
|
(git-version "1.3.1" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/milisims/tree-sitter-org"
|
|
|
|
|
|
#:commit commit)))
|
2023-02-15 10:19:16 +04:00
|
|
|
|
|
2025-10-14 13:17:28 +01:00
|
|
|
|
(define-public tree-sitter-pascal
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"pascal" "Pascal"
|
|
|
|
|
|
"0wxg6k1vvp32c5grvrw1xihb1zr0idfmc4p07rmv99f7f472djhj"
|
|
|
|
|
|
"0.10.0"
|
|
|
|
|
|
#:repository-url "https://github.com/Isopod/tree-sitter-pascal"))
|
|
|
|
|
|
|
2025-10-14 13:18:12 +01:00
|
|
|
|
(define-public tree-sitter-pem
|
|
|
|
|
|
(let ((version "0.1.1")
|
|
|
|
|
|
(commit "e525b177a229b1154fd81bc0691f943028d9e685")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"pem" "PEM"
|
|
|
|
|
|
"02g17ki5da7iams576qxyc01r1c95y5ycd7yhap9fhyxc8a6my6r"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-pem")))
|
|
|
|
|
|
|
2025-11-08 18:26:57 +00:00
|
|
|
|
(define-public tree-sitter-perl
|
|
|
|
|
|
(let ((commit "ad74e6db234c35d537de9358799a8e0cc4f5dee0")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"perl" "Perl"
|
|
|
|
|
|
"0k6p3hij98vqa6b6iyswlyij69cggbnzgwi2zh64mj3faisblgzj"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-perl/tree-sitter-perl"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME
|
|
|
|
|
|
(delete-file "test/highlight/literals.pm")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-14 13:19:10 +01:00
|
|
|
|
(define-public tree-sitter-pgn
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"pgn" "Chess Portable Game Notation (PGN)"
|
|
|
|
|
|
"0mazy9y80pd20a3a76b0nfxswh7xxdsnya0y0lzl86sh4w95f52p"
|
|
|
|
|
|
"1.2.12"
|
|
|
|
|
|
#:repository-url "https://github.com/rolandwalker/tree-sitter-pgn"
|
|
|
|
|
|
#:license license:bsd-2))
|
|
|
|
|
|
|
2025-10-14 13:27:05 +01:00
|
|
|
|
(define-public tree-sitter-php
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"php" "PHP"
|
|
|
|
|
|
"05qhz14vvqgwpxgdfr1skwgrv041zwc3wxjyx6y679965nn0lrji"
|
|
|
|
|
|
"0.23.12"
|
|
|
|
|
|
#:grammar-directories '("php" "php_only")))
|
|
|
|
|
|
|
2023-09-01 09:53:44 +04:00
|
|
|
|
(define-public tree-sitter-plantuml
|
|
|
|
|
|
;; No tags
|
2025-04-12 12:54:37 +08:00
|
|
|
|
(let ((commit "c7361a1d481dc1ff6700b14ea1d5efc549b72713")
|
|
|
|
|
|
(revision "1"))
|
2023-09-01 09:53:44 +04:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"plantuml" "PlantUML"
|
2025-04-12 12:54:37 +08:00
|
|
|
|
"0apmv0dad58ixhxhzxkwlm9wgbphj7lxilbh427rpxy1y5hrml0f"
|
2023-09-01 09:53:44 +04:00
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/Decodetalkers/tree_sitter_plantuml"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:get-cleanup-snippet
|
2025-11-08 18:07:27 +00:00
|
|
|
|
(lambda (grammar-directories)
|
2023-09-01 09:53:44 +04:00
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
2025-04-12 12:54:37 +08:00
|
|
|
|
(substitute* "grammar.js"
|
|
|
|
|
|
(("u\\{\\[0-9a-fA-F\\]\\+\\}")
|
|
|
|
|
|
"u\\{[0-9a-fA-F]+\\}"))
|
2025-11-08 18:07:27 +00:00
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
2023-09-16 14:53:41 -05:00
|
|
|
|
|
2025-10-14 13:28:40 +01:00
|
|
|
|
(define-public tree-sitter-po
|
|
|
|
|
|
(let ((version "0.0.1")
|
|
|
|
|
|
(commit "bd860a0f57f697162bf28e576674be9c1500db5e")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"po" "GNU gettext translation file (PO/POT)"
|
|
|
|
|
|
"1d28lyg0sx9xs09y68618cxnhi5sacfschcrv4xmy06k21bp8azx"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-po")))
|
|
|
|
|
|
|
2025-11-08 18:27:47 +00:00
|
|
|
|
(define-public tree-sitter-pony
|
|
|
|
|
|
(let ((commit "73ff874ae4c9e9b45462673cbc0a1e350e2522a7")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"pony" "Pony"
|
|
|
|
|
|
"0fm47by0z6vzihnk4py7lx1qbiwqbbgpxpi8ibl740bnx9nx7mpz"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-pony")))
|
|
|
|
|
|
|
2025-10-14 13:29:06 +01:00
|
|
|
|
(define-public tree-sitter-powershell
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"powershell" "Powershell"
|
|
|
|
|
|
"1wz34js891sx6j2s128sdcbxj1k2zi300fg5a4vf5acaz82jcs8q"
|
|
|
|
|
|
"0.25.8"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/airbus-cert/tree-sitter-powershell"))
|
|
|
|
|
|
|
2025-10-14 13:29:45 +01:00
|
|
|
|
(define-public tree-sitter-printf
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"printf" "printf"
|
|
|
|
|
|
"15p5fr1dhmf54aic9mszrb7859q2adcq66mnivzpfvzvh4xnpmr5"
|
|
|
|
|
|
"0.5.1"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-printf"
|
|
|
|
|
|
#:license license:isc))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-prisma
|
2023-09-16 14:53:41 -05:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"prisma" "Prisma"
|
|
|
|
|
|
"144l2w7ky5imd7yvp1n6lgbyy5kq6kx4c2ja43yk15k3258pf52v"
|
|
|
|
|
|
"1.5.1"
|
|
|
|
|
|
#:repository-url "https://github.com/victorhqc/tree-sitter-prisma"
|
|
|
|
|
|
#:license license:expat))
|
|
|
|
|
|
|
2025-10-14 14:52:08 +01:00
|
|
|
|
(define-public tree-sitter-proto
|
|
|
|
|
|
(let ((version "0.1.0")
|
|
|
|
|
|
(commit "e9f6b43f6844bd2189b50a422d4e2094313f6aa3")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"proto" "Protocol Buffers"
|
|
|
|
|
|
"1r8g28rp852f1qj4bhnkf4fzfir1r5blq2p0nz4x9y5jfplb1vji"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/treywood/tree-sitter-proto")))
|
|
|
|
|
|
|
2025-10-14 14:52:45 +01:00
|
|
|
|
(define-public tree-sitter-puppet
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"puppet" "Puppet"
|
|
|
|
|
|
"19032dhb60vxij6b6xvgnigwhhbm4y89dr11vxsr1kk10zj61vkc"
|
|
|
|
|
|
"1.3.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-puppet"))
|
|
|
|
|
|
|
2025-10-14 14:53:15 +01:00
|
|
|
|
(define-public tree-sitter-purescript
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"purescript" "PureScript"
|
|
|
|
|
|
"11c57k50kppc560a6qr3wpxppl9p4w7a7yn9g51ybzd28vc55qxl"
|
|
|
|
|
|
"0.3.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/postsolar/tree-sitter-purescript"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-python
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"python" "Python"
|
2025-10-03 11:40:18 +01:00
|
|
|
|
"05kk1wlm5fgpgwqxw3m68sipkinw0gf2jq19cgq9cgp3agdwg58p"
|
|
|
|
|
|
"0.25.0"))
|
2025-10-01 09:22:17 +02:00
|
|
|
|
|
2025-10-14 14:53:51 +01:00
|
|
|
|
(define-public tree-sitter-python-manifest
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"python-manifest" "PyPA manifest"
|
|
|
|
|
|
"16k9izgwg2f8yyz1vlzyw9qw4np5fjy3nxr3ksq499a0bz8a59cd"
|
|
|
|
|
|
"0.6.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-pymanifest"))
|
|
|
|
|
|
|
2025-10-14 14:58:43 +01:00
|
|
|
|
(define-public tree-sitter-python-requirements
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"python-requirements" "Python requirements.txt"
|
|
|
|
|
|
"1gwp1cwsyr67qclfm9f8ilakaq747qzqmj3bgy0jacjjjs0xgk32"
|
|
|
|
|
|
"0.5.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-requirements"))
|
|
|
|
|
|
|
2025-10-01 21:44:33 -05:00
|
|
|
|
(define-public tree-sitter-qml
|
|
|
|
|
|
(let ((version "0.2.0") ; Tagged, but we use a more recent commit
|
|
|
|
|
|
(commit "0889da4632bba3ec6f39ef4102625654890c15c1")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"qml" "Qml"
|
|
|
|
|
|
"1qdfwbqjnw7vcvq2dcx19c159b12kv2hvwrvbp7m9i5vl6szc22g"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/yuja/tree-sitter-qmljs"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:inputs (delay (list tree-sitter-javascript tree-sitter-typescript))
|
|
|
|
|
|
#:license license:expat)))
|
|
|
|
|
|
|
2025-10-14 14:54:34 +01:00
|
|
|
|
(define-public tree-sitter-qmldir
|
|
|
|
|
|
(let ((version "0.2.2")
|
|
|
|
|
|
(commit "fbf29ddf1ebb01e0c389dde2a51e874f688a2327")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"qmldir" "Qmldir"
|
|
|
|
|
|
"07wmr7vsqqv77m69inrhdk3qmlwivwkdpppcjwc326b2r8a88y7j"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-qmldir")))
|
|
|
|
|
|
|
2025-11-08 18:29:49 +00:00
|
|
|
|
(define-public tree-sitter-qmljs
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"qmljs" "QML"
|
|
|
|
|
|
"1a1fxm73ag51qsi0wfg36jzcm6am9n1mwvhjv3f57fyjwcwigqp0"
|
|
|
|
|
|
"0.2.0"
|
|
|
|
|
|
#:commit "0.2.0"
|
|
|
|
|
|
#:repository-url "https://github.com/yuja/tree-sitter-qmljs"
|
|
|
|
|
|
#:inputs (delay (list tree-sitter-javascript
|
|
|
|
|
|
tree-sitter-typescript))))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-query
|
|
|
|
|
|
(package
|
|
|
|
|
|
(inherit (tree-sitter-grammar "query"
|
|
|
|
|
|
"Query"
|
|
|
|
|
|
"0fbqwg7km4yqjq8p2fkj9hpy0sfnijnf1hsk34wsirlp3af3hc67"
|
|
|
|
|
|
"0.7.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-query"))
|
|
|
|
|
|
(synopsis "Tree-sitter grammar for Tree-sitter's query language")
|
|
|
|
|
|
(description "This package provides Tree-sitter's query grammar.")))
|
|
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-r
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"r" "R"
|
|
|
|
|
|
"1jf14nvrfcznsnmxmlkbnn59bdykpsawxm5grph65p8vghi4fik7"
|
|
|
|
|
|
"1.1.0"
|
|
|
|
|
|
#:repository-url "https://github.com/r-lib/tree-sitter-r"
|
2025-04-12 13:04:58 +08:00
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
2025-10-01 09:22:17 +02:00
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(for-each delete-file-recursively '("test/highlight" "test/tags"))
|
2025-04-12 13:04:58 +08:00
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
2023-09-25 23:28:31 -05:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-racket
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"racket" "Racket"
|
|
|
|
|
|
"1x9x6pn7l578xlm1cmg5w0cy2zk34qywsn0jzf1j8phwf7k66bxg"
|
|
|
|
|
|
"0.23.0-1"
|
|
|
|
|
|
#:repository-url "https://github.com/6cdh/tree-sitter-racket"))
|
|
|
|
|
|
|
2025-10-14 14:55:04 +01:00
|
|
|
|
(define-public tree-sitter-readline
|
|
|
|
|
|
(let ((version "1.1.1")
|
|
|
|
|
|
(commit "74addc90fc539d31d413c0c7cf7581997a7fa46e")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"readline" "GNU Readline init"
|
|
|
|
|
|
"0qmnmzab9qn6chsdh2sfa9v2yrpik3ng9j14shw70ck0zc02gd3i"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-readline")))
|
|
|
|
|
|
|
2025-11-08 18:56:20 +00:00
|
|
|
|
(define-public tree-sitter-re2c
|
|
|
|
|
|
(let ((commit "c18a3c2f4b6665e35b7e50d6048ea3cff770c572")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"re2c" "Regular Expressions to Code (re2c)"
|
|
|
|
|
|
"0h6vvbns5xdi47pfgl2xf4hlwzawrsqbm16jv07d0z7lppimf6ys"
|
|
|
|
|
|
(git-version "0.1.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-re2c"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Invalid node type labelprefix.
|
|
|
|
|
|
(substitute* "grammar.js"
|
|
|
|
|
|
(("( *)\\$\\.set_condenumprefix,\n" all tabs)
|
|
|
|
|
|
(string-append all tabs "$.set_labelprefix,\n")))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-14 14:55:27 +01:00
|
|
|
|
(define-public tree-sitter-rego
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "20b5a5958c837bc9f74b231022a68a594a313f6d")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"rego" "Rego"
|
|
|
|
|
|
"0cmja3gd5nbmi251qc14hh1cbfd7i0mydx74qxs30qvix6q5a2az"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/FallenAngel97/tree-sitter-rego")))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-ron
|
|
|
|
|
|
(let ((commit "78938553b93075e638035f624973083451b29055")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ron" "RON"
|
|
|
|
|
|
"13f8a5sfvyrizkl0szh2yaslmvjk91s97yb2abrdh74a0pl217aa"
|
|
|
|
|
|
(git-version "0.2.0" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-ron"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:license (list license:asl2.0 license:expat))))
|
|
|
|
|
|
|
2025-10-14 15:00:35 +01:00
|
|
|
|
(define-public tree-sitter-rst
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"rst" "ReStructuredText"
|
|
|
|
|
|
"1lrdyhgda2f66biq7dk4s0llk4fcxn23rf5zrhi17nnl8zmjg18i"
|
|
|
|
|
|
"0.2.0"
|
|
|
|
|
|
#:repository-url "https://github.com/stsewd/tree-sitter-rst"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-ruby
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ruby" "Ruby"
|
|
|
|
|
|
"0c1vs63ydcb3q2wnif18l5irbj6chkcvd3p6dg0vyhklk5acrvca"
|
|
|
|
|
|
"0.23.1"))
|
|
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-rust
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"rust" "Rust"
|
|
|
|
|
|
"0x7xqxspdfnbgn9nvrsl2rsnrjbs01i5hy8k8p5wwk2j358hjyyb"
|
|
|
|
|
|
"0.24.0"))
|
|
|
|
|
|
|
2023-09-25 23:28:31 -05:00
|
|
|
|
(define-public tree-sitter-scala
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"scala" "Scala"
|
2025-04-12 13:05:26 +08:00
|
|
|
|
"02awiraj5mmgyi31yzxyxarkkl41qksm3lm41pq9c6bmyqpir2y6"
|
|
|
|
|
|
"0.23.4"))
|
2024-03-27 21:00:13 -05:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-scheme
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"scheme" "Scheme (R5RS, R6RS, R7RS)"
|
|
|
|
|
|
"12p8g2mnd73lanibk16llhbx7xarlcl2ihngcibhpa4bzppcbb8l"
|
|
|
|
|
|
"0.23.0-1"
|
|
|
|
|
|
#:repository-url "https://github.com/6cdh/tree-sitter-scheme"))
|
|
|
|
|
|
|
2025-11-08 18:58:00 +00:00
|
|
|
|
(define-public tree-sitter-scss
|
|
|
|
|
|
(let ((commit "bca847c1410f7dd97e13fbe7838b3c2c203fb473")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"scss" "SCSS"
|
|
|
|
|
|
"0v5vrgwp2fln1pypff5pr329mghm5naahpn3sr7mkrja2n8gyy6a"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-scss"
|
|
|
|
|
|
#:inputs (list tree-sitter-css)
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: 10/56 fail
|
|
|
|
|
|
(with-directory-excursion "test/corpus"
|
|
|
|
|
|
(for-each
|
|
|
|
|
|
delete-file
|
|
|
|
|
|
'("declarations.txt" "examples.txt" "statements.txt")))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-11-07 14:39:41 +00:00
|
|
|
|
(define-public tree-sitter-sfapex
|
|
|
|
|
|
;; Use a later commit because some tests fail with the v2.3 tag.
|
|
|
|
|
|
(let ((commit "3597575a429766dd7ecce9f5bb97f6fec4419d5d")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"sfapex" "Sfapex"
|
|
|
|
|
|
"1kcv8g7smh76nb46np5yqmjma1c4zna74nkhc11xa1g3gwysvv2c"
|
|
|
|
|
|
(git-version "2.3" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/aheber/tree-sitter-sfapex"
|
|
|
|
|
|
#:grammar-directories '("apex" "sflog" "soql" "sosl"))))
|
|
|
|
|
|
|
2025-11-08 20:33:48 +00:00
|
|
|
|
(define-public tree-sitter-smali
|
|
|
|
|
|
(let ((commit "fdfa6a1febc43c7467aa7e937b87b607956f2346")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"smali" "Smali"
|
|
|
|
|
|
"0b7b6vziwj2c3ngrpz439gnsxh5v22illc4nms1mxkzdx5g3liab"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-smali")))
|
|
|
|
|
|
|
2025-11-08 20:34:24 +00:00
|
|
|
|
(define-public tree-sitter-smithy
|
|
|
|
|
|
(let ((commit "ec4fe14586f2b0a1bc65d6db17f8d8acd8a90433")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"smithy" "Smithy"
|
|
|
|
|
|
"12gs5baabvm6v7js0g0siy98v1w69cmfxc72sikylr6y4wfvhjf0"
|
|
|
|
|
|
(git-version "0.2.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/indoorvivants/tree-sitter-smithy")))
|
|
|
|
|
|
|
2025-10-14 15:01:21 +01:00
|
|
|
|
(define-public tree-sitter-solidity
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"solidity" "Solidity"
|
|
|
|
|
|
"0vbxghnihnmfdgg4a5j2g5s7fcff8axqmqa2y8yci434n35wgq3g"
|
|
|
|
|
|
"1.2.13"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/JoranHonig/tree-sitter-solidity"))
|
|
|
|
|
|
|
2025-11-08 20:35:03 +00:00
|
|
|
|
(define-public tree-sitter-sparql
|
|
|
|
|
|
(let* ((commit "1ef52d35a73a2a5f2e433ecfd1c751c1360a923b")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"sparql" "SPARQL"
|
|
|
|
|
|
"19s63n9kbijmbaprffvkxqmdr8a1jc3f371mzrxh2wv4czbradpl"
|
|
|
|
|
|
(git-version "0.1.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/GordianDziwis/tree-sitter-sparql")))
|
|
|
|
|
|
|
2025-11-08 18:12:22 +00:00
|
|
|
|
(define-public tree-sitter-sql
|
|
|
|
|
|
(let ((commit "7b51ecda191d36b92f5a90a8d1bc3faef1c7b8b8")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"sql" "SQL"
|
|
|
|
|
|
"1lvm4x24ac9r4fy4ghpypyz1q771bafwkjvn0ma5zh82900q7xvr"
|
|
|
|
|
|
(git-version "0.3.11" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/DerekStride/tree-sitter-sql")))
|
|
|
|
|
|
|
2025-11-08 20:37:36 +00:00
|
|
|
|
(define-public tree-sitter-squirrel
|
|
|
|
|
|
(let ((commit "072c969749e66f000dba35a33c387650e203e96e")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"squirrel" "Squirrel"
|
|
|
|
|
|
"01gwmjgbyq7byxs0hsy4kkinijdszq2vh13kqmrjz1pq632nd45l"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-squirrel")))
|
|
|
|
|
|
|
2025-09-06 09:11:37 -07:00
|
|
|
|
(define-public tree-sitter-starlark
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"starlark" "Starlark"
|
|
|
|
|
|
"1qlvk67fqd49138nxl81l4gx833271mns36g3lm884sdmw3225w8"
|
|
|
|
|
|
"1.3.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-starlark"
|
2025-10-30 20:14:32 +00:00
|
|
|
|
#:inputs (list tree-sitter-python)
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: This grammar was built with tree-sitter-python@0.23.5.
|
|
|
|
|
|
;; https://github.com/tree-sitter-grammars/tree-sitter-starlark/issues/9
|
|
|
|
|
|
(substitute* "grammar.js"
|
|
|
|
|
|
(("rules: \\{" rules)
|
|
|
|
|
|
"\
|
|
|
|
|
|
reserved: {global: _ => [],},
|
|
|
|
|
|
supertypes: $ => [
|
|
|
|
|
|
$._simple_statement,
|
|
|
|
|
|
$._compound_statement,
|
|
|
|
|
|
$.expression,
|
|
|
|
|
|
$.primary_expression,
|
|
|
|
|
|
$.pattern,
|
|
|
|
|
|
$.parameter,
|
|
|
|
|
|
],
|
|
|
|
|
|
rules: {
|
|
|
|
|
|
"))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))))
|
2025-09-06 09:11:37 -07:00
|
|
|
|
|
2025-11-08 20:39:45 +00:00
|
|
|
|
(define-public tree-sitter-svelte
|
|
|
|
|
|
(let ((commit "ae5199db47757f785e43a14b332118a5474de1a2")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"svelte" "Svelte"
|
|
|
|
|
|
"0pm5hillspaj4xvqz3j5sxvn78sljw75abjp58xnq8lc5vp62zvh"
|
|
|
|
|
|
(git-version "1.0.2" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-svelte"
|
|
|
|
|
|
#:inputs (list tree-sitter-html))))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-sway
|
|
|
|
|
|
(let ((commit "f9e53e922496dd47208a141fa7ac315625a1874f")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"sway" "Sway"
|
|
|
|
|
|
"1bgr3153wwzgkrnk5w9mv7kskw3ygdxaihrpiljcw0bhciqsnkk8"
|
|
|
|
|
|
(git-version "1.0.0" revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/FuelLabs/tree-sitter-sway"
|
|
|
|
|
|
#:commit commit)))
|
|
|
|
|
|
|
2025-11-08 20:36:13 +00:00
|
|
|
|
(define-public tree-sitter-swift
|
|
|
|
|
|
(let ((commit "7c2f26b5dce12e82ef2bd932a883ef514ae566b8")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"swift" "Swift"
|
|
|
|
|
|
"15rcld2k5h7m4c66msxx7zcmn9bmpqsz907pdr3ikhvcvx3w085g"
|
|
|
|
|
|
(git-version "0.7.1" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/alex-pinkus/tree-sitter-swift"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(delete-file-recursively "test-npm-package")
|
|
|
|
|
|
(delete-file-recursively "test/outline")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2025-10-14 15:01:59 +01:00
|
|
|
|
(define-public tree-sitter-tablegen
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "3e9c4822ab5cdcccf4f8aa9dcd42117f736d51d9")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"tablegen" "LLVM TableGen"
|
|
|
|
|
|
"02anzjxk30323jmbvn2l7fwarq59zix84g7rdcgx8s7z7c5zyagk"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/Flakebi/tree-sitter-tablegen")))
|
|
|
|
|
|
|
2025-10-14 15:02:24 +01:00
|
|
|
|
(define-public tree-sitter-tcl
|
|
|
|
|
|
(let ((version "1.1.0")
|
|
|
|
|
|
(commit "8f11ac7206a54ed11210491cee1e0657e2962c47")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"tcl" "TCL"
|
|
|
|
|
|
"0dkxh6bn0kqn1gbyd5qwkg21fm634mxvas3w4ahv6zr5d8f95c96"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-tcl")))
|
|
|
|
|
|
|
2025-10-14 15:03:24 +01:00
|
|
|
|
(define-public tree-sitter-test
|
|
|
|
|
|
(package
|
|
|
|
|
|
;; Similar to the tree-sitter-query.
|
|
|
|
|
|
(inherit (tree-sitter-grammar
|
|
|
|
|
|
"test" "corpus test"
|
|
|
|
|
|
"0n61mhi2244x3xv1zvwypcih9x65qqgrlz0sz4766h5v68mc58zg"
|
|
|
|
|
|
"0.3.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-test"))
|
|
|
|
|
|
(synopsis "Tree-sitter grammar for Tree-sitter's corpus test files")
|
|
|
|
|
|
(description "This package provides Tree-sitter's grammar for corpus test
|
|
|
|
|
|
files.")))
|
|
|
|
|
|
|
2025-11-08 20:41:11 +00:00
|
|
|
|
(define-public tree-sitter-thrift
|
|
|
|
|
|
(let ((commit "68fd0d80943a828d9e6f49c58a74be1e9ca142cf")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"thrift" "Thrift"
|
|
|
|
|
|
"1ijp9x1vylc8bgplnj9d898qhv04cvrl67qg9kmam33drfrmn1m3"
|
|
|
|
|
|
(git-version "0.5.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-thrift")))
|
|
|
|
|
|
|
2024-03-27 21:00:13 -05:00
|
|
|
|
(define-public tree-sitter-tlaplus
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"tlaplus" "TLA+"
|
2025-04-12 13:12:33 +08:00
|
|
|
|
"11073rjg9n9hnr88193mmb8ff5xlcv6isgqc0g2fbfbl0y820zlk"
|
|
|
|
|
|
"1.5.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tlaplus-community/tree-sitter-tlaplus"
|
|
|
|
|
|
#:commit "1.5.0"))
|
2024-05-12 22:30:25 +02:00
|
|
|
|
|
2025-09-15 20:12:01 -03:00
|
|
|
|
(define-public tree-sitter-toml
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"toml" "TOML"
|
|
|
|
|
|
"1j9fgy1hlsq6xqqnpjl65a2mmydlx91p8ss36k7vyf7284d6bm4v"
|
|
|
|
|
|
"0.7.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-toml"))
|
|
|
|
|
|
|
2025-10-14 15:04:13 +01:00
|
|
|
|
(define-public tree-sitter-twig
|
|
|
|
|
|
(let ((version "0.7.0")
|
|
|
|
|
|
(commit "40d17f0eb990215e12531abe29ee7691d7ca99a5")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"twig" "Twig"
|
|
|
|
|
|
"06a6rfgh9mmzqvs7bp8y92axa4fni4c72s82bdin7j3a0x5mxwi6"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/kaermorchen/tree-sitter-twig"
|
|
|
|
|
|
#:license license:mpl2.0)))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-typescript
|
2024-05-12 22:30:25 +02:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"typescript" "TypeScript and TSX"
|
|
|
|
|
|
"0rlhhqp9dv6y0iljb4bf90d89f07zkfnsrxjb6rvw985ibwpjkh9"
|
|
|
|
|
|
"0.23.2"
|
|
|
|
|
|
#:inputs (list tree-sitter-javascript)
|
|
|
|
|
|
#:grammar-directories '("typescript" "tsx")))
|
2024-05-12 22:37:10 +02:00
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-typst
|
2024-05-12 22:37:10 +02:00
|
|
|
|
(tree-sitter-grammar
|
2025-10-01 09:22:17 +02:00
|
|
|
|
"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)))))
|
|
|
|
|
|
|
2025-10-14 15:04:55 +01:00
|
|
|
|
(define-public tree-sitter-udev
|
|
|
|
|
|
(let ((version "0.2.1")
|
|
|
|
|
|
(commit "2fcb563a4d56a6b8e8c129252325fc6335e4acbf")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"udev" "udev rules"
|
|
|
|
|
|
"0azs4q43bdg0an4f5s8ac7jqxikwi1rnqhl4g0l58ghf2g51i70i"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-udev")))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-ungrammar
|
|
|
|
|
|
;; No releases yet.
|
|
|
|
|
|
(let ((commit "debd26fed283d80456ebafa33a06957b0c52e451")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"ungrammar" "Ungrammar"
|
|
|
|
|
|
"09bbml1v1m6a9s9y9q1p2264ghf3fhb6kca1vj3qm19yq87xrnvy"
|
|
|
|
|
|
(git-version "0.0.2" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-ungrammar"
|
|
|
|
|
|
#:article "an")))
|
2024-05-10 11:26:46 -05:00
|
|
|
|
|
2025-10-14 15:05:30 +01:00
|
|
|
|
(define-public tree-sitter-uxntal
|
|
|
|
|
|
(let ((version "1.0.0")
|
|
|
|
|
|
(commit "bd6cc0cf5c97bb25ee65b39132768d1a1f70ffa9")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"uxntal" "Uxntal"
|
|
|
|
|
|
"0sbwwr6d6yiq0ddhjkcafi0k61rcp6l1fa6vpmkykr3kh7znq9pn"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-uxntal")))
|
|
|
|
|
|
|
2025-11-08 20:44:13 +00:00
|
|
|
|
(define-public tree-sitter-v
|
|
|
|
|
|
(let ((commit "532bebd50742ef15949bdd67c36d46697c847628")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"v" "V"
|
|
|
|
|
|
"1chkirgmbfrjy9p81qm5gi5qdqf9az98zfv9zgmd0q91gvkdf6ll"
|
|
|
|
|
|
(git-version "0.0.6" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/vlang/v-analyzer"
|
|
|
|
|
|
#:grammar-directories '("tree_sitter_v")
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(delete-file-recursively "src")
|
|
|
|
|
|
(delete-file-recursively "editors")
|
|
|
|
|
|
(rename-file "tree_sitter_v/package.json" "package.json")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
|
|
|
|
|
|
2024-05-10 11:26:46 -05:00
|
|
|
|
(define-public tree-sitter-verilog
|
2025-04-12 13:13:29 +08:00
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"verilog" "Verilog"
|
|
|
|
|
|
"1mk8waij5lbj1wbayvqs0cxk003dssdic13h14gd5fi1ckfvflja"
|
|
|
|
|
|
"1.0.3"))
|
2024-05-10 11:26:47 -05:00
|
|
|
|
|
|
|
|
|
|
(define-public tree-sitter-vhdl
|
|
|
|
|
|
(let ((version "0.1.1") ; In package.json, but untagged
|
|
|
|
|
|
(commit "a3b2d84990527c7f8f4ae219c332c00c33d2d8e5")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"vhdl" "VHDL"
|
|
|
|
|
|
"0gz2b0qg1jzi2q6wgj6k6g35kmni3pqglq4f5kblkxx909463n8a"
|
|
|
|
|
|
(git-version version revision commit)
|
|
|
|
|
|
#:repository-url "https://github.com/alemuller/tree-sitter-vhdl"
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:get-cleanup-snippet
|
2025-11-08 18:10:42 +00:00
|
|
|
|
(lambda (grammar-directories)
|
2024-05-10 11:26:47 -05:00
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
2025-04-12 13:13:44 +08:00
|
|
|
|
;; FIXME: Language not found.
|
|
|
|
|
|
(delete-file-recursively "test/highlight")
|
2024-05-10 11:26:47 -05:00
|
|
|
|
;; Fix a query error in the highlight.scm query test. This would be
|
|
|
|
|
|
;; easier with a patch, but this works too, and we still get to use
|
|
|
|
|
|
;; tree-sitter-grammar. The fix is taken from here:
|
|
|
|
|
|
;; https://github.com/n8tlarsen/tree-sitter-vhdl/commit/dabf157c6bb7220d72d3ceba0ce1abd90bf62187
|
|
|
|
|
|
;; This is a documented issue that has not been resolved for nearly 2
|
|
|
|
|
|
;; years.
|
|
|
|
|
|
;; https://github.com/alemuller/tree-sitter-vhdl/issues/2
|
|
|
|
|
|
(substitute* "queries/highlights.scm"
|
|
|
|
|
|
(("\\(integer_decimal\n") "(integer_decimal)\n")
|
|
|
|
|
|
(("\\(integer\\)") "")
|
2025-11-08 18:10:42 +00:00
|
|
|
|
(("\"0\")") "\"0\""))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
2025-03-12 19:10:04 +00:00
|
|
|
|
|
2025-09-20 19:55:19 -07:00
|
|
|
|
(define-public tree-sitter-vim
|
|
|
|
|
|
(tree-sitter-grammar "vim"
|
|
|
|
|
|
"Vimscript"
|
|
|
|
|
|
"0wr0sijh3vpka0gysbf0ki8zkvwfg8r5lvhi3xbwmkbyszjzgrqw"
|
|
|
|
|
|
"0.7.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-vim"))
|
|
|
|
|
|
|
2025-09-28 10:15:12 -07:00
|
|
|
|
(define-public tree-sitter-vimdoc
|
|
|
|
|
|
(tree-sitter-grammar "vimdoc"
|
|
|
|
|
|
"Vimdoc"
|
|
|
|
|
|
"1gi16hmh4vk9hdfkg9kvwxd7m4rq8r6vymk7fgxqqrbyrks9f0mw"
|
|
|
|
|
|
"4.0.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/neovim/tree-sitter-vimdoc"
|
|
|
|
|
|
#:license license:expat))
|
|
|
|
|
|
|
2025-11-08 20:44:53 +00:00
|
|
|
|
(define-public tree-sitter-vue
|
|
|
|
|
|
(let ((commit "22bdfa6c9fc0f5ffa44c6e938ec46869ac8a99ff")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"vue" "Vue.js"
|
|
|
|
|
|
"1mi18x54g8rxz98jrpzh2gi7ii93sq743aws9i7qc139jas98y9f"
|
|
|
|
|
|
(git-version "0.1.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-vue"
|
|
|
|
|
|
#:inputs (list tree-sitter-html))))
|
|
|
|
|
|
|
2025-11-08 20:46:20 +00:00
|
|
|
|
(define-public tree-sitter-wast
|
|
|
|
|
|
(let ((commit "2ca28a9f9d709847bf7a3de0942a84e912f59088")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"wast" "WebAssembly"
|
|
|
|
|
|
"02v08hs9wirdzfx9a7c3kpn0cpc9i867pw28qka0fid9q537hnbb"
|
|
|
|
|
|
(git-version "0.0.0" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/wasm-lsp/tree-sitter-wasm"
|
|
|
|
|
|
#:grammar-directories '("wast" "wat")
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME
|
|
|
|
|
|
(substitute* '("wat/grammar.js" "wast/grammar.js")
|
|
|
|
|
|
(("u\\{\\[0-9a-fA-F\\]\\+\\}")
|
|
|
|
|
|
"u\\{[0-9a-fA-F]+\\}"))
|
|
|
|
|
|
(for-each (lambda (lang)
|
|
|
|
|
|
(with-directory-excursion lang
|
|
|
|
|
|
;; incompatible type of tests
|
|
|
|
|
|
(delete-file-recursively "corpus")
|
|
|
|
|
|
(delete-file "index.js")
|
|
|
|
|
|
(delete-file "src/binding.cc")))
|
|
|
|
|
|
'("wat" "wast"))
|
|
|
|
|
|
(for-each delete-file '("wat/tree-sitter-wat.wasm"
|
|
|
|
|
|
"wast/tree-sitter-wast.wasm"))
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))
|
|
|
|
|
|
;; Apache-2.0 with LLVM-exception
|
|
|
|
|
|
#:license license:asl2.0)))
|
|
|
|
|
|
|
2025-11-08 20:47:54 +00:00
|
|
|
|
(define-public tree-sitter-wgsl
|
|
|
|
|
|
(let ((commit "809fe422b879021afb65a1899093fa87bc6e02df")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"wgsl" "WebGPU Shading Language (WGSL)"
|
|
|
|
|
|
"05a7yas33y4jfj1ac1n49xll0kmpsic4y5hffqavhm2zffpwmqbc"
|
|
|
|
|
|
(git-version "0.0.9" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url "https://github.com/gpuweb/tree-sitter-wgsl"
|
|
|
|
|
|
#:get-cleanup-snippet
|
|
|
|
|
|
(lambda (grammar-directories)
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
;; FIXME: Invalid node type const_assert_statement.
|
|
|
|
|
|
(delete-file "queries/highlights.scm")
|
|
|
|
|
|
#$(tree-sitter-delete-generated-files grammar-directories)))
|
|
|
|
|
|
#:license license:w3c)))
|
|
|
|
|
|
|
2025-10-14 15:06:19 +01:00
|
|
|
|
(define-public tree-sitter-xcompose
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"xcompose" "XCompose"
|
|
|
|
|
|
"03c0ycwrxafxvbhzi6pzcq8md40frh7ybwkhcsd4s1hmg6arwpyx"
|
|
|
|
|
|
"0.4.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-xcompose"
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2025-10-14 15:07:12 +01:00
|
|
|
|
(define-public tree-sitter-xml
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"xml" "XML and DTD"
|
|
|
|
|
|
"0ghfjjhw1rvd98xd1c3mq3bffrl3wg5dmp22ksb0659g76qi0hpz"
|
|
|
|
|
|
"0.7.0"
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-xml"
|
|
|
|
|
|
#:grammar-directories '("xml" "dtd")
|
|
|
|
|
|
#:article "an"))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-yaml
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"yaml" "YAML"
|
|
|
|
|
|
"0z5fz9hiafzapi0ijhyz8np6rksq6c1pb16xv1vhnlfh75rg6zyv"
|
|
|
|
|
|
"0.7.0"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-yaml"))
|
|
|
|
|
|
|
2025-11-08 20:41:44 +00:00
|
|
|
|
(define-public tree-sitter-yuck
|
|
|
|
|
|
(let ((commit "e877f6ade4b77d5ef8787075141053631ba12318")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"yuck" "Yuck"
|
|
|
|
|
|
"00l009xmjpr2fgrbibhgkymk1kw2al2m8zi93civyjxwpbzkbiwp"
|
|
|
|
|
|
(git-version "0.0.2" revision commit)
|
|
|
|
|
|
#:commit commit
|
|
|
|
|
|
#:repository-url
|
|
|
|
|
|
"https://github.com/tree-sitter-grammars/tree-sitter-yuck")))
|
|
|
|
|
|
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(define-public tree-sitter-zig
|
|
|
|
|
|
(tree-sitter-grammar
|
|
|
|
|
|
"zig" "Zig"
|
|
|
|
|
|
"1r9p7hhnc1zagwxzdxhs4p6rnqs9naddkgbfymi6pbw6cyg2ccwl"
|
|
|
|
|
|
"1.1.2"
|
|
|
|
|
|
#:repository-url "https://github.com/tree-sitter-grammars/tree-sitter-zig"))
|
|
|
|
|
|
|
|
|
|
|
|
;;; Python Bindings
|
|
|
|
|
|
|
|
|
|
|
|
(define-public python-tree-sitter
|
2025-09-28 10:49:07 -07:00
|
|
|
|
(package
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(name "python-tree-sitter")
|
2025-10-02 23:15:40 +01:00
|
|
|
|
(version "0.25.2")
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/tree-sitter/py-tree-sitter")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2025-10-02 23:15:40 +01:00
|
|
|
|
(base32 "15j6gxc6ps6zdrmqfmmz22p7p5gz37cyihzzwbjggy7mc4vwm5fj"))))
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:test-backend #~'unittest
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'set-tree-sitter-lib-path
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(let ((tree-sitter #$(this-package-input "tree-sitter")))
|
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
|
((".*\"tree_sitter/core.*") "")
|
|
|
|
|
|
(("( *)sources=" all tabs)
|
|
|
|
|
|
(string-append
|
|
|
|
|
|
tabs "library_dirs=[\"" tree-sitter "/lib\"],\n"
|
|
|
|
|
|
tabs "libraries=[\"tree-sitter\"],\n"
|
|
|
|
|
|
all))
|
|
|
|
|
|
(("include_dirs=\\[" all)
|
2025-10-02 23:15:40 +01:00
|
|
|
|
(string-append all "\"" tree-sitter "/include\","))))))
|
2025-10-01 09:22:17 +02:00
|
|
|
|
;; XXX: See https://codeberg.org/guix/guix/issues/2108
|
|
|
|
|
|
(add-before 'check 'remove-uninstalled-package
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(delete-file-recursively "tree_sitter"))))))
|
|
|
|
|
|
(inputs (list tree-sitter))
|
|
|
|
|
|
(native-inputs
|
2025-10-02 23:15:40 +01:00
|
|
|
|
(list python-setuptools
|
|
|
|
|
|
(python-tree-sitter-grammar tree-sitter-html #:tests? #f)
|
|
|
|
|
|
(python-tree-sitter-grammar tree-sitter-javascript #:tests? #f)
|
|
|
|
|
|
(python-tree-sitter-grammar tree-sitter-json #:tests? #f)
|
|
|
|
|
|
(python-tree-sitter-grammar tree-sitter-python #:tests? #f)
|
|
|
|
|
|
(python-tree-sitter-grammar tree-sitter-rust #:tests? #f)))
|
2025-10-01 09:22:17 +02:00
|
|
|
|
(home-page "https://github.com/tree-sitter/py-tree-sitter")
|
|
|
|
|
|
(synopsis "Python bindings to the Tree-sitter parsing library")
|
|
|
|
|
|
(description "This package provides Python bindings to the
|
|
|
|
|
|
Tree-sitter parsing library.")
|
|
|
|
|
|
(license license:expat)))
|
2025-09-28 10:49:07 -07:00
|
|
|
|
|
2025-10-04 10:57:25 +01:00
|
|
|
|
(define* (python-tree-sitter-grammar pkg #:key (tests? #t))
|
2025-09-22 18:17:26 +01:00
|
|
|
|
"Returns a package for Python bindings of a Tree-sitter grammar. PKG is a
|
|
|
|
|
|
package for a Tree-sitter grammar; its name will be used with python- prefix
|
|
|
|
|
|
to generate the package name. When TESTS? is true, tests are enabled."
|
|
|
|
|
|
(package
|
|
|
|
|
|
(inherit pkg)
|
|
|
|
|
|
(name (string-append "python-" (package-name pkg)))
|
|
|
|
|
|
(source (origin (inherit (package-source pkg))
|
|
|
|
|
|
(snippet #f) (patches '())))
|
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
|
(arguments (list #:tests? tests?))
|
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
|
(native-inputs (append (if tests?
|
|
|
|
|
|
(list python-pytest
|
|
|
|
|
|
python-tree-sitter)
|
|
|
|
|
|
'())
|
2025-10-04 10:57:25 +01:00
|
|
|
|
(list python-setuptools)))
|
2025-10-01 09:23:38 +02:00
|
|
|
|
(description
|
|
|
|
|
|
(string-append (package-description pkg)
|
|
|
|
|
|
(P_ "\n\nThis variant provides Python bindings.")))))
|
2025-09-23 20:19:33 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public python-tree-sitter-html
|
|
|
|
|
|
(python-tree-sitter-grammar
|
2025-10-03 11:27:53 +01:00
|
|
|
|
tree-sitter-html))
|
2025-09-22 18:19:03 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public python-tree-sitter-javascript
|
|
|
|
|
|
(python-tree-sitter-grammar
|
2025-10-03 11:28:29 +01:00
|
|
|
|
tree-sitter-javascript))
|
2025-09-22 18:19:21 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public python-tree-sitter-json
|
|
|
|
|
|
(python-tree-sitter-grammar
|
2025-10-03 11:28:58 +01:00
|
|
|
|
tree-sitter-json))
|
2025-09-22 18:19:38 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public python-tree-sitter-python
|
|
|
|
|
|
(python-tree-sitter-grammar
|
2025-10-03 11:29:26 +01:00
|
|
|
|
tree-sitter-python))
|
2025-09-22 18:20:02 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public python-tree-sitter-rust
|
|
|
|
|
|
(python-tree-sitter-grammar
|
2025-10-03 11:29:52 +01:00
|
|
|
|
tree-sitter-rust))
|