aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/config_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/config_file.cc')
-rw-r--r--paludis/util/config_file.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/util/config_file.cc b/paludis/util/config_file.cc
index 012311838..4dc676c06 100644
--- a/paludis/util/config_file.cc
+++ b/paludis/util/config_file.cc
@@ -389,7 +389,10 @@ namespace
parse_after_continuation(sr, parser, ! k.options()[kvcfo_disallow_comments]);
continue;
}
- else if (parser.consume(simple_parser::exact("'")))
+ 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("'")))
break;
else if (parser.consume((simple_parser::any_except("") & *simple_parser::any_except("\\'")) >> s))
result.append(s);