# flags: --minimum-version=3.14 x = t"foo" x = t'foo {{ {2 + 2}bar {{ baz' x = t"foo {f'abc'} bar" x = t"""foo {{ a foo {2 + 2}bar {{ baz x = f"foo {{ { 2 + 2 # comment }bar" {{ baz }} buzz {print("abc" + "def" )} abc""" t'{(abc:=10)}' t'''This is a really long string, but just make sure that you reflow tstrings { 2+2:d }''' t'This is a really long string, but just make sure that you reflow tstrings correctly {2+2:d}' t"{ 2 + 2 = }" t'{ X !r }' tr'\{{\}}' t''' WITH {f''' {1}_cte AS ()'''} ''' # output x = t"foo" x = t"foo {{ {2 + 2}bar {{ baz" x = t"foo {f'abc'} bar" x = t"""foo {{ a foo {2 + 2}bar {{ baz x = f"foo {{ { 2 + 2 # comment }bar" {{ baz }} buzz {print("abc" + "def" )} abc""" t"{(abc:=10)}" t"""This is a really long string, but just make sure that you reflow tstrings { 2+2:d }""" t"This is a really long string, but just make sure that you reflow tstrings correctly {2+2:d}" t"{ 2 + 2 = }" t"{ X !r }" rt"\{{\}}" t""" WITH {f''' {1}_cte AS ()'''} """