elixir-editors / elixir-editors/vim-elixir
heex template highlighting breaks when there's a space at the end of an attribute
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Ruby
- Sterne
- 1.3k
- Forks
- 154
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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):
And this is what it should look like:
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem in reinem Vim nur mit dem vim-elixir-Plugin, unter Verwendung eines Attributs mit und ohne nachgestelltes Leerzeichen und des eingebetteten Elixir-Beispiels. Beginne am Einstiegspunkt für die Syntaxhervorhebung des Plugins; abgeschlossen ist die Aufgabe, wenn das schließende div und die Attribute in beiden Fällen die erwartete Hervorhebung beibehalten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- elixir, vim
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100