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:


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).
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": trueto 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:
PS: Here are some examples of languages that share open tokens or close tokens.
Verilog/SystemVerilog brackets examples:
AL Language brackets examples:
LaTeX brackets examples:
PPS: @CoenraadS, In Bracket Pair Colorization, there are already many related issues: #301, #170, #416, #328, #332, #371, #349 (some are duplicates).