fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Elixir LiveView <.tag> syntax #1269

Closed marcinkoziej closed 7 months ago

marcinkoziej commented 1 year ago

Hi!

Struggling for second hour to make <.tagsstartingwithadot> be recognized as tags, and closed properly. Could you please point me to the right way to do this? Tried modyfing web-mode-(start-)tag-regexp as well as web-mode-engine-* for elixir language, but without results.

andyleclair commented 1 year ago

I am also having this issue. I see this issue was closed back in Dec. '22, but what I'm seeing looks like this

image

I can see that the <. part is highlighted but the formatting looks wrong.

For example, this is what that file looks like in VS code

image

fxbois commented 10 months ago

@andyleclair could you a post a link where this synthax is explained please

andyleclair commented 10 months ago

https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#sigil_H/2

andyleclair commented 10 months ago

The general docs for Phoenix.Component may be helpful to you https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#content

fxbois commented 7 months ago

I may reverse if it triggers bugs