We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd3401 commit cf7668eCopy full SHA for cf7668e
src/parser.rs
@@ -33,7 +33,7 @@ macro_rules! sequence {
33
macro_rules! read_num {
34
($parser:ident, $num:ident, $then:expr) => {
35
loop {
36
- let ch = next_byte!($parser);
+ let ch = next_byte!($parser || break);
37
match ch {
38
b'0' ... b'9' => {
39
let $num = ch - b'0';
@@ -358,13 +358,13 @@ impl<'a> Parser<'a> {
358
},
359
b'"' |
360
b'\\' |
361
- b'/' => ch,
+ b'/' => escaped,
362
b'b' => 0x8,
363
b'f' => 0xC,
364
b't' => b'\t',
365
b'r' => b'\r',
366
b'n' => b'\n',
367
- _ => return self.unexpected_character(ch)
+ _ => return self.unexpected_character(escaped)
368
};
369
buffer.push(escaped);
370
0 commit comments