aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/parser.cxx')
-rw-r--r--build2/test/script/parser.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx
index 601cbd4..f067e84 100644
--- a/build2/test/script/parser.cxx
+++ b/build2/test/script/parser.cxx
@@ -197,7 +197,7 @@ namespace build2
// Make sure we don't have any pending positions to fill.
//
- auto check_pending = [p, this] (const location& l)
+ auto check_pending = [&p, this] (const location& l)
{
const char* what (nullptr);
@@ -448,7 +448,7 @@ namespace build2
case type::newline:
{
done = true;
- break;
+ continue;
}
default:
{
@@ -520,6 +520,8 @@ namespace build2
expire_mode ();
}
+ else
+ next (t, tt);
// Now that we have all the pieces, run the test.
//