SublimeCImproved icon indicating copy to clipboard operation
SublimeCImproved copied to clipboard

Failure to parse syntax correctly when function name and open-paren are separated by a newline

Open zachriggle opened this issue 4 years ago • 1 comments

With C Improved, the function name bad does not appear in Go To Symbol (Cmd+R). Here's a minimal case:

void good() {
}
void
bad
()
{}
void good2(){}

This ends up breaking the indexing, so that "Go to definition" does not work for functions whose signatures are formatted this way.

You can see in the screenshot that bad() doesn't show up, when using C Improved syntax.

Screen Shot 2020-09-22 at 5 17 18 PM

Using the default C syntax, everything works as expected:

Screen Shot 2020-09-22 at 5 18 58 PM

zachriggle avatar Sep 22 '20 22:09 zachriggle

@zachriggle Unfortunately, I do not maintain this plugin anymore, sorry for that.

abusalimov avatar Sep 23 '20 20:09 abusalimov