Skip to content

Commit

Permalink
fix(parser): fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Jul 15, 2024
1 parent b03efb5 commit 4586cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/origlang-parser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl Parser {
let next = self.lexer.peek();
self.lexer.next();

if next.map(|x| &x.data) != Some(&Token::NewLine) && next.is_none() {
if next.map(|x| &x.data) != Some(&Token::NewLine) && next.is_some() {
Err(ParserError::new(ParserErrorInner::PartiallyParsed {
hint: vec![
PartiallyParseFixCandidate::InsertAfter {
Expand Down

0 comments on commit 4586cf2

Please sign in to comment.