Skip to content

fix doc heredoc highlighting#533

Open
iDavi wants to merge 1 commit into
elixir-lsp:masterfrom
iDavi:fix-doc-heredoc-highlighting
Open

fix doc heredoc highlighting#533
iDavi wants to merge 1 commit into
elixir-lsp:masterfrom
iDavi:fix-doc-heredoc-highlighting

Conversation

@iDavi

@iDavi iDavi commented Jul 6, 2026

Copy link
Copy Markdown

Fixes #509

Documentation heredocs should only close when the heredoc terminator appears on its own line. Previously, the TextMate grammar matched inline triple quotes such as Bar""" as the end of an @doc or @moduledoc heredoc, causing the rest of the document to be highlighted incorrectly.

This updates the @doc, @moduledoc, and @typedoc heredoc end patterns so they only match standalone terminator lines.

Before
image

After
image

Testing

  • npm run lint
  • npm run compile
  • npm test
  • Manually verified the issue reproduction in VS Code with the extension loaded locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant