这是indexloc提供的服务,不要输入任何密码
Skip to content

Support for Python docstrings #6

@jkaye2012

Description

@jkaye2012

Hi,

Thanks for the great package. One thing that would make it even more useful would be support for Python docstrings. Via use of tools like doxypypy, it's possible to document Python code using Doxygen syntax. Unfortunately, the current regexp matching only captures C-style comments.

I took a look at the source and tried to implement something simple, but I was unable to get things working in the ~30 minutes that I was hacking on it.

To clarify a bit, my initial thought was that adding \\|\\(\"\"\"\\\) to the end of highlight-doxygen-commend-start-regexp would be enough, but that does not seem to work in my testing. Python docstrings look something like this:

def function(thing):
    """Does a thing.

       @param thing The input.
       @returns The output.
    """

Thanks again!

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