Skip to content
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

[C++] using a operator() of a templated class leads to wrong syntax highlighting results #36

Open
aeschli opened this issue Mar 7, 2016 · 0 comments

Comments

@aeschli
Copy link

aeschli commented Mar 7, 2016

From @gnaggnoyil on February 23, 2016 12:3

This piece of code:

template <typename T>
struct bar{
    int operator()(char x){
        return 0;
    }
};

struct foo:public bar<int>{
    using bar<int>::operator();
};

seems to produce wrong syntax highlighting results for ollowing class/struct declarations/definations and endif macros. On my workspace(VSCode 0.10.8 with Dark+ (default dark) color scheme) it behaves like this:

wrong syntax highlighting

Other macros including define, include, if and ifdef are not affected though.

Copied from original issue: microsoft/vscode#3315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant