Skip to content

Code formatting breaks when encountering a "\" character #2035

Open
@tomrav

Description

@tomrav

Actual Behavior

This happens primarily with a \ inside any rule, causing a weird duplication, over and over.

Before formatting:

.root {
    color: red;\
    background: gold;
}

After formatting:

.root {
    color: red;
    \
 background: gold;background
    background
}

After another formatting (and so it repeats):

.root {
    color: red;
    \
 background: gold;background
    backgroundbackground background
}

Expected Behavior

should not break source files.

Version

4.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected behavior or exceptionlanguage-serviceCompletions, highlights, definitions and more LSP capabilitiestoolingCLI, stylable-scripts boilerplate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions