fix another position problem with the reverse tokenizer. includes tests.

This commit is contained in:
David Halter
2013-07-28 21:19:03 +02:00
parent 8598fe7327
commit 1ed94060df
2 changed files with 14 additions and 6 deletions

View File

@@ -425,6 +425,10 @@ class TestRegression(TestBase):
[1, 2, 3, 4, 5, 6, 7, 8, 9, x] # <-- here
""", '] # <-- here', ['int'])
# completion in whitespace
s = 'asdfxyxxxxxxxx sds\\\n hello'
assert self.goto_assignments(s, (2, 4)) == []
def test_backslash_continuation_and_bracket(self):
self.check_definition_by_marker(r"""
x = 0