X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/6c3f8181854160f3db354f6f6ef3315ef05db8e7..2989dc1bf822b1b2a6bd250cea37bbf20c237764:/tests/data/long_strings__regression.py?ds=sidebyside diff --git a/tests/data/long_strings__regression.py b/tests/data/long_strings__regression.py index 9bfb1ee..7065b2f 100644 --- a/tests/data/long_strings__regression.py +++ b/tests/data/long_strings__regression.py @@ -371,6 +371,10 @@ RE_THREE_BACKSLASHES = { ), } +# We do NOT split on f-string expressions. +print(f"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam. {[f'{i}' for i in range(10)]}") +x = f"This is a long string which contains an f-expr that should not split {{{[i for i in range(5)]}}}." + # output @@ -830,3 +834,13 @@ RE_THREE_BACKSLASHES = { r"(?