Skip to content

Commit ff3565b

Browse files
committed
Merge pull request #993 from mgreter/bugfix/issue_143
Fix function call normalizing
2 parents b287d31 + 38a91d4 commit ff3565b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eval.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ namespace Sass {
472472

473473
Expression* Eval::operator()(Function_Call* c)
474474
{
475-
string full_name(c->name() + "[f]");
475+
string name(Util::normalize_underscores(c->name()));
476+
string full_name(name + "[f]");
476477
Arguments* args = c->arguments();
477478
if (full_name != "if[f]") {
478479
args = static_cast<Arguments*>(args->perform(this));

parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ namespace Sass {
16121612
Function_Call* Parser::parse_function_call()
16131613
{
16141614
lex< identifier >();
1615-
string name(Util::normalize_underscores(lexed));
1615+
string name(lexed);
16161616
ParserState source_position_of_call = pstate;
16171617

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

0 commit comments

Comments
 (0)