Skip to content

Add option to highlight docstrings using rst syntax #28

Description

@anntzer

vim's rst syntax (maintained upstream at https://github.com/marshallward/vim-restructuredtext) is able to highlight embedded code fragments with their respective syntax files (basically starting at https://github.com/marshallward/vim-restructuredtext/blob/master/syntax/rst.vim#L153). It would be nice if python-syntax likewise provided an option to highlight docstrings using rst syntax (I believe this kind of behavior belongs to the wrapper syntax file (in this case python.vim) and not the wrappee (rst.vim), as the wrapper should be able to just say "use some other syntax file HERE" whereas the wrappee would have to guess what syntax element of the wrapper needs to be modified).

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions