Open TheArrowsmith opened 2 years ago
@TheArrowsmith , couldn't find any tag that resembles such syntax in the EEx documentation: EEx/tags.
Is this from a previous version?
No, it's from the current version of HEEx, and was added in LiveView 0.18 I think.
@TheArrowsmith , thanks for your response.
I'm interested in contributing to the project but I'm still familiarizing myself with the codebase and Elixir itself 😅.
As for now, I can only offer you a hacky work-around, it would involve adding the following to your runtime path in an after directory (i.e. after/ftplugin/heex.vim
):
syn region eelixirExpression matchgroup=eelixirDelimiter start="<." end="/>" contains=@elixirTop containedin=ALLBUT,@eelixirRegions keepend
Hope it helps, although there's a high possibilty that it may not work as expected, so please let me know 🙂 .
@samanera Please let me know if I can help you get acquainted at all. I’m on the official Elixir Discord if you’d like to get in touch. I’ve been fairly absent from this project as I haven’t used Elixir in many years, but I have a pretty good understanding of most of the project and would like to support any motivated contributors
The title more or less says it all. When I'm editing a file where
filetype=eelixir
, e.g..eex
or.heex
file, then autoindentation works correctly if, say, I add anif
statement:But if I try to add a "dot" tag - not sure of the correct terminology, I'm talking about tags that call an Elixir function and start with
<.
- then the autoindent doesn't work:Is there a way to fix this?