Python f-string syntax highlighting error · Issue #275 · MagicStack/MagicPython
Repository navigation
Python f-string syntax highlighting error #275
New issue
New issue
Open
Open
Python f-string syntax highlighting error #275
Description
@ImAurDev's profile ImAurDev opened on May 3, 2026In Python files, the syntax highlighting for f-strings is incorrect when the f-string's expression contains a newline.
print(f"{1
}foo") # new line in brace, highlighting incorrect
print(f"{1}bar")
Reacted by 你好陌生人,你是给,我是给