diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 47561ca9bab..b1c58ad50a7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -10610,7 +10610,8 @@ with Emacs.") (list #:tests? #f ;the testing framework, test-hdl, requires network #:test-command #~(list "make"))) - (propagated-inputs (list tree-sitter-vhdl)) + ;; TODO: Switch to tree-sitter-vhdl once supported. + (propagated-inputs (list tree-sitter-vhdl-0)) (home-page "https://github.com/gmlarumbe/vhdl-ts-mode/") (synopsis "VHDL Tree-sitter mode") (description diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 68eae420c45..f5cd32c94e8 100644 --- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2025 Nguyễn Gia Phong ;;; Copyright © 2025 Evgenii Klimov ;;; Copyright © 2025 Felipe Silva +;;; Copyright © 2026 Cayetano Santos ;;; ;;; This file is part of GNU Guix. ;;; @@ -2016,6 +2017,17 @@ files."))) "1.0.3")) (define-public tree-sitter-vhdl + (tree-sitter-grammar + "vhdl" "VHDL" + "1q3phfp8wa7c0ava5488s6vpkvk5n5y8ilglg23h9lpygarx7fji" + "1.3.1" + #:repository-url "https://github.com/jpt13653903/tree-sitter-vhdl")) + +;;; TODO: Remove this package when emacs-vhdl-ts-mode switches to jpt13653903. +;;; We keep old one as alemuller is still required by emacs-vhdl-ts-mode. +;;; See: +;;; https://github.com/gmlarumbe/vhdl-ts-mode/issues/17 +(define-public tree-sitter-vhdl-0 (let ((version "0.1.1") ; In package.json, but untagged (commit "a3b2d84990527c7f8f4ae219c332c00c33d2d8e5") (revision "0"))