gist-it icon indicating copy to clipboard operation
gist-it copied to clipboard

Parsing issue for Python docstrings

Open proksch opened this issue 5 years ago • 1 comments

If gist-it is used to render Python snippets, then often, Python DocStrings are not rendered correctly and large parts of the file are highlighted as comments (examples would be the Gist-its of https://github.com/saltstack/salt/blob/develop/salt/cli/spm.py or https://github.com/saltstack/salt/blob/develop/salt/modules/aptpkg.py). I did not check, whether the same problem also exists when the DocStrings are opened/closed with double quotes ("""...""") instead of the single-quotes ('''...''') in the linked files.

proksch avatar Jul 26 '19 11:07 proksch

Also not working are cases, in which the comment contains regular strings, like in https://github.com/python/cpython/blob/master/Lib/zipfile.py#L255

proksch avatar Jul 26 '19 16:07 proksch