mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 00:40:28 +07:00
To avoid possible confusion regarding its target element, the intention is now suggested only when the caret is inside a literal part of an f-string, not at any expression it contains. The conversion affects only the string on which the action was invoked, including ones in its inner expressions, but not enclosing f-strings. Hence, converting quotes for an f-string might also change quotes of its inner strings to preserve the syntactic correctness. Converting quotes for an inner strings, on the other hand, is possible only if it won't break their parent f-strings. GitOrigin-RevId: fb997ac8e26eea728897820f0d94bd84aa9e4491
2 lines
28 B
Python
2 lines
28 B
Python
s = f"<caret>foo{'bar'}baz"
|