Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Parsing failing on content with CSS reserved characters #70

@imiric

Description

@imiric

Hi,

I think this is related to #68.

I have the following CSS:

#menu a::before {
    content: "{";
    left: -6px;
}

#menu a::after {
    content: "}";
    right: -6px;
}

And get the following error:

Had a problem parsing the css at line: 7, column: 16
Failed to match sequence (SPACE? blocks:((COMMENT / IMPORT / NESTED_RULESET / RULESET){1, }) SPACE?) at line 7 char 16.
`- Don't know what to do with "\";\n    rig" at line 7 char 16.

So it seems the parser should be smart enough to skip over the characters defined in the content property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions