forked from VimPlug/jedi
skip newline at end of code
This commit is contained in:
@@ -269,6 +269,11 @@ class FastParser(use_metaclass(CachedFastParser)):
|
|||||||
is_decorator = False
|
is_decorator = False
|
||||||
|
|
||||||
current_lines.append(l)
|
current_lines.append(l)
|
||||||
|
if current_lines:
|
||||||
|
# skip newline at end of code,
|
||||||
|
# since it is not counted by Parser
|
||||||
|
if not current_lines[-1]:
|
||||||
|
del current_lines[-1]
|
||||||
if current_lines:
|
if current_lines:
|
||||||
yield gen_part()
|
yield gen_part()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user