-
Notifications
You must be signed in to change notification settings - Fork 30
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
Parameter names are not highlighted #158
Comments
Vscode insiders is already using 1.8.8 so there should be only minor improvements at the moment. Though that might be a bug. |
Parameters type highlighting is being tracker by #135. We hope to get that merged in tonight. |
Is |
@arzaidi The extension is the bleeding edge updates to the syntax, kind of like Chrome Canary, or Firefox nightlies. Sometimes there will be a big difference, however VS Code uses the extension to get official updates to the syntax once it the changes have proven to be stable. As matter123 pointed out, right now there are not that many differences between the VS Code Insiders release and the Better C++ extension. If you're using the normal VS Code release though its quiet different. |
You might also need a theme that highlights more pieces of the syntax, since the default VS Code theme highlights very little. |
Yeah, the With Closing as this is a theme color issue. See #7 if you want to customize your theme. |
Huh |
Is that the whole file? |
no thats not the whole file, it has usual includes and namespace etc on the top |
If you can link the whole file we'll take a look into it. This is a pretty suprising bug. |
It is marked as |
Found the root cause, it is due to the use of unnamed namespace. If you provide a name to the namespace then it works fine. Here is the sample to reproduce: #include "sample.h"
namespace
{
void failedToLoadCriticalData(const string& what, bool throwExcp = false)
{
}
} |
Probably the same issue/root cause as #72 then. Thanks. |
@arzaidi |
great. Thank you guys, I used this file and it fixed the issue. |
I'll try to get matter123's merged into master in the next 2 days. |
I have just started using Visual Studio Code, and installed your extension but it doesn't change anything in C++ syntax highlighting.
I am using Visual Studio Code - Insiders Version : 1.34.20
Attaching snapshot where you can see that the parameter type and name colors are unchanged.
The text was updated successfully, but these errors were encountered: