wkirschbaum / elixir-ts-mode

Elixir mode using Treesitter for fontification, navigation and indentation
GNU General Public License v3.0
62 stars 11 forks source link

HEEx escaped double quote error #44

Open angrycandy opened 9 months ago

angrycandy commented 9 months ago
defmodule AppWeb.Live.Components.FooBar do
  def render(assigns) do
    ~H"""
      <div>
        <%= gettext("At %{foo_bar}", %{foo_bar: @foo.bar}) %>
      </div>
    """
  end
end
defmodule AppWeb.Live.Components.FooBar do
  def render(assigns) do
    ~H"""
      <div>
        <%= gettext("At \"%{foo_bar}\"", %{foo_bar: @foo.bar}) %>
      </div>
    """
  end
end
redisplay--pre-redisplay-functions: (treesit-range-invalid "RANGE is either overlapping, out-of-order or out-of-range" ((74 . 75) (78 . 115) (74 . 75) (117 . 127) (74 . 75) (129 . 174)))
wkirschbaum commented 9 months ago

@angrycandy emacs version so that I can test?

angrycandy commented 9 months ago

@angrycandy emacs version so that I can test?

From https://emacsformacosx.com

GNU Emacs 29.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2024-01-18

wkirschbaum commented 9 months ago

I suspect that might be a issue with treesit.el, but will have to look.