Skip to content

Commit

Permalink
Merge pull request #155 from anweiss/154-whitespace-bug-fix
Browse files Browse the repository at this point in the history
Fix whitespace bug in arrowmap keys
  • Loading branch information
anweiss authored Oct 25, 2022
2 parents a57824c + ef746fa commit 086fc0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2604,6 +2604,11 @@ impl<'a> Parser<'a> {

self.next_token()?;

#[cfg(feature = "ast-comments")]
let _ = self.collect_comments()?;
#[cfg(not(feature = "ast-comments"))]
self.advance_newline()?;

Some(t1)
} else {
if let Token::COLON = &self.cur_token {
Expand Down

0 comments on commit 086fc0e

Please sign in to comment.