Skip to content

Autoindent not working correctly for <.dot> style HTML tags/components in eelixir #559

@TheArrowsmith

Description

@TheArrowsmith

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 an if statement:

# I type this line:
<%= if condition do %>

# Still in insert mode, I hit Enter, and two spaces are added, with the cursor ending up at the X:
<%= if condition do %>
  X

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:

# After typing the first line and hitting Return, no new indentation is added and the cursor is at X:
<.form {some_attributes}>
X

Is there a way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions