aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-12-03 08:43:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-12-03 08:43:02 +0200
commit652f360fceeec60228b50e3d6a61b9e1b4fd23e1 (patch)
treef4bd2eed2a50403b0061bb6103149af5d13b9dd2
parent5cea6c9498c2a9e116b4b7cbd92cd3257fdf1048 (diff)
Diagnose separated variable/function name
-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);