Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

struct mystruct foo; - foo is not highlighted later on #153

Open
brandonson opened this issue May 15, 2017 · 1 comment
Open

struct mystruct foo; - foo is not highlighted later on #153

brandonson opened this issue May 15, 2017 · 1 comment

Comments

@brandonson
Copy link

brandonson commented May 15, 2017

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 brandonson changed the title struct mystruct foo - foo is not highlighted later on struct mystruct foo; - foo is not highlighted later on May 15, 2017
@jeaye
Copy link
Owner

jeaye commented May 16, 2017

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!

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

No branches or pull requests

2 participants