Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to highlight docstrings using rst syntax #28

Open
anntzer opened this issue Jun 7, 2017 · 0 comments
Open

Add option to highlight docstrings using rst syntax #28

anntzer opened this issue Jun 7, 2017 · 0 comments

Comments

@anntzer
Copy link
Contributor

anntzer commented Jun 7, 2017

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).

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

No branches or pull requests

2 participants