mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
parent
c49e037e34
commit
75776ca062
@ -1,5 +1,7 @@
|
||||
## 1.0.0-beta.5
|
||||
|
||||
* Emit a warning when `&&` is used, since it's probably not what the user means.
|
||||
|
||||
* `round()` now returns the correct results for negative numbers that should
|
||||
round down.
|
||||
|
||||
|
@ -1947,6 +1947,15 @@ abstract class StylesheetParser extends Parser {
|
||||
SelectorExpression _selector() {
|
||||
var start = scanner.state;
|
||||
scanner.expectChar($ampersand);
|
||||
|
||||
if (scanner.scanChar($ampersand)) {
|
||||
warn('In Sass, "&&" means two copies of the parent selector. You '
|
||||
'probably want to use "and" instead.',
|
||||
scanner.spanFrom(start),
|
||||
color: color);
|
||||
scanner.position--;
|
||||
}
|
||||
|
||||
return new SelectorExpression(scanner.spanFrom(start));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user