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

Function List Parser for Pascal does not filter out declarations #12687

Closed
vinsworldcom opened this issue Dec 21, 2022 · 0 comments
Closed

Function List Parser for Pascal does not filter out declarations #12687

vinsworldcom opened this issue Dec 21, 2022 · 0 comments

Comments

@vinsworldcom
Copy link

Description of the Issue

The new Pascal function list implemented in #12489 does not take into account declarations and it shows them as well as functions / procedures in the Function List.

See Community discussion.

Zaaphod added a commit to Zaaphod/notepad-plus-plus that referenced this issue Dec 22, 2022
fix notepad-plus-plus#12687, updates notepad-plus-plus#12489
Pascal Units require a definition of each function and procedure as a header of the unit.  This causes the function list to have duplicates of each function and procedure in the definition.  To solve this duplication and make the list only take you to the actual functions, I've added another comment definition that uses the keywords Interface which must always be before the function definitions and implementation which always must be after the definitions and before the actual functions.  so everything between Interface and Implementation is ignored the way it should be.  If someone wants the duplicates for some strange reason, they can always comment that line out.
@donho donho closed this as completed in 3596517 Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant