1
0
forked from VimPlug/jedi

Merge pull request #9 from tek/master

show_pydoc chokes when more than one python syntax file exists by @tek
This commit is contained in:
David Halter
2012-09-08 14:07:13 -07:00

View File

@@ -141,8 +141,7 @@ PYTHONEOF
" highlight python code within rst
unlet! b:current_syntax
let l:pythonpath = fnameescape(globpath(&rtp,"syntax/python.vim"))
exe "syn include @rstPythonScript ".l:pythonpath
syn include @rstPythonScript syntax/python.vim
" 4 spaces
syn region rstPythonRegion start=/^\v {4}/ end=/\v^( {4}|\n)@!/ contains=@rstPythonScript
" >>> python code