Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

HEEx heredoc wrapped in function breaks further highlighting #77

@zolrath

Description

@zolrath

Hello!
When using a HEEx heredoc within a function the """) section causes further syntax highlighting to break.

  test "breaks syntax highlighting" do
    assigns = %{}
    example = "Hello"

    assert example =~ "Hello"

    component =
      rendered_to_string(~H"""
      <.thing type="test" />
      """)

    assert component =~ "This should be green"
  end

Seems like it works properly on GitHub, here's a screenshot from VS Code!
 image

Thanks for the great work on Lexical!

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