diff options
-rw-r--r-- | paludis/util/config_file.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/util/config_file.cc b/paludis/util/config_file.cc index 4dc676c06..c9c5848c7 100644 --- a/paludis/util/config_file.cc +++ b/paludis/util/config_file.cc @@ -391,8 +391,9 @@ namespace } else if ((! k.options()[kvcfo_ignore_single_quotes_inside_strings]) && parser.consume(simple_parser::exact("'"))) break; - else if ((k.options()[kvcfo_ignore_single_quotes_inside_strings]) && parser.lookahead(simple_parser::exact("'\n")) - && parser.consume(simple_parser::exact("'"))) + else if ((k.options()[kvcfo_ignore_single_quotes_inside_strings]) && + (parser.lookahead(simple_parser::exact("'\n")) || ! parser.lookahead(simple_parser::any_except(""))) && + parser.consume(simple_parser::exact("'"))) break; else if (parser.consume((simple_parser::any_except("") & *simple_parser::any_except("\\'")) >> s)) result.append(s); |