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.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx
index f067e84..827aae7 100644
--- a/build2/test/script/parser.cxx
+++ b/build2/test/script/parser.cxx
@@ -62,7 +62,7 @@ namespace build2
names_type ns;
location nl (get_location (t));
lexer_->reset_quoted (t.quoted);
- names (t, tt, ns, true);
+ names (t, tt, ns, true, "variable or program name");
// See if this is a variable assignment or a test command.
//
@@ -457,7 +457,7 @@ namespace build2
ns.clear ();
lexer_->reset_quoted (t.quoted);
nl = get_location (t);
- names (t, tt, ns, true);
+ names (t, tt, ns, true, "command");
continue;
}
}
@@ -533,7 +533,7 @@ namespace build2
{
// The next chunk should be the exit status.
//
- names_type ns (names (t, tt, true));
+ names_type ns (names (t, tt, true, "exit status"));
//@@ TODO: validate to be single, simple, non-empty name that
// converts to integer (is exit status always non-negative).
@@ -561,7 +561,7 @@ namespace build2
// Expand the line.
//
- names_type ns (names (t, tt));
+ names_type ns (names (t, tt, false, "here-document line"));
// What shall we do if the expansion results in multiple names? For,
// example if the line contains just the variable expansion and it