mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
py/lexer: Support raw f-strings.
Support for raw str/bytes already exists, and extending that to raw f-strings is easy. It also reduces code size because it eliminates an error message. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -75,3 +75,7 @@ print(
|
||||
f"cd---------------------------------"
|
||||
f"e{y}f---------------------------------"
|
||||
)
|
||||
|
||||
# Raw f-strings.
|
||||
print(rf"\r\a\w {'f'} \s\t\r\i\n\g")
|
||||
print(fr"\r{x}")
|
||||
|
||||
Reference in New Issue
Block a user