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

Use this syntax to highlight python docstrings? #15

Closed
anntzer opened this issue Jun 1, 2017 · 3 comments
Closed

Use this syntax to highlight python docstrings? #15

anntzer opened this issue Jun 1, 2017 · 3 comments

Comments

@anntzer
Copy link
Contributor

anntzer commented Jun 1, 2017

https://github.com/Rykka/riv.vim includes an option to highlight python docstrings with rst syntax (https://github.com/Rykka/riv.vim/blob/master/doc/riv_instruction.rst#docstring-highlighting). I have tried just copy-pasting their after/syntax/python.vim (https://github.com/Rykka/riv.vim/blob/598c8983dde237518732785a4726c8a3acb49617/after/syntax/python.vim) (you need to fix the paths to the rst.vim files that get included) but that triggered an bunch of errors (when used in conjunction with your rst.vim).

Any interest in trying to make a similar option available for your implementation of rst.vim? Thanks!

@marshallward
Copy link
Owner

Yeah, highlighting docstrings with python seems very reasonable. The code block looks very similar to the current code syntax highlighting, with different start and end conditions.

I will try putting this in tonight.

@anntzer
Copy link
Contributor Author

anntzer commented Jun 7, 2017

Upon further thought, I now believe this functionality belongs to a python.vim syntax file rather than the other way round, for reasons explained at vim-python/python-syntax#28. (But I'd still be happy to use your implementation if vim-python doesn't want to provide that...)

@anntzer
Copy link
Contributor Author

anntzer commented Sep 16, 2017

Closing as I believe the issue doesn't really belong here (see above).

@anntzer anntzer closed this as completed Sep 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants