Closed alexr00 closed 7 months ago
@akbyrd thank you for including the scopes, that's super helpful. I think you're right, something is confusing the function pointer pattern and then it never closes. I bet it'll be an easy fix so I'll take a look when I get the chance
Checklist
"C_Cpp.enhancedColorization": "Disabled"
If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension: https://github.com/microsoft/vscode-cpptools/issues/new/choose
The code with a problem is:
It looks like:
In latest insiders with the default theme
More issues are apparent depending on the theme being used
It should look like:
Here's the snippet again with some of the issues annotated. It appears as though the parser gets confused on the first function pointer and essentially thinks all the things after it are parameters in the function pointer type.
Originally from @akbyrd in https://github.com/microsoft/vscode/issues/202365