Regarding sass "alternative" syntax

5 views
Skip to first unread message

Evgeny

unread,
Jul 29, 2007, 4:03:51 PM7/29/07
to Haml
Is there an option to disable the alternative syntax?
I want to be consistent in my sass file .. and I happen to like the
regular syntax better, the one with the colon at attribute start.

Can I somehow force sass to report errors each time I make a mistake
and put it after the attribute name?


Regards,

evgeny

Hampton

unread,
Jul 29, 2007, 4:51:54 PM7/29/07
to ha...@googlegroups.com
You can't do this currently, but I think its a really good idea. I'd
love to see it implemented.

:colon_only => [:both, :after, :before]
:both being the default.

-h.

Nathan Weizenbaum

unread,
Aug 11, 2007, 7:14:16 PM8/11/07
to ha...@googlegroups.com
I've just implemented this. Since the difference isn't quite limited to
where the colon is, I've called the option :attribute_syntax. Possible
values are :alternate or :normal; any other value will result in both
being valid.

- Nathan

Evgeny

unread,
Aug 12, 2007, 1:43:44 PM8/12/07
to ha...@googlegroups.com
Thank you!
stable/trunk ?

Nathan Weizenbaum

unread,
Aug 12, 2007, 2:40:20 PM8/12/07
to ha...@googlegroups.com
Just trunk.
Reply all
Reply to author
Forward
0 new messages