forked from VimPlug/jedi
Reenable keyword completion.
This commit is contained in:
@@ -188,8 +188,7 @@ class Script(object):
|
|||||||
|
|
||||||
if not path and not isinstance(user_stmt, pr.Import):
|
if not path and not isinstance(user_stmt, pr.Import):
|
||||||
# add keywords
|
# add keywords
|
||||||
#completions += ((k, b) for k in keywords.keyword_names(all=True))
|
completions += ((k, b) for k in keywords.keyword_names(all=True))
|
||||||
pass
|
|
||||||
# TODO delete? We should search for valid parser
|
# TODO delete? We should search for valid parser
|
||||||
# transformations.
|
# transformations.
|
||||||
|
|
||||||
|
|||||||
@@ -1246,6 +1246,9 @@ class Param(Base):
|
|||||||
A helper class for functions. Read only.
|
A helper class for functions. Read only.
|
||||||
"""
|
"""
|
||||||
__slots__ = ('tfpdef', 'default', 'stars', 'parent')
|
__slots__ = ('tfpdef', 'default', 'stars', 'parent')
|
||||||
|
# Even though it's not not an official node, just give it one, because that
|
||||||
|
# makes checking more consistent.
|
||||||
|
type = 'param'
|
||||||
|
|
||||||
def __init__(self, tfpdef, parent, default=None, stars=0):
|
def __init__(self, tfpdef, parent, default=None, stars=0):
|
||||||
self.tfpdef = tfpdef # tfpdef: see grammar.txt
|
self.tfpdef = tfpdef # tfpdef: see grammar.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user