Fixed in stable and trunk. The exclamation mark is now parsed like an 
operator, so it'll be escaped with quotes and backslashes. In addition, 
!important is now a predefined constant that has value "!important", so 
this doesn't take any more people by surprise.

Thanks for the report.

- Nathan

nasmorn wrote:
> I want to set an attribute that gets a constant assigned to !important
> like so
> a
>  :background-color= !menu !important
>
> since that didnt work I tried
>
> :background-color= !menu "!important"
>
> but it still thinks !important is a sass constant
>
> it totally works if I hardcode the color like
>
> :background-color #fff !important
>
> I think this should really work like in the first example since it
> would be pretty horrible if people could redefine a reserved word in a
> language
>
> Apart from that great work though
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to