jlelong / vscode-latex-basics

LaTeX grammars for Visual Studio Code
MIT License
19 stars 10 forks source link

Adding some more bracket pairs to latex-language-configuration.json #38

Closed longisland-icetea closed 1 year ago

longisland-icetea commented 1 year ago

When Bracket Pair Colorization is enabled, write (\left. something \right|) in a tex file (although it's not frequently used), \left. will be the right color but \right| will be red. And all the bracket pair's color in the below will change (to the color of the next level).

image

I have seen several similar issues such as https://github.com/microsoft/vscode/issues/137774#issue-1061945380 and it seems more convinient to simply add these barcket pair config to the latex-language-configuration.json file in the extension project.

["\\left|", "\\right."], ["\\left.", "\\right|"],

I migrate the issue here as required by @jlelong

    Thank you for filing this issue! We have outsourced our LaTeX syntax highlighting grammar to [vscode-latex-basics](https://github.com/jlelong/vscode-latex-basics), can you fill your issue against that repo?

Originally posted by @jlelong in https://github.com/James-Yu/LaTeX-Workshop/issues/3511#issuecomment-1287901405