help: do not highlight rst indented sections as python (#717)

Fixes https://github.com/davidhalter/jedi-vim/issues/716.
This commit is contained in:
Antony Lee
2017-06-06 09:09:14 -07:00
committed by Daniel Hahler
parent e2d79c6434
commit 0ee2ed0bc6

View File

@@ -383,15 +383,6 @@ function! jedi#show_documentation() abort
" quit comands
nnoremap <buffer> q ZQ
execute 'nnoremap <buffer> '.g:jedi#documentation_command.' ZQ'
" highlight python code within rst
unlet! b:current_syntax
syn include @rstPythonScript syntax/python.vim
" 4 spaces
syn region rstPythonRegion start=/^\v {4}/ end=/\v^( {4}|\n)@!/ contains=@rstPythonScript
" >>> python code -> (doctests)
syn region rstPythonRegion matchgroup=pythonDoctest start=/^>>>\s*/ end=/\n/ contains=@rstPythonScript
let b:current_syntax = 'rst'
endfunction
" ------------------------------------------------------------------------