Skip to content

Commit 2d47fec

Browse files
Fix identifier parsing not breaking on the |> pipe operator (apache#2156)
1 parent 802c7d3 commit 2d47fec

File tree

2 files changed

+207
-222
lines changed

2 files changed

+207
-222
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12418,7 +12418,9 @@ impl<'a> Parser<'a> {
1241812418
Token::Word(w) => {
1241912419
idents.push(w.to_ident(token.span));
1242012420
}
12421-
Token::EOF | Token::Eq | Token::SemiColon => break,
12421+
Token::EOF | Token::Eq | Token::SemiColon | Token::VerticalBarRightAngleBracket => {
12422+
break
12423+
}
1242212424
_ => {}
1242312425
}
1242412426
self.advance_token();

0 commit comments

Comments
 (0)