Skip to content

Commit

Permalink
Merge pull request sass#993 from mgreter/bugfix/issue_143
Browse files Browse the repository at this point in the history
Fix function call normalizing
  • Loading branch information
mgreter committed Mar 28, 2015
2 parents b287d31 + 38a91d4 commit ff3565b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ namespace Sass {

Expression* Eval::operator()(Function_Call* c)
{
string full_name(c->name() + "[f]");
string name(Util::normalize_underscores(c->name()));
string full_name(name + "[f]");
Arguments* args = c->arguments();
if (full_name != "if[f]") {
args = static_cast<Arguments*>(args->perform(this));
Expand Down
2 changes: 1 addition & 1 deletion parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ namespace Sass {
Function_Call* Parser::parse_function_call()
{
lex< identifier >();
string name(Util::normalize_underscores(lexed));
string name(lexed);
ParserState source_position_of_call = pstate;

Function_Call* the_call = new (ctx.mem) Function_Call(source_position_of_call, name, parse_arguments());
Expand Down

0 comments on commit ff3565b

Please sign in to comment.