-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Support coloring a subset of the matched brackets #170497
Comments
I wonder if there is any use to disable 'match' highlighting on brackets that are only listed in this would mean that if |
What would be your use-case? |
I don't have any atm |
This was a compromise, as for unclosed/unopened brackets we don't really know if it is colorized or not, as that depends on the missing opening/closing bracket (only complete pairs are colorized and different pairs can share brackets). |
This issue changes the behavior when both brackets and colorizedBracketPairs are configured, for example through this configuration:
In this case, the four bracket pairs
{}
,()
,[]
and<>
should be matched.However, only the pairs
{}
and<>
should get highlighted.In particular, this restores the bracket matching behavior for plain text files before colorization was introduced.
Verification Steps
Configure
editor.language.brackets
andeditor.language.colorizedBracketPairs
and verify that the former just matches brackets and the latter colorizes them. Verify they can be configured independently.The text was updated successfully, but these errors were encountered: