summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/conf.pom5
-rw-r--r--src/lib.rs5
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/conf.pom b/examples/conf.pom
index fde2274..73ee3f1 100644
--- a/examples/conf.pom
+++ b/examples/conf.pom
@@ -1,8 +1,7 @@
-
-indent-using-spaces = yes
+indentation-type = tabs
show-line-numbers = yes
tab-size = 4
-font-size = 18
+font-size = "18"
[file-extensions]
C = .c
diff --git a/src/lib.rs b/src/lib.rs
index 40a2322..809453c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -559,7 +559,7 @@ impl Parser {
format!("{current_section}.{relative_key}")
};
value = value.trim_start_matches(['\t', ' ']);
- if value.starts_with(['`', '"', '\'']) {
+ if value.starts_with(['`', '"']) {
let (value, new_line_number) =
self.read_quoted_value(value, reader, &location)?;
items.push((
@@ -651,6 +651,9 @@ impl Configuration {
/// (So if there were keys `sheep.age`, `sheep.colour`, and `farmer-name`,
/// this would give an iterator yielding
/// `"farmer-name"` and `"sheep"` in some order.)
+ ///
+ /// The order of items returned is arbitrary and may change
+ /// in future versions without notice.
pub fn keys(&self) -> impl '_ + Iterator<Item = &str> {
let mut prev = None;
self.items.iter().filter_map(move |(key, _)| {