Skip to content

heex template highlighting breaks when there's a space at the end of an attribute #555

Open
@clemensm

Description

@clemensm

Hi everyone

I've tested this on a "raw" vim with only the vim-elixir plugin, to make sure that no other plugins are interfering.

The bug is that adding a single space at the end of an attribute breaks the highlighting, as can bee seen here (the closing div is the wrong color):

broken

And this is what it should look like:

correct

This is obviously not an issue for the given example, but I get the same error when I have more complicated attributes that embed some elixir code, like e.g.:

<div class={"some classes #{if @value, do: "another-class"}"}>

this will trigger the same problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions