Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Highlight docstrings as reStructuredText #151

Open
remcohaszing opened this issue Jul 14, 2016 · 0 comments
Open

Highlight docstrings as reStructuredText #151

remcohaszing opened this issue Jul 14, 2016 · 0 comments

Comments

@remcohaszing
Copy link

Since I noticed this plugin tries to detect SQL from strings in order to highlight them, I figured it might just as well highlight docstrings as reStructuredText. Also there is no need to detect if any docstrings could be highlighted as SQL.

This would affect:

  • function docstrings
  • class docstrings
  • module docstrings
  • sphinx property comments
"""
Module docstring.

"""
class A:
    """
    Class docstring

    """
    #: Property comment
    prop = 'prop'

    def __init__(self):
        """
        Function docstring

        """
        #: Property comment
        self.prop = 'prop'


def a():
    """
    Function docstring

    """


#: Property comment
prop = 'prop'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant