Properly parse #{$var} -#{$var} (#292)

Closes #290
This commit is contained in:
Natalie Weizenbaum 2018-04-12 17:41:21 -07:00 committed by GitHub
parent 26ca01cb92
commit 2e42c749a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,9 @@
* The command-line executable will now create the directory for the resulting * The command-line executable will now create the directory for the resulting
CSS if that directory doesn't exist. CSS if that directory doesn't exist.
* Properly parse `#{$var} -#{$var}` as two separate values in a list rather than
one value being subtracted from another.
## 1.1.1 ## 1.1.1
* Add a commit that was accidentally left out of 1.1.0. * Add a commit that was accidentally left out of 1.1.0.

View File

@ -1338,7 +1338,7 @@ abstract class StylesheetParser extends Parser {
(singleExpression == null || (singleExpression == null ||
isWhitespace(scanner.peekChar(-1)))) { isWhitespace(scanner.peekChar(-1)))) {
addSingleExpression(_number(), number: true); addSingleExpression(_number(), number: true);
} else if (lookingAtIdentifier()) { } else if (_lookingAtInterpolatedIdentifier()) {
addSingleExpression(_identifierLike()); addSingleExpression(_identifierLike());
} else if (singleExpression == null) { } else if (singleExpression == null) {
addSingleExpression(_unaryOperation()); addSingleExpression(_unaryOperation());