forked from VimPlug/jedi
variables starting with 'class' and 'def' should not slow down the parser, changed the check to 'class ' and 'def '.
This commit is contained in:
@@ -221,7 +221,7 @@ class ParserNode(object):
|
||||
|
||||
class FastParser(use_metaclass(CachedFastParser)):
|
||||
|
||||
_keyword_re = re.compile('^[ \t]*(def|class|@|%s)' % '|'.join(FLOWS))
|
||||
_keyword_re = re.compile('^[ \t]*(def |class |@|%s)' % '|'.join(FLOWS))
|
||||
|
||||
def __init__(self, grammar, source, module_path=None):
|
||||
# set values like `pr.Module`.
|
||||
|
||||
Reference in New Issue
Block a user