aboutsummaryrefslogtreecommitdiffstats
path: root/exec
diff options
context:
space:
mode:
authorYuan Fu2024-09-10 19:29:31 -0700
committerYuan Fu2024-09-10 20:07:20 -0700
commitc5925b6ba5f7821ea72ebd26b76e405cecaabb8e (patch)
tree3032deaf7f73672da44e7703aa945e3d24d079cd /exec
parentc3383be5f043a1efe6f9650e8d0a6d4616ca4eeb (diff)
downloademacs-c5925b6ba5f7821ea72ebd26b76e405cecaabb8e.tar.gz
emacs-c5925b6ba5f7821ea72ebd26b76e405cecaabb8e.zip
Fix heex-ts-mode indentation following previews elixir-mode change
After the previous fix in elixir-ts-mode (0fd259d166c), embedded heex code are indented like this: 1 defmodule Foo do 2 def foo(assigns) do 3 ~H""" 4 <span> 5 text 6 </span> 7 """ 8 end 9 end The indent rule finds the beginning of the parent heex node, and uses the indentation of that line as anchor with an offset of 0. Previously the parent heex node (fragment) starts at EOL of line 3; after the previous commit, it now starts at BOL of line 4. To fix the indentation, I changed the anchor to the beginning of the elixir (rather than heex) node at point, which is at EOL at line 3. * lisp/progmodes/heex-ts-mode.el (heex-ts--indent-rules): Use the elixir node that contains the heex code as the anchor, instead of the heex root node.
Diffstat (limited to 'exec')
0 files changed, 0 insertions, 0 deletions