diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-28 12:00:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-28 12:00:56 +0200 |
commit | cfdc8446ccdb2d32919719c6c7fba1e7df59a8f5 (patch) | |
tree | 15d7b5078dc1ce0d54647068f2163ece57e66cdc | |
parent | ed58957b9ff61004d4e00719504480147e629a8f (diff) |
Fix separated { handling in names parser
'foo/ {a b}' should be equivalent to 'foo/ a b', not 'foo/a foo/b'.
-rw-r--r-- | build/parser.cxx | 4 |
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); |