Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compiling valid calc expression #130

Open
heyymarco opened this issue Jan 15, 2021 · 0 comments
Open

error compiling valid calc expression #130

heyymarco opened this issue Jan 15, 2021 · 0 comments
Labels
bad-parser postcss-calc fails to parse the input bug

Comments

@heyymarco
Copy link

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:         )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bad-parser postcss-calc fails to parse the input bug
Projects
None yet
Development

No branches or pull requests

2 participants