fixed many get_in_function_call related bugs

This commit is contained in:
David Halter
2012-09-16 23:09:21 +02:00
parent b69847610e
commit 6b8285bbec
4 changed files with 64 additions and 31 deletions

View File

@@ -1260,7 +1260,8 @@ class PyFuzzyParser(object):
if param and tok == ':':
# parse annotations
annotation, tok = self._parse_statement(added_breaks=breaks)
param.add_annotation(annotation)
if annotation:
param.add_annotation(annotation)
if param:
param.position_nr = pos