mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-30 04:39:03 +01:00
Fix bugs.
This commit is contained in:
parent
8f44bd8daa
commit
b32a3b7005
@ -372,6 +372,7 @@ class Parser {
|
||||
position: _scanner.position - 1);
|
||||
}
|
||||
|
||||
_ignoreComments();
|
||||
var operand = _singleExpression();
|
||||
return new UnaryOperatorExpression(operator, operand,
|
||||
span: _scanner.spanFrom(start));
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user