[X] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
[X] This bug exists for C
[ ] This bug exists for C++
[ ] This bug exists for Objective-C
[ ] This bug exists for Objective-C++
The code with a problem is:
typedef struct {
int a;
} struct_t;
int func(int a) {
return a;
}
void test(void) {
struct_t s;
struct_t *ptr;
func(s.a);
func(ptr->a);
switch(1) {
case 1:
func(s.a);
func(ptr->a);
}
}
It looks like:
It should look like:
Confirmed with with scope inspector that inside the switch they're being scoped as keyword.operator.c not dot/pointer access. Works fine outside a function call and confirmed to work in .cpp files.
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
It should look like:
Confirmed with with scope inspector that inside the switch they're being scoped as
keyword.operator.c
not dot/pointer access. Works fine outside a function call and confirmed to work in .cpp files.