Repository navigation
Introduce smarter parsing of doc comments. - #146
Conversation
TeXitoi
left a comment
There was a problem hiding this comment.
Seems great, but lacking documentation.
|
I can try to add the missing docs. Which level of documentation do you miss? User facing or inside the updated parsing logic? |
|
For the user, something like if there is a line followed by an empty line, the first will be help, the rest long_help |
…e and doc comments.
Added something. Feel free to nitpick. |
TeXitoi
left a comment
There was a problem hiding this comment.
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.
|
@TeXitoi ping :) |
|
v0.2.14 published |
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 (
helporabout) at the same time it applies the whole comment as input for the related long version (long_helpandlong_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.