You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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...)
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!
The text was updated successfully, but these errors were encountered: