comment_parser
comment_parser copied to clipboard
Python doc string support? (triple quotes)
I'm not sure if the triple quotes officially qualify as "comments" but they are often used in the same fashion;
https://github.com/autokey/autokey/blob/develop/lib/autokey/scripting/clipboard_gtk.py
In the files in this repo all of the real documentation takes place within the triple quote python thing not the python comments. It would be nice if there was some way to add the definition of what the script considers to be a "comment"
Thanks!
I was also looking to extract these three quote comment blocks but unfortunately the extract_comments only grabs the # comments
did you solve this @smturro2
@dt1729 No we ended up coding our own parser.
There's actually a docstring-parser available now trying that.
Edit: Some regex and docstring parser does it for me.