Fix parsing paths with pipe symbol

See #568.
This commit is contained in:
Patrick Förster 2023-07-07 21:44:35 +02:00
parent d32de1548a
commit d97d4de1a3
3 changed files with 7 additions and 2 deletions

View file

@ -717,7 +717,7 @@ impl<'a> Parser<'a> {
| Token::RBrack
| Token::CommandName(CommandName::Generic) => self.path(),
Token::LCurly => self.curly_group_path(),
Token::Whitespace => self.eat(),
Token::Whitespace | Token::Pipe => self.eat(),
_ => break,
};
}
@ -741,7 +741,7 @@ impl<'a> Parser<'a> {
| Token::LParen
| Token::RParen
| Token::CommandName(CommandName::Generic) => self.path(),
Token::Whitespace | Token::LineBreak | Token::Comma => self.eat(),
Token::Whitespace | Token::LineBreak | Token::Comma | Token::Pipe => self.eat(),
Token::LCurly => self.curly_group_path(),
_ => break,
};

View file

@ -0,0 +1 @@
\input{|ipython scripts/test.ipynb}