Skip to content

Introduce smarter parsing of doc comments. - #146

Merged
TeXitoi merged 4 commits into
TeXitoi:masterfrom
0ndorio:feature/134_smarter_parsing_of_doc_comments
Dec 10, 2018
Merged

TeXitoi merged 4 commits into
TeXitoi:masterfrom
0ndorio:feature/134_smarter_parsing_of_doc_comments

Conversation

@0ndorio

@0ndorio 0ndorio commented Oct 26, 2018 •

Copy link
Copy Markdown
Contributor

First approach of an implementation of the smarter doc comment parsing feature requested in #134.

It introduces an additional check in the doc comment parsing algorithm to test if the second line of a given doc comment is an empty line. If this is true only the first line will be used as input for the argument given as input parameter (help or about) at the same time it applies the whole comment as input for the related long version (long_help and long_about).

This patch doesn't contain the additional feature I requested in this comment. It would be easy to add it but I assume as long as it isn't clearly defined how to switch between the two behaviors it should not be introduced.

@TeXitoi TeXitoi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems great, but lacking documentation.

@TeXitoi TeXitoi added the breaking-change This change is breaking and, if implemented, must be postponed until the next minor release label Nov 1, 2018
@0ndorio

0ndorio commented Nov 2, 2018

Copy link
Copy Markdown
Contributor Author

I can try to add the missing docs. Which level of documentation do you miss? User facing or inside the updated parsing logic?

@TeXitoi

TeXitoi commented Nov 2, 2018

Copy link
Copy Markdown
Owner

For the user, something like if there is a line followed by an empty line, the first will be help, the rest long_help

@0ndorio

0ndorio commented Nov 2, 2018

Copy link
Copy Markdown
Contributor Author

For the user, something like if there is a line followed by an empty line, the first will be help, the rest long_help

Added something. Feel free to nitpick.

@TeXitoi TeXitoi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks.

I'm in vacation without aa computer for 2 weeks, thus I let this PR waiting if you have any changes to do. I'll merge it when I have access to a computer.

Feel free to ping me if you have no news after the 20th.

@0ndorio

0ndorio commented Dec 10, 2018

Copy link
Copy Markdown
Contributor Author

@TeXitoi ping :)

@TeXitoi
TeXitoi merged commit d48f4ad into TeXitoi:master Dec 10, 2018
@TeXitoi

TeXitoi commented Dec 10, 2018

Copy link
Copy Markdown
Owner

v0.2.14 published

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

Labels

breaking-change This change is breaking and, if implemented, must be postponed until the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants