]> git.eshelyaron.com Git - emacs.git/commit
Avoid adding duplicate items to 'treesit-language-source-alist'.
authorJuri Linkov <juri@linkov.net>
Thu, 1 May 2025 17:55:33 +0000 (20:55 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 06:54:46 +0000 (08:54 +0200)
commit8603c023d9b9980a75798ecc4f25f1fe07c0b8a0
tree179121ada48df6ba513c4e50ba4f0f071f91617e
parentd92abb81974c8db287bd923073d9918d256138dd
Avoid adding duplicate items to 'treesit-language-source-alist'.

* lisp/textmodes/mhtml-ts-mode.el:
* lisp/progmodes/php-ts-mode.el:
Use 'add-to-list' on items in language-source-alist
that should check for duplicate items.

* test/infra/Dockerfile.emba: Move multi-language mhtml-ts-mode and
php-ts-mode to the end to give their dependent grammars a lower priority.

* test/lisp/progmodes/js-tests.el (js-ts-mode-test-indentation):
Skip the test when 'jsdoc' is missing since 'js-ts-mode' depends
on the 'jsdoc' grammar.

(cherry picked from commit 5684a3808677fb701833c83325cd3bc8de475561)
lisp/progmodes/php-ts-mode.el
lisp/textmodes/mhtml-ts-mode.el
test/infra/Dockerfile.emba
test/lisp/progmodes/js-tests.el