Skip to content

Fix syntax highlighting in inline diffs#405

Merged
levivilet merged 1 commit into
mainfrom
fix/inline-diff-syntax-highlighting
Jul 19, 2026
Merged

Fix syntax highlighting in inline diffs#405
levivilet merged 1 commit into
mainfrom
fix/inline-diff-syntax-highlighting

Conversation

@levivilet

Copy link
Copy Markdown
Contributor

Summary

  • pass tokenized left and right lines to the inline diff renderer
  • render deletion rows from left-side tokens and context/insertion rows from right-side tokens
  • preserve the plain-text fallback when tokenization is unavailable

Verification

  • npm test (110 suites, 322 tests)
  • npm run type-check
  • npm run lint
  • npm run build
  • integrated LVCE editor check: YAML source-control diff rendered 36 token spans with computed theme colors

@levivilet
levivilet enabled auto-merge (squash) July 19, 2026 16:11
@levivilet
levivilet force-pushed the fix/inline-diff-syntax-highlighting branch from 3b81077 to 4bc651f Compare July 19, 2026 16:26
@levivilet
levivilet merged commit 0b95967 into main Jul 19, 2026
3 checks passed
@levivilet
levivilet deleted the fix/inline-diff-syntax-highlighting branch July 19, 2026 16:31
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.

1 participant