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

Syntax highlighting broken after member function with requires clause with less comparison #638

Open
1 task
alexr00 opened this issue Jun 21, 2023 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Jun 21, 2023

Checklist

  • This problem exists even with the setting "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:

template <int n>
struct S{        
    int foo() requires(n == 2)
    {
        return 2;
    }

        
    int foo() requires(n < 2)
    {
        return 2;
    }

private:
    int b;
};

The syntax highlighting is completely broken after the second requires clause:

It looks like:

image

It should look like:

The syntax highlighting should continue to work as normal, as it does if you replace the < with >:
image

Originally from @lukas-lang in microsoft/vscode#185728

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