aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-28 12:00:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-28 12:00:56 +0200
commitcfdc8446ccdb2d32919719c6c7fba1e7df59a8f5 (patch)
tree15d7b5078dc1ce0d54647068f2163ece57e66cdc /build
parented58957b9ff61004d4e00719504480147e629a8f (diff)
Fix separated { handling in names parser
'foo/ {a b}' should be equivalent to 'foo/ a b', not 'foo/a foo/b'.
Diffstat (limited to 'build')
-rw-r--r--build/parser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parser.cxx b/build/parser.cxx
index 8a79ae9..8973036 100644
--- a/build/parser.cxx
+++ b/build/parser.cxx
@@ -956,9 +956,9 @@ namespace build
string::size_type n (p != string::npos ? name.size () - 1 : 0);
// See if this is a type name, directory prefix, or both. That
- // is, it is followed by '{'.
+ // is, it is followed by an un-separated '{'.
//
- if (tt == type::lcbrace)
+ if (tt == type::lcbrace && !peeked ().separated)
{
next (t, tt);