Commit e46d0334 by Aaron Leung

Allowing property names to begin with '*'. Apparently this is some kind of IE hack.

parent 3a0351f9
......@@ -33,4 +33,10 @@ div {
+ foo();
d: d;
+ bar;
}
div {
color: blah blah;
*color: blah bloo;
_color: foo boo;
}
\ No newline at end of file
......@@ -498,7 +498,7 @@ namespace Sass {
Node Document::parse_rule() {
Node rule(Node::rule, context.registry, line_number, 2);
if (!lex< identifier >()) syntax_error("invalid property name");
if (!lex< sequence< optional< exactly<'*'> >, identifier > >()) syntax_error("invalid property name");
rule << Node(Node::property, line_number, lexed);
if (!lex< exactly<':'> >()) syntax_error("property \"" + lexed.to_string() + "\" must be followed by a ':'");
rule << parse_list();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment