From adccafb42a892df87e3ca45a8fcc01535b39b055 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 22 Dec 2016 10:32:06 +1100 Subject: tests/basics/lexer: Add a test for newline-escaping within a string. --- tests/basics/lexer.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/basics') diff --git a/tests/basics/lexer.py b/tests/basics/lexer.py index 70a9cce99..5f12afa70 100644 --- a/tests/basics/lexer.py +++ b/tests/basics/lexer.py @@ -19,6 +19,10 @@ print(eval("1\r")) print(eval("12\r")) print(eval("123\r")) +# backslash used to escape a line-break in a string +print('a\ +b') + # lots of indentation def a(x): if x: -- cgit v1.2.3