diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-12-03 08:43:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-12-03 08:43:02 +0200 |
commit | 652f360fceeec60228b50e3d6a61b9e1b4fd23e1 (patch) | |
tree | f4bd2eed2a50403b0061bb6103149af5d13b9dd2 | |
parent | 5cea6c9498c2a9e116b4b7cbd92cd3257fdf1048 (diff) |
Diagnose separated variable/function name
-rw-r--r-- | build2/parser.cxx | 4 |
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); |