Commit fff0027c by Aaron Leung

Handling the "!important" directive.

parent 9961ae15
......@@ -7,4 +7,6 @@ div {
/* things that aren't logical keywords */
a: hey andalso ho and-come-on hoo;
b: hey orelse ho andalso hoo;
c: hoogoo ! important blah;
d: boogoo !important;
}
\ No newline at end of file
......@@ -603,6 +603,9 @@ namespace Sass {
if (peek< functional >())
{ return parse_function_call(); }
if (lex< important >())
{ return Node(Node::important, line_number, lexed); }
if (lex< identifier >())
{ return Node(Node::identifier, line_number, lexed); }
......
......@@ -238,6 +238,10 @@ namespace Sass {
else return "false";
} break;
case important: {
return "!important";
} break;
default: {
// return content.token.to_string();
if (!has_children && type != flags) return content.token.to_string();
......
......@@ -74,6 +74,7 @@ namespace Sass {
number,
numeric_color,
boolean,
important,
function_call,
mixin,
......
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