fix(:lang): missing grammar recipes

I removed the grammar recipes in 3b58741 to avoid redundancy with the
upstream recipes, but didn't realize that those upstream recipes weren't
added until Emacs 31, so users on 30 and older would get errors when
trying to install any missing grammars.

This also establishes a hard dependency between :lang (php +tree-sitter)
and :lang ({javascript,web} +tree-sitter).

Amend: 3b58741522
This commit is contained in:
Henrik Lissner 2025-08-31 12:47:50 +02:00
parent d9fd5cb8f3
commit d545fccf47
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
21 changed files with 107 additions and 58 deletions

View file

@ -20,7 +20,9 @@
python-indent-guess-indent-offset-verbose nil)
(when (modulep! +tree-sitter)
(set-tree-sitter! 'python-mode 'python-ts-mode 'python))
(set-tree-sitter! 'python-mode 'python-ts-mode
'((python :url "https://github.com/tree-sitter/tree-sitter-python"
:commit "bffb65a8cfe4e46290331dfef0dbf0ef3679de11"))))
:config
;; HACK: `python-base-mode' (and `python-ts-mode') don't exist on pre-29