Skip to content

Incorrect docstring parsing #12

@Andrej730

Description

@Andrej730

Snippet:

def test():
    """Docstring for test

    :return: Description
    :rtype: Literal[25]"""
    return 25

test()

Without python docstring highlighter:

Image

With python docstring highlighter (note that return and test() are also parsed as part of the string):

Image

I understand that it would be a non-PEP 257-compliant doc-string, but still.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions