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] Cannot goto functions defined after a very long function. #3901

Open
absop opened this issue Jan 2, 2024 · 1 comment
Open

[C] Cannot goto functions defined after a very long function. #3901

absop opened this issue Jan 2, 2024 · 1 comment
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@absop
Copy link

absop commented Jan 2, 2024

Expected behavior

The symbols after the function JS_CallInternal like JS_Call have a scope named entity.name.function.c which make them be indexed by Sublime Text.
image

Actual behavior

The symbols after the function JS_CallInternal does not have the entity.name.function.c scope and cannot be indexed by Sublime Text.
image
image

Steps to reproduce

The source code repository (direct link to the file).

@absop absop changed the title [C++] Cannot goto functions after a very long function. [C++] Cannot goto functions defined after a very long function. Jan 2, 2024
@absop absop changed the title [C++] Cannot goto functions defined after a very long function. [C] Cannot goto functions defined after a very long function. Jan 25, 2024
@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Feb 9, 2024
@deathaxe
Copy link
Collaborator

deathaxe commented Feb 9, 2024

The issue is not related with length of functions, but used syntax within the code block. It seems to unable to find function block's end due to kind of macros being used.

It appears a preprocessor if statement is causing it.

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

No branches or pull requests

2 participants