elixir-editors / elixir-editors/vim-elixir

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

Open
#555 2 comments 5 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
1.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

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.:

```


```

this will trigger the same problems.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.