From 0ee2ed0bc6a42e78c1f9c3256627629708b95e5e Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 6 Jun 2017 09:09:14 -0700 Subject: [PATCH] help: do not highlight rst indented sections as python (#717) Fixes https://github.com/davidhalter/jedi-vim/issues/716. --- autoload/jedi.vim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index e03f8c6..4fa493f 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -383,15 +383,6 @@ function! jedi#show_documentation() abort " quit comands nnoremap q ZQ execute 'nnoremap '.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 " ------------------------------------------------------------------------