1
0
forked from VimPlug/jedi

fixed bug with vim errors of tokenize

This commit is contained in:
David Halter
2012-05-15 00:21:28 +02:00
parent 3a35eed346
commit 22c3dc11a0
2 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# test comment # test comment
import datetime, os, sys import datetime, os, sys, tokenize
#from token import * #from token import *
from time import sleep from time import sleep
from token import OP as OP_TEST, INDENT as INDENT_TEST from token import OP as OP_TEST, INDENT as INDENT_TEST

View File

@@ -30,7 +30,9 @@ if 1:
for c in completions: for c in completions:
d = dict(word=c.complete, d = dict(word=c.complete,
abbr=str(c), 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 info=c.help, # docstr and similar stuff
kind=c.get_vim_type(), # completion type kind=c.get_vim_type(), # completion type
icase=1, # case insensitive icase=1, # case insensitive