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

Emit a deprecation warning for the strict parsing of unary operators #619

Merged
merged 1 commit into from Sep 17, 2022

Conversation

stof
Copy link
Member

@stof stof commented Sep 17, 2022

This emits a deprecation warning for $a -$b and $a +$b, since these look like they could be unary operations but they're actually parsed as binary operations. Either explicitly write $a - $b or $a (-$b). See https://sass-lang.com/d/strict-unary for more details.

This deprecation is only implemented for the new parser ported from dart-sass, not for the legacy parser.

See sass/sass#1912 (implemented in dart-sass in sass/dart-sass#1800)

This emits a deprecation warning for `$a -$b` and `$a +$b`, since
these look like they could be unary operations but they're actually
parsed as binary operations. Either explicitly write `$a - $b` or
`$a (-$b)`. See https://sass-lang.com/d/strict-unary for more details.

This deprecation is only implemented for the new parser ported from
dart-sass, not for the legacy parser.
@stof stof added this to the 2.0 milestone Sep 17, 2022
@stof stof merged commit b8e9415 into scssphp:master Sep 17, 2022
@stof stof deleted the strict_unary branch September 17, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant