aboutsummaryrefslogtreecommitdiffstats
path: root/eval.cc
diff options
context:
space:
mode:
Diffstat (limited to 'eval.cc')
-rw-r--r--eval.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.cc b/eval.cc
index ccbcf77..a6c1e79 100644
--- a/eval.cc
+++ b/eval.cc
@@ -164,6 +164,8 @@ void Evaluator::EvalCommand(const CommandAST* ast) {
}
last_rule_->cmds.push_back(ast->expr);
+ if (last_rule_->cmd_lineno == 0)
+ last_rule_->cmd_lineno = ast->loc().lineno;
LOG("Command: %s", ast->expr->DebugString().c_str());
}