better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Inconsistent scope for pointers in parameter lists in C++

Open sean-mcmanus opened this issue 4 years ago • 0 comments

Checklist

  • [X] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
  • [ ] This bug exists for C (no, scope is consistently keyword.operator.c)
  • [X] This bug exists for C++
  • [?] This bug exists for Objective-C
  • [?] This bug exists for Objective-C++

The code with a problem is:

struct s
{
    int func(char *s);
    char *s;
};

It looks like:

Default dark theme. Scope for "*" in the parameter is storage.modifier.pointer.cpp. image

It should look like:

Scope for all other cases is keyword.operator.cpp (and for params in C). I don't know which case is correct, but the inconsistency seems incorrect.

Originally reported at https://github.com/microsoft/vscode-cpptools/issues/5844

sean-mcmanus avatar Jul 28 '20 19:07 sean-mcmanus