Southclaws/vscode-pawn

Possible to add automatic docblocks?

Vince0789 opened this issue · 3 comments

Would it be possible to add automatic docblock expansion when you type /** above a function declaration? Ideally it'd create the tags too.

afbeelding

Possibly, I was working on something similar to this but without the verbosity of XML syntax and each parameter having a separate line.

Grabbing the params shouldn't be too difficult with some regular expressions though I am working (slowly) on a fully fledged parser.

The end goal of that is to generate markdown documentation of a package via sampctl, probably quite a long way off though.

I have a semi-working code for this at home. Should there be anyone (@JustMichael) interested in finishing it, I can put it back on GitHub since I currently don't have the time myself.

@kristoisberg You still have this code? I remember we talked before about it, but I'd be interested in possibly doing something with it now.