-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong syntax highlighting when casting to pointer types #12982
Comments
@oncipriani Can you provide a screenshot? Can you check if the issue still repros with our C/C++ extension disabled? I am not reproing the issue for some reason. |
Helo, @sean-mcmanus. I tested with the C++ extension disabled and the issue still occurs. I guess it is not a problem with the extension, then. 😅 Here is a screenshot of the sample C source code in VS Code with the C++ extension enabled: And here it is with the C++ extension disabled: While I was taking the screenshots I found out what was causing the problem: font ligatures. Disabling font ligatures fixes the problem. For reference, here is my entire {
"editor.acceptSuggestionOnEnter": "off",
"editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.renderWhitespace": "boundary",
"editor.rulers": [
{
"color": "#00ff8050",
"column": 80
},
{
"color": "#ff800050",
"column": 120
},
{
"color": "#ff000050",
"column": 160
}
],
"extensions.ignoreRecommendations": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"workbench.startupEditor": "none",
"workbench.sideBar.location": "right",
"C_Cpp.autoAddFileAssociations": false,
"C_Cpp.intelliSenseUpdateDelay": 3000
} |
Hey @sean-mcmanus, this issue might need further attention. @oncipriani, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
I'm closing this issue because I believe it is a problem with font ligatures, not with the C/C++ Extension. |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
The closing parenthesis for a type cast to any pointer type gets the wrong color.
Steps to reproduce:
Expected behavior:
The color of a closing parenthesis should be the same as the color of its matching opening parenthesis.
Configuration and Logs
Other Extensions
No response
Additional context
Sample C source:
The text was updated successfully, but these errors were encountered: