diff options
Diffstat (limited to '054dilated_reagent.cc')
-rw-r--r-- | 054dilated_reagent.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/054dilated_reagent.cc b/054dilated_reagent.cc index 4a64a126..46f5f8ab 100644 --- a/054dilated_reagent.cc +++ b/054dilated_reagent.cc @@ -95,8 +95,9 @@ if (s.at(0) == '{') { :(code) string slurp_key(istream& in) { string result = next_word(in); - while (!result.empty() && *result.rbegin() == ':') { + while (!result.empty() && *result.rbegin() == ':') strip_last(result); - } + while (isspace(in.peek()) || in.peek() == ':') + in.get(); return result; } |