Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misbehaving bracket-matching highlighting in rust lang #2110

Closed
workingj opened this issue Apr 14, 2022 · 5 comments
Closed

Misbehaving bracket-matching highlighting in rust lang #2110

workingj opened this issue Apr 14, 2022 · 5 comments
Labels
A-core Area: Helix core improvements C-bug Category: This is a bug

Comments

@workingj
Copy link
Contributor

Summary

misbehaving highlighting of bracket pairs and auto-pairs with rust
simplescreenrecorder

Reproduction Steps

Writing Rust and moving through a string of a println! statement.

Helix log

No response

Platform

Linux

Terminal Emulator

GNOME Terminal 3.38.1

Helix Version

helix 22.05-dev (764adbd)

@workingj workingj added the C-bug Category: This is a bug label Apr 14, 2022
@workingj workingj changed the title Missbehaving bracket matching Missbehaving matching of "auto-pairs" Apr 14, 2022
@workingj workingj changed the title Missbehaving matching of "auto-pairs" Missbehaving matching of "auto-pairs" in rust lang Apr 14, 2022
@n0s4
Copy link
Contributor

n0s4 commented Apr 15, 2022

Have you change anything in the editor.auto-pairs section of you config.toml?

@workingj
Copy link
Contributor Author

workingj commented Apr 15, 2022

No .
I did add and completely remove theses settings.

[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'

but in both cases still the same behavior.
does anyone else encounter the same behavior ?

@kirawi kirawi added the A-core Area: Helix core improvements label Apr 16, 2022
@the-mikedavis
Copy link
Member

Does this affect the auto-pairs, i.e. the automatic insertion of closing ), ", and }, or just the bracket-matching highlighting? Typing out a rust file with just

println!("\nSECTION 5: {:->60}\n", " Mutex ");

works correctly for me. (I can reproduce the bracket-matching highlight though.)

@workingj
Copy link
Contributor Author

The auto-pairs are not effected, only the highlighting of pairs.
Through your comment i realized the issue heading is misleading,
so ill change that now for clarification.

@workingj workingj changed the title Missbehaving matching of "auto-pairs" in rust lang Misbehaving highlighting of matching pairs in rust lang Apr 16, 2022
@workingj workingj changed the title Misbehaving highlighting of matching pairs in rust lang Misbehaving bracket-matching highlighting in rust lang Apr 16, 2022
@pascalkuthe
Copy link
Member

pascalkuthe commented Jul 15, 2023

this was fixed by #7242 (I missed this issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Helix core improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

5 participants