From 22c3dc11a03bde74a162e998545481e08fb1b125 Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 15 May 2012 00:21:28 +0200 Subject: [PATCH] fixed bug with vim errors of tokenize --- parsetest.py | 2 +- plugin/jedi.vim | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/parsetest.py b/parsetest.py index 62ce38ef..d71248e6 100644 --- a/parsetest.py +++ b/parsetest.py @@ -2,7 +2,7 @@ # test comment -import datetime, os, sys +import datetime, os, sys, tokenize #from token import * from time import sleep from token import OP as OP_TEST, INDENT as INDENT_TEST diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 8b77c55e..348f5746 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -30,7 +30,9 @@ if 1: for c in completions: d = dict(word=c.complete, abbr=str(c), - menu=c.description, # stuff directly behind the completion + # stuff directly behind the completion + # TODO change it so that ' are allowed (not used now, because of repr) + menu=c.description.replace("'", '"'), info=c.help, # docstr and similar stuff kind=c.get_vim_type(), # completion type icase=1, # case insensitive