Skip to content

[Feature Request] Bracket Pair Colorization: Allow bracket pairs to share open tokens or close tokens #132209

@roccomao

Description

@roccomao

The editor now supports native bracket pair colorization, but the languages where multiple bracket pairs share the same open token or close token are not correctly supported. This is a legacy issue from Bracket Pair Colorization (ref issue #301). DragWx has submitted a solution, ref PR #310, but the author(CoenraadS) has not reviewed and merged the code for a long time.

Actually, when setting "editor.bracketPairColorization.enabled": true to enable Bracket pair colorization, there will be some languages that can not be properly supported. So hopefully the developers can support this feature (#310).

It's also worth mentioning that the bracket matching of vscode works correctly, but the colorization is incorrect, as shown below:

example_01
example_02

PS: Here are some examples of languages that share open tokens or close tokens.

Verilog/SystemVerilog brackets examples:

[ case  , endcase ]
[ casex , endcase ]
[ casez , endcase ]

AL Language brackets examples:

[ case  , end; ]
[ begin , end; ]

LaTeX brackets examples:

[ \left( , \right) ]
[ \left( , \right. ]
[ \left. , \right) ]

PPS: @CoenraadS, In Bracket Pair Colorization, there are already many related issues: #301, #170, #416, #328, #332, #371, #349 (some are duplicates).

Metadata

Metadata

Assignees

Labels

bracket-pair-colorizationbugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions