mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 11:34:51 +08:00
syn include already searches rtp
This commit is contained in:
3
jedi.vim
3
jedi.vim
@@ -141,8 +141,7 @@ PYTHONEOF
|
|||||||
|
|
||||||
" highlight python code within rst
|
" highlight python code within rst
|
||||||
unlet! b:current_syntax
|
unlet! b:current_syntax
|
||||||
let l:pythonpath = fnameescape(globpath(&rtp,"syntax/python.vim"))
|
syn include @rstPythonScript syntax/python.vim
|
||||||
exe "syn include @rstPythonScript ".l:pythonpath
|
|
||||||
" 4 spaces
|
" 4 spaces
|
||||||
syn region rstPythonRegion start=/^\v {4}/ end=/\v^( {4}|\n)@!/ contains=@rstPythonScript
|
syn region rstPythonRegion start=/^\v {4}/ end=/\v^( {4}|\n)@!/ contains=@rstPythonScript
|
||||||
" >>> python code
|
" >>> python code
|
||||||
|
|||||||
Reference in New Issue
Block a user