]> git.eshelyaron.com Git - emacs.git/commit
Fix treesit-langauge-at-point for elixir-ts-mode.
authorWilhelm H Kirschbaum <wkirschbaum@gmail.com>
Tue, 26 Sep 2023 19:32:40 +0000 (21:32 +0200)
committerYuan Fu <casouri@gmail.com>
Wed, 27 Sep 2023 06:23:54 +0000 (23:23 -0700)
commit1f850d8d7b6f4ba43ed297f85440c973ad690bfd
tree9395642e3e87b6abbd080481e6232b17020abd1d
parent07ede5e92a58ac3739a0e5b0c9025bee2f75c5ba
Fix treesit-langauge-at-point for elixir-ts-mode.

The treesit-language-at-point function is only suppose to query the
host language.

* lisp/progmodes/elixir-ts-mode.el
(elixir-ts--indent-rules): Add missing rules.
(elixir-ts--treesit-language-at-point): Update function to only query
the host language.
* test/lisp/progmodes/elixir-ts-mode-resources/indent.erts: Add test
for inline docs.
lisp/progmodes/elixir-ts-mode.el
test/lisp/progmodes/elixir-ts-mode-resources/indent.erts