line_offset to offset in Parser, which is important for exact positioning
This commit is contained in:
1 parent
b2aa8b8024
commit
c3fe5d04dd
7 files changed
+20
-25
No files matched your search
+2
-2
@@ -190,8 +190,8 @@ class Script(object):
|
||||
return scopes
|
||||
|
||||
def _get_under_cursor_stmt(self, cursor_txt):
|
||||
offset = self.pos[0] - 1
|
||||
r = parsing.Parser(cursor_txt, no_docstr=True, line_offset=offset)
|
||||
offset = self.pos[0] - 1, self.pos[1]
|
||||
r = parsing.Parser(cursor_txt, no_docstr=True, offset=offset)
|
||||
try:
|
||||
stmt = r.module.statements[0]
|
||||
except IndexError:
|
||||
|
||||
Reference in new issue
Block a user