Skip to content

REPL: fix highlighting of the region and of enclosing parentheses#60893

Merged
KristofferC merged 2 commits intoJuliaLang:masterfrom
matthias314:m3/region-highlight
Mar 17, 2026
Merged

REPL: fix highlighting of the region and of enclosing parentheses#60893
KristofferC merged 2 commits intoJuliaLang:masterfrom
matthias314:m3/region-highlight

Conversation

@matthias314
Copy link
Copy Markdown
Contributor

@matthias314 matthias314 commented Feb 1, 2026

fixes #60762

In the syntax highlighting introduced in #59778 for Julia 1.13, the region highlighting is off by 1. This PR fixed this. I believe that the region highlighting is now as in 1.12, up to the added colors.

@KristofferC Could you have a look at it?

@nsajko nsajko added the REPL Julia's REPL (Read Eval Print Loop) label Feb 1, 2026
@matthias314
Copy link
Copy Markdown
Contributor Author

The highlighting of enclosing parentheses also has a problem: When the cursor is on a closing parenthesis, then the corresponding opening parenthesis is highlighted, but not the other way around. This is now fixed in the second commit.

@matthias314 matthias314 changed the title fix REPL region highlighting (#60762) REPL: fix highlighting of the region and of enclosing parentheses Feb 1, 2026
@KristofferC
Copy link
Copy Markdown
Member

I confirmed the bug and that this PR fixes it. Ideally it would have a test but since it can be a bit annoying to write for these interactive tools I think it is ok.

@KristofferC KristofferC merged commit be981a1 into JuliaLang:master Mar 17, 2026
9 checks passed
@KristofferC KristofferC added backport 1.13 Change should be backported to release-1.13 labels Mar 17, 2026
@matthias314 matthias314 deleted the m3/region-highlight branch March 17, 2026 16:08
KristofferC pushed a commit that referenced this pull request Mar 24, 2026
@KristofferC KristofferC mentioned this pull request Mar 24, 2026
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.13 Change should be backported to release-1.13 REPL Julia's REPL (Read Eval Print Loop)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regression in 1.13.0-beta1: incorrect region highlighting in the REPL

4 participants