Skip to content

Commit

Permalink
preprocessor: ignore pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Sep 27, 2023
1 parent fa17231 commit 840ccb8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/preprocessor/src/processor/directives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ impl Processor {
Self::expect_nothing_to_newline(stream)?;
Ok(())
}
("pragma", _) => {
// TODO: hemtt pragma
self.skip_to_after_newline(stream, None);
Ok(())
}
(_, true) => Err(Error::Code(Box::new(UnknownDirective {
token: Box::new(command),
}))),
Expand Down

0 comments on commit 840ccb8

Please sign in to comment.