Skip to content

Commit 1bd6c52

Browse files
author
Leo Pourcelot
committed
Fixes an error in string parsing
1 parent f44962a commit 1bd6c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reader.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ pub fn try_read_string(input: &str) -> IResult<&str, Value> {
203203
named!(quotation<&str, &str>, preceded!(consume_clojure_whitespaces, tag!("\"")));
204204

205205
let (rest_input, _) = quotation(input)?;
206+
206207
named!(
207208
string_parser<&str, String>,
208209
map!(
@@ -211,7 +212,7 @@ pub fn try_read_string(input: &str) -> IResult<&str, Value> {
211212
)
212213
);
213214

214-
to_value_parser(string_parser)(input)
215+
to_value_parser(string_parser)(rest_input)
215216
}
216217

217218
// @TODO Perhaps generalize this, or even generalize it as a reader macro

0 commit comments

Comments
 (0)