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

[C] struct field is seen as a declaration inside a struct #1830

Open
ismell opened this issue Jan 9, 2019 · 0 comments · May be fixed by #1831
Open

[C] struct field is seen as a declaration inside a struct #1830

ismell opened this issue Jan 9, 2019 · 0 comments · May be fixed by #1831
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@ismell
Copy link

ismell commented Jan 9, 2019

Defining a child struct pointer in a struct should not be treated as a struct declaration.

screenshot from 2019-01-09 10-30-47

struct child_t {
	int foo;
};

struct parent_t {
	struct child_t *child_pointer;
//             ^ - entity.name.struct [ This check fails ]
	struct child_t child;
//             ^ - entity.name.struct
	struct nested_t {
//             ^ entity.name.struct
		int bar;
	} nested;
};
ismell pushed a commit to ismell/Packages that referenced this issue Jan 9, 2019
Fixes sublimehq#1830

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
@ismell ismell linked a pull request Jan 9, 2019 that will close this issue
ismell pushed a commit to ismell/Packages that referenced this issue Jan 9, 2019
Fixes sublimehq#1830

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
ismell pushed a commit to ismell/Packages that referenced this issue Jan 31, 2019
Fixes sublimehq#1830

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
ismell pushed a commit to ismell/Packages that referenced this issue Mar 4, 2019
So correctly fixing this involved a lot more changes then I expected.

Fixes sublimehq#1830

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: bug A bug in an existing language feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants