jlelong / vscode-latex-basics

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

Math delimiters `\(....\)` are not highlighted as pairs #42

Closed jlelong closed 1 year ago

jlelong commented 1 year ago

Originally posted in https://github.com/James-Yu/LaTeX-Workshop/discussions/3677

Inline maths delimiters \(...\) are not highlighted as pairs.

jlelong commented 1 year ago

@harrysw1729 @James-Yu

Even if it looked a good idea at first sight, I think this is actually a bad idea.

Once delimiters are declared as a pair, we loose complete control of the highlighting, which is automatically handled by VS Code, when editor.bracketPairColorization.enabled is set.

I made an attempt in https://github.com/jlelong/vscode-latex-basics/tree/42_escaped_parens_pair

Capture d’écran 2023-02-01 à 08 28 01

Note the following inconsistencies

I think the cons are really out weighting the pros. So, I am closing this issue.

RedCMD commented 1 year ago

vscode is about to add the option to disable colouring on bracket pairs https://github.com/microsoft/vscode/issues/170497

jlelong commented 1 year ago

@RedCMD Thanks for the link. I will keep an eye on it to see how to best modify our language configuration files.