Skip to content

error compiling valid calc expression #130

Open
@heyymarco

Description

@heyymarco

this css/scss syntax below is valid when compiled using css preprocessor like sass, but postcss-calc thinks it's wrong:

.btn {
    --test: calc(
        1
        * clamp(
            1 ,
            ((1 * 1) * 1) ,
            1
        )
    );
}
error:
JisonLexerError: Lexical error on line 4: Unrecognized text.

  Erroneous area:
1: 1
2:         * clamp(
3:             1 ,
4:             ((1 * 1) * 1) ,
^............................^
5:             1
6:         )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bad-parserpostcss-calc fails to parse the inputbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions