From cfdc8446ccdb2d32919719c6c7fba1e7df59a8f5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Nov 2015 12:00:56 +0200 Subject: Fix separated { handling in names parser 'foo/ {a b}' should be equivalent to 'foo/ a b', not 'foo/a foo/b'. --- build/parser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build') 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); -- cgit v1.1