]> git.eshelyaron.com Git - emacs.git/commit
Avoid duplication in defining tree-sitter grammar sources.
authorJuri Linkov <juri@linkov.net>
Sun, 4 May 2025 17:50:40 +0000 (20:50 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 08:49:42 +0000 (10:49 +0200)
commit25c4a469e420fd9ca44d3db5211bce9893ee754b
treeab87651d0d947aa6aaaf7c2904d898afa11497cd
parent4e38fecc45bc049068b1be2793cd7ad67f809365
Avoid duplication in defining tree-sitter grammar sources.

* lisp/progmodes/php-ts-mode.el: Require 'html-ts-mode'.
(php-ts-mode--language-source-alist): Remove duplicate source info
for html, css, javascript, jsdoc.
(php-ts-mode-install-parsers): Install pre-defined grammars.
(php-ts-mode): Move 'require' to the top.

* lisp/textmodes/mhtml-ts-mode.el
(mhtml-ts-mode--language-source-alist): Remove variable
since 'treesit-language-source-alist' is pre-filled by
requiring 'html-ts-mode', 'css-mode', 'js'.
(mhtml-ts-mode-install-parsers): Install pre-defined grammars.

* test/infra/Dockerfile.emba: Remove 'mhtml-ts-mode'
that doesn't define own grammars.

(cherry picked from commit 815dea7b59392d83ca8f9e98d1569484aea605ad)
lisp/progmodes/php-ts-mode.el
lisp/textmodes/mhtml-ts-mode.el
test/infra/Dockerfile.emba