mirror of
https://github.com/davidhalter/parso.git
synced 2026-11-04 02:02:49 +08:00
Diff parser: Fix other BOM issues
This commit is contained in:
1 parent
e04552b14a
commit
f45941226f
2 files changed
+13
-1
No files matched your search
@@ -1587,6 +1587,12 @@ def test_byte_order_mark(differ):
|
||||
differ.parse(code3, parsers=2, expect_error_leaves=True)
|
||||
|
||||
|
||||
def test_byte_order_mark2(differ):
|
||||
code = '\ufeff# foo'
|
||||
differ.initialize(code)
|
||||
differ.parse(code + 'x', parsers=1)
|
||||
|
||||
|
||||
def test_backslash_insertion(differ):
|
||||
code1 = dedent('''
|
||||
def f():
|
||||
|
||||
Reference in new issue
Block a user