Commit b5d85d13 by Aaron Leung

Allowing parameter-less mixins to be called without parentheses.

parent 93320422
...@@ -118,7 +118,7 @@ namespace Sass { ...@@ -118,7 +118,7 @@ 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(); args << parse_argument();
while (lex< exactly<','> >()) { while (lex< exactly<','> >()) {
...@@ -126,6 +126,7 @@ namespace Sass { ...@@ -126,6 +126,7 @@ namespace Sass {
} }
} }
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