Skip to content

highlighter: prevent empty range style leaks#2457

Merged
madcodelife merged 1 commit into
longbridge:mainfrom
BeratHundurel:codex/fix-markdown-text-color
Jun 11, 2026
Merged

highlighter: prevent empty range style leaks#2457
madcodelife merged 1 commit into
longbridge:mainfrom
BeratHundurel:codex/fix-markdown-text-color

Conversation

@BeratHundurel

Copy link
Copy Markdown
Contributor

Summary

  • Ignore empty syntax highlight ranges before style merging
  • Filter empty ranges in unique_styles so zero-length captures cannot remain active after their position
  • Add a focused regression case covering empty ranges leaking styles into later spans

Screenshots

Before

before

After

after

@madcodelife

Copy link
Copy Markdown
Member

Thank you!

@madcodelife madcodelife merged commit e51dbf8 into longbridge:main Jun 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants