From 019e2518a943f22c8d7ffee541ba90326613aeb4 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 8 Sep 2025 12:47:57 -0400 Subject: Match updates to spec --- examples/conf.pom | 5 ++--- src/lib.rs | 5 ++++- 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 { let mut prev = None; self.items.iter().filter_map(move |(key, _)| { -- cgit v1.2.3