Skip to content

♻️ refactor(debugger): rewrite syntax highlighting with span-based approach#1824

Merged
harehare merged 1 commit into
mainfrom
refactor/debugger-syntax-highlighting
Jun 4, 2026
Merged

♻️ refactor(debugger): rewrite syntax highlighting with span-based approach#1824
harehare merged 1 commit into
mainfrom
refactor/debugger-syntax-highlighting

Conversation

@harehare

@harehare harehare commented Jun 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

…proach

Replace sequential regex-replace highlighting with a non-overlapping
span collector so ANSI escape codes from earlier patterns never feed
into later ones, eliminating garbled output. Adopt tarn theme truecolor
values (func, keyword, string, number, operator, etc.) throughout.
Also fix history entry ordering for eval and add "Available Commands:"
header styling.

- Add `collect_spans` helper for priority-ordered, non-overlapping matches
- Update all colors to tarn theme truecolor values
- Fix `editor.add_history_entry` moved before eval result display
- Add `*.mq-db` to .gitignore
@harehare harehare merged commit d621765 into main Jun 4, 2026
8 checks passed
@harehare harehare deleted the refactor/debugger-syntax-highlighting branch June 4, 2026 14:09
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