Wrong parsing for C function
-
I hope the image below is visible and can explain my problem:

A eth_configure function invocation is shown as a function definition in the function list pane.
Any clues? -
Clue?
Attach the source file or a representative snippet so we don’t have to do all the typing.
Where does theif (ifconfig (...reside? In the body ofmain (),init (),eth_configure (...)or …? -
OK, I narrowed it down to this fragment:

Seems the problem appears when the function call is in an if statement. The source file can be downloaded from this link.
This is Notepad++ V7.7.1 (64-bit).
-
My guess is that this is related to https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4794 and thus https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4575
-
Yes, it seems that way. One more thing: if I change the language to C++ the issue goes away. It is probably related to the horrendous regexps used for parsing C function definitions but I’m not smart enough to figure it out.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login