mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 21:21:25 +08:00
fix strange issues of Python's std lib tokenizer, might be in there as well (not sure, cause I modified a lot). fixes #449
This commit is contained in:
1 parent
b2b4827ce3
commit
54dce0e3b2
2 files changed
+8
-2
No files matched your search
@@ -21,3 +21,9 @@ asdfasdf""" + "h"
|
||||
'''))
|
||||
tok = parsed.module.subscopes[0].statements[0]._token_list[2]
|
||||
self.assertEqual(tok.end_pos, (4, 11))
|
||||
|
||||
|
||||
def test_tokenizer_with_string_literal_backslash():
|
||||
import jedi
|
||||
c = jedi.Script("statement = u'foo\\\n'; statement").goto_definitions()
|
||||
assert c[0]._definition.obj == 'foo'
|
||||
Reference in new issue
Block a user