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

Brackets don't match across strings using different quote marks #986

Open
meteorquake opened this issue Mar 10, 2025 · 0 comments
Open

Brackets don't match across strings using different quote marks #986

meteorquake opened this issue Mar 10, 2025 · 0 comments

Comments

@meteorquake
Copy link

meteorquake commented Mar 10, 2025

A lot of languages use ' or " or ` for string quotations and programmers jump around with which they are using depending on the string concerned.

Currently bracket pairs of various kinds ( ) [ ] { } highlight when the cursor is on one of them when they are in the same type of quoted string but not different quotation types, so -

The brackets highlight here when touched -
'a(bc'+'de)f'

but don't with these -

'a(bc'+"de)f"
'a(bc'+`de)f`

My view is matching should also be done when quote marks differ (like the second 2). It's very helpful that brackets are matched within strings as well as within code.

Cheers! David

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

No branches or pull requests

1 participant