aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test/script/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:12:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:12:43 +0200
commit882583f64e517ab232edb6bbb7433631c655c9da (patch)
tree3d0e8e16c20b1346cb34961c7f908b07427e9632 /libbuild2/test/script/parser.cxx
parentcf18da3ac461087ccffd31222dbe4fa2e6428d56 (diff)
Initial work on path_name use for `-` to stdin/stdout translation
Diffstat (limited to 'libbuild2/test/script/parser.cxx')
-rw-r--r--libbuild2/test/script/parser.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/test/script/parser.cxx b/libbuild2/test/script/parser.cxx
index bc06ce8..d5e437b 100644
--- a/libbuild2/test/script/parser.cxx
+++ b/libbuild2/test/script/parser.cxx
@@ -2302,9 +2302,9 @@ namespace build2
// cmd $args # cmd x="foo bar"
//
- path name ("<string>");
istringstream is (s);
- lexer lex (is, name,
+ path in ("<string>"); // @@ PATH_NAME TODO
+ lexer lex (is, in,
lexer_mode::command_expansion,
"\'\"\\");
@@ -2315,7 +2315,7 @@ namespace build2
// fail(t). Rather we should do fail(l).
//
token t (lex.next ());
- location l (build2::get_location (t, name));
+ location l (build2::get_location (t, in));
t.separated = true;
string w;
@@ -2324,7 +2324,7 @@ namespace build2
for (; t.type != type::eos; t = lex.next ())
{
type tt (t.type);
- l = build2::get_location (t, name);
+ l = build2::get_location (t, in);
// Re-lexing double-quotes will recognize $, ( inside as
// tokens so we have to reverse them back. Since we don't