Fix an error recovery goto issue, fixes davidhalter/jedi-vim#962

This commit is contained in:
Dave Halter committed 2019-12-23 10:09:45 +01:00
1 parent d9383f1927
commit eca8278eef
7 files changed
+26 -4

No files matched your search

+7
View File
@@ -37,6 +37,7 @@ foo = 10;print(foo)
# classes
# -----------------
class C(object):
x = 3
def b(self):
#! ['b = math']
b
@@ -44,8 +45,14 @@ class C(object):
self.b
#! 14 ['def b']
self.b()
#! 14 ['def b']
self.b.
#! 11 ['param self']
self.b
#! ['x = 3']
self.x
#! 14 ['x = 3']
self.x.
return 1
#! ['def b']