color_coded icon indicating copy to clipboard operation
color_coded copied to clipboard

`struct mystruct foo;` - foo is not highlighted later on

Open brandonson opened this issue 8 years ago • 1 comments

In this small sample c file:

typedef struct test{
    int foo;
} test_t;

int main(){
    struct test bar;
    struct test_2 {
        int foo;
    } baz;
    return bar.foo + baz.foo;
} 

The occurrences of bar and baz in bar.foo and baz.foo are not highlighted.

If the type of bar or baz is changed to be a pointer or bar's type is changed to test_t (the typedef for struct test) then the occurrences mentioned are highlighted.

Not sure whether this is because of color_coded, libclang, or just me missing something I need to add highlighting for in my colorscheme - if there's anything I can do to help figure that out, please let me know.

brandonson avatar May 15 '17 23:05 brandonson

A quick check shows that I can reproduce this locally, with my colorscheme, with no .color_coded and no errors in :CCerror. That means this will almost certainly require a code change in color_coded or libclang; it's hard to tell, right now, which one.

The finger pointer in me says libclang, but we'll see. Thanks for the report!

jeaye avatar May 16 '17 00:05 jeaye