microsoft / cascadia-code

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.
Other
25.11k stars 796 forks source link

`(*` ligature causes wrong bracket-pair colorization for C/C++ #699

Open mhoumann opened 9 months ago

mhoumann commented 9 months ago

Cascadia family version

2111.01

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

I don't know

Platform

Windows

Other Software

VS Code 1.82 Visual Studio 2022 17.7

What happened?

( ligature causes editor bracket-pair colorization to break in certain cases in C/C++ Using pointer deref in parentheses, e.g., in a function call causes the `to be colored same as open parenthesis(`

const wchar_t** pp = ...;
wprintf(*);
image

Same issue in both VS Code and Visual Studio 2022

Badaxis commented 5 months ago

Similar to #443