|
|
@ -601,16 +601,15 @@ impl Parser {
|
|
|
|
let header = self.parse_row()?;
|
|
|
|
let header = self.parse_row()?;
|
|
|
|
self.seek_whitespace();
|
|
|
|
self.seek_whitespace();
|
|
|
|
let mut table = Table::new(header);
|
|
|
|
let mut table = Table::new(header);
|
|
|
|
if self.check_special_group(&[MINUS, PIPE])
|
|
|
|
let seek_start = self.index;
|
|
|
|
&& self.next_char() != None
|
|
|
|
while let Some(char) = self.next_char() {
|
|
|
|
&& self.check_special_group(&[MINUS, PIPE])
|
|
|
|
self.seek_inline_whitespace();
|
|
|
|
{
|
|
|
|
if char == '\n' || !self.check_special_group(&[MINUS, PIPE]) {
|
|
|
|
while let Some(char) = self.next_char() {
|
|
|
|
break;
|
|
|
|
if char == '\n' {
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
if !self.current_char.is_whitespace() || self.check_special_group(&[MINUS, PIPE]) {
|
|
|
|
|
|
|
|
self.revert_to(seek_start)?;
|
|
|
|
return Ok(table);
|
|
|
|
return Ok(table);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|