Skip to content

Python f-string syntax highlighting error #275

@ImAurDev

Description

@ImAurDev

In 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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions