Skip to content

Commit

Permalink
Fix small source-map regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Apr 26, 2015
1 parent 8265b6b commit 7df70e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion debugger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
cerr << " (" << pstate_source_position(node) << ")";
cerr << " [name: " << block->name() << "] ";
cerr << " [type: " << (block->type() == Sass::Definition::Type::MIXIN ? "Mixin " : "Function ") << "] ";
cerr << " [signature: " << block->signature() << "] ";
// this seems to lead to segfaults some times?
// cerr << " [signature: " << block->signature() << "] ";
cerr << " [native: " << block->native_function() << "] ";
cerr << " " << block->tabs() << endl;
debug_ast(block->parameters(), ind + " params: ", env);
Expand Down
3 changes: 2 additions & 1 deletion parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1619,8 +1619,9 @@ namespace Sass {
{
lex< identifier >();
string name(lexed);
ParserState call_pos = pstate;
Arguments* args = parse_arguments(name == "url");
return new (ctx.mem) Function_Call(pstate, name, args);
return new (ctx.mem) Function_Call(call_pos, name, args);
}

Function_Call_Schema* Parser::parse_function_call_schema()
Expand Down

0 comments on commit 7df70e6

Please sign in to comment.