Commit b5d85d13 by Aaron Leung

Allowing parameter-less mixins to be called without parentheses.

parent 93320422
...@@ -118,14 +118,15 @@ namespace Sass { ...@@ -118,14 +118,15 @@ namespace Sass {
Node Document::parse_mixin_arguments() Node Document::parse_mixin_arguments()
{ {
Node args(line_number, Node::arguments); Node args(line_number, Node::arguments);
lex< exactly<'('> >(); if (lex< exactly<'('> >()) {
if (!peek< exactly<')'> >(position)) { if (!peek< exactly<')'> >(position)) {
args << parse_argument();
while (lex< exactly<','> >()) {
args << parse_argument(); args << parse_argument();
while (lex< exactly<','> >()) {
args << parse_argument();
}
} }
lex< exactly<')'> >();
} }
lex< exactly<')'> >();
return args; return args;
} }
......
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