Repository navigation
Pine editor: One Dark Pro / Dracula / GitHub themes, finer colours, a status bar, an 8px editable code size - #15
Merged
godzillacode0000 merged 4 commits intoOct 31, 2026
Conversation
…olours, a status bar The Pine editor gets the three most installed editor themes, each with its light sibling (One Light, Alucard, GitHub Light), plus Console, the editor as it was. A theme re-defines the editor's own tokens, so the caret, gutter, line tint and selection follow it. refine() is a second pass over the tokenizer. It colours calls, types, literals, built-in series, constants, named arguments and operators apart, and the texts still join back to every line. A status bar under the code shows the Pine version, the caret's line and column, A-/A+ for the code size (starting at the operator's 6.25px) and the theme picker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
PR Lens noted on #14 that counting "checkHealth(" also matches the function's definition. The old count did too (definition + 3 calls = 4), so nothing got weaker. The test now counts the calls alone and says what it checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
… 8px by default The footer shows A− 8px A+. Type any size from 6 to 24px (quarter pixels, kept to the range). A−/A+ step by 1px, and from the editor Ctrl+= / Ctrl+− change it and Ctrl+0 resets to 8px. The gutter and the coloured copy follow the size, so the line numbers stay on their lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
Architecture Data flow No data-flow sequence changed in this PR. Review 1 finding on the diff · reviewed
|
PR Lens noted on #15: with no editor theme, refine()'s literal, constant and operator classes fell back to the number and muted colours. Before refine() they were keyword-coloured, built-in-coloured and plain. Each finer class now falls back to the colour its token had, so Console looks as it always did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
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.
Three commits on top of
main(8995746).The operator asked for the Pine editor (the
</>button) to look like a real code editor, in the most popular style, with a code size that can be read and changed (8px by default).1. Editor themes (
8f8f037)refine()inscript-highlight.jsis a second pass over the unchanged tokenizer. It colours these apart: calls, types, literals, built-in series, constants, named arguments and operators. The texts still join back to every line, which is checked against the repo's Pine, partial lines and edge cases.//@version),Ln/Coland the selection size, the code size, and the theme picker.2. The code size (
48ef267)3. A test fix from #14's review (
070fd96)checkHealth(also matches the definition. The old count did too (definition + 3 calls = 4), so nothing had got weaker.Test plan
test_editor_themes.py(refine table, join-back corpus, palettes, light siblings, footer, size range, keys). The pane-CSS "tokens only" test still holds.ruff,node --check,vendor-sums --check,modulepreload --check,verify-plugin.mjs.Generated by Claude Code