Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #333.
Python triple-quoted strings lose highlighting after the first line because the code viewer splits Highlight.js HTML into table rows. Preserve all active spans across row boundaries, including nested scopes, and replace the C-comment-only workaround.
Adds regression coverage for both triple-quote styles, multiline comments, nested spans, escaped text, CRLF, blank lines, and trailing newlines. A Python Electron fixture checks continuation-line colors, closing delimiters, visible rows, and line numbers.
Validation:
npm run lint— passed.npm test— 419 tests across 62 files passed; webpack development build passed. Repeated on current master in an isolated worktree.npm run build— passed.python-multilineElectron smoke — passed.LEPTON_RENDER_FIXTURE=python-multiline npm startusing isolated config/user data. Confirmed visible Lepton UI, consistent string highlighting across lines, and intact blank lines/line numbers. Inspected DOM/computed colors and captured the running renderer.Screenshot from the local fixture launch: