Skip to content
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

Improvements for Elixir .heex #1215

Closed
aparkerdavid opened this issue Oct 18, 2021 · 6 comments
Closed

Improvements for Elixir .heex #1215

aparkerdavid opened this issue Oct 18, 2021 · 6 comments

Comments

@aparkerdavid
Copy link

In a heex template, web-mode should be able to recognize tags with leading periods, e.g. <.some_component> , </.some_component>, <.some_component />.

Inside of tags, curly braces should be handled as EEX code delimiters. e.g. <div class={some_function(@something)}>

@Cgboal
Copy link

Cgboal commented Dec 31, 2021

I would also like this feature, it makes working with heex filex very difficult without it, especially in cases where components are heavily used such as here:

image

Syntax highlighting doesn't work, nor does formatting.

I don't know elisp (I know other lisps though), but I would be happy to take a look at implementing what's required to make this work if you can point me in the right direction.

@vfsoraki
Copy link

I also want this.

For the time being, is there anyway to make it consider . and : legit characters for tag names?

@knoebber
Copy link

I'd also appreciate this feature 👍 Also, thank you web-mode maintainers for work thus far!

@fxbois
Copy link
Owner

fxbois commented May 24, 2022

@Cgboal could you provide your example on gist please

@knoebber
Copy link

@jsmestad
Copy link
Contributor

While this is being worked on, here is an option to create a derived mode for .heex files that uses tree-sitter.

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

No branches or pull requests

6 participants