It is supported for number literals... you're right that it should be an
operation, though. I'll look into it.
- Nathan
bobes wrote:
> Hi Hampton & Nathan
>
> Although it's not a big issue, it would be nice if Sass supported
> unary minus.
> Here's a small example (rev 367):
>
> sass:
> !a = 3
> !b = -!a
> test
> :aa= !a
> :bb= !b
>
> css:
> test {
> aa: 3;
> bb: -!a; }
>
> ---
>
> sass:
> !a = 3
> !b = - !a
> test
> :aa= !a
> :bb= !b
>
> css:
> Sass::SyntaxError: Constant arithmetic error: "- !a"
> on line 2 of D:/projects/photogenic/script/../config/../public/
> stylesheets/sass/layout.sass
>
> 1: !a = 3
> 2: !b = - !a
> 3: test
> 4: :aa= !a
> 5: :bb= !b
>
> ---
>
> sass:
> !a = 3
> !b = 0 - !a
> test
> :aa= !a
> :bb= !b
>
> css:
> test {
> aa: 3;
> bb: -3; }
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---