aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/parser.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 6c0f6ca..b04923d 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -4283,7 +4283,9 @@ namespace build2
name qual;
string name;
- if (tt == type::word)
+ if (t.separated)
+ ; // Leave the name empty to fail below.
+ else if (tt == type::word)
{
if (!pre_parse_)
name = move (t.value);