Skip to content

Parser fails when using Liquid in scss files #4

@ramya-rao-a

Description

@ramya-rao-a

Downstream issue in VS Code: microsoft/vscode#51867
See Using Liquid in Sass files

@sergeche

I tried to parse the below content by adding it to one of the test cases at https://github.com/emmetio/css-parser/blob/master/test/parse.js

.foo {
    font-size: 10px;
    color: {{ settings.was_price_color }};
}

When encountering the {{, it fails at https://github.com/emmetio/css-parser/blob/master/index.js#L75 as the tokens array is empty

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