Skip to content

~H sigil syntax highlighting breaks on < and > inside embedded elixir tags #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codeanpeace opened this issue Jan 11, 2023 · 2 comments · Fixed by #570
Closed

~H sigil syntax highlighting breaks on < and > inside embedded elixir tags #566

codeanpeace opened this issue Jan 11, 2023 · 2 comments · Fixed by #570

Comments

@codeanpeace
Copy link

Working theory is that the syntax highlighting for Elixir (.ex) files is not looking for the % sign to determine a matching closing tag for embedded Elixir opening tags. This means a > character would prematurely close the embedded tag while a < character would appear to open a tag within a tag.

Actual

image
image

Expected

<%= if Enum.count(@assets) > 1 do %>
<%= for asset <- @assets do %>
@ghost
Copy link

ghost commented Oct 12, 2023

Couldn't reproduce it @codeanpeace , here's how it looks with my configuration:

image

Do you have more details? Perhaps, which version of Vim are you using and which version of vim-elixir are you running?

@ghost
Copy link

ghost commented Oct 13, 2023

Missed the part about the ~H sigil. (The most important one. 😅)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant