Fix bugs.

This commit is contained in:
Natalie Weizenbaum 2016-05-24 20:04:14 -07:00
parent 8f44bd8daa
commit b32a3b7005
2 changed files with 5 additions and 4 deletions

View File

@ -372,6 +372,7 @@ class Parser {
position: _scanner.position - 1);
}
_ignoreComments();
var operand = _singleExpression();
return new UnaryOperatorExpression(operator, operand,
span: _scanner.spanFrom(start));

View File

@ -3,7 +3,7 @@
// https://opensource.org/licenses/MIT.
import 'value/boolean.dart';
import 'value/string.dart';
import 'value/identifier.dart';
export 'value/boolean.dart';
export 'value/identifier.dart';
@ -14,11 +14,11 @@ abstract class Value {
const Value();
// TODO: call the proper stringifying method
Value unaryPlus() => new SassString("+$this");
Value unaryPlus() => new Identifier("+$this");
Value unaryMinus() => new SassString("-$this");
Value unaryMinus() => new Identifier("-$this");
Value unaryDivide() => new SassString("/$this");
Value unaryDivide() => new Identifier("/$this");
Value unaryNot() => Boolean.sassFalse;
}