Skip to content

Update pascal.xml to fix issue with Pascal units#12686

Closed
Zaaphod wants to merge 1 commit intonotepad-plus-plus:masterfrom
Zaaphod:Zaaphod-Pascal-Function-List
Closed

Update pascal.xml to fix issue with Pascal units#12686
Zaaphod wants to merge 1 commit intonotepad-plus-plus:masterfrom
Zaaphod:Zaaphod-Pascal-Function-List

Conversation

@Zaaphod
Copy link

@Zaaphod Zaaphod commented Dec 21, 2022

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.

@vinsworldcom
Copy link

vinsworldcom commented Dec 21, 2022

@Zaaphod I think you need to link an issue. I've created one for you.

Add the text "fix #12687, updates #12489" to your commit message please.

Thank you for the contribution!

Cheers.

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.
@Zaaphod Zaaphod force-pushed the Zaaphod-Pascal-Function-List branch from cf829eb to a5c885f Compare December 22, 2022 00:46
@Zaaphod
Copy link
Author

Zaaphod commented Dec 22, 2022

@vinsworldcom Thank your help. I think I updated the commit message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language-support Issues or PRs related to programming languages (also e.g. in styles, themes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants