Skip to content

Commit

Permalink
Fix bug in parsing # token
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdt84 authored and not-fl3 committed Jul 14, 2023
1 parent 7b6b2a8 commit 90294fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,14 @@ impl TomlParser {
while self.cur != '\n' && self.cur != '\0' {
self.next(i);
}

while self.cur == '\n'
|| self.cur == '\r'
|| self.cur == '\t'
|| self.cur == ' '
{
self.next(i);
}
}
'"' => {
let mut val = String::new();
Expand Down

0 comments on commit 90294fc

Please sign in to comment.