Merge branch 'dev' of github.com:davidhalter/jedi into dev

This commit is contained in:
Dave Halter
2017-03-07 19:01:42 +01:00
14 changed files with 219 additions and 19 deletions
+2
View File
@@ -239,6 +239,8 @@ def generate_tokens(readline, use_exact_op_types=False):
if not line:
if contstr:
yield TokenInfo(ERRORTOKEN, contstr, contstr_start, prefix)
if contstr.endswith('\n'):
new_line = True
break
lnum += 1
+1 -1
View File
@@ -317,7 +317,7 @@ class Leaf(Base):
@utf8_repr
def __repr__(self):
return "<%s: %s>" % (type(self).__name__, self.value)
return "<%s: %s start=%s>" % (type(self).__name__, self.value, self.start_pos)
class LeafWithNewLines(Leaf):