Skip to content

Ensure content is not added to unterminated strings #189

@jgardn3r

Description

@jgardn3r

Currently, this:

A = 'a
+ b;

will be formatted like:

A = 'a + b;

While the code in this example is invalid, leaving the unterminated string alone as best as possible makes the most sense.
There are currently no guarantees for invalid code, but this seems to be a reasonable guarantee. The formatter strives to format valid code and provide a best-effort on invalid code minimising the damage where possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions