mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-12 11:31:40 +08:00
Including pgen2 tests from the cpython repo.
This commit is contained in:
@@ -208,7 +208,7 @@ class Parser(object):
|
||||
return new_node
|
||||
|
||||
def convert_leaf(self, grammar, type, value, prefix, start_pos):
|
||||
#print('leaf', repr(value), token.tok_ntype)
|
||||
#print('leaf', repr(value), token.tok_name[type])
|
||||
if type == tokenize.NAME:
|
||||
if value in grammar.keywords:
|
||||
if value in ('def', 'class', 'lambda'):
|
||||
|
||||
Reference in New Issue
Block a user