From 840ccb8927c3aa2357b721a11661a66c1f06ceaa Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Wed, 27 Sep 2023 00:50:35 +0000 Subject: [PATCH] preprocessor: ignore pragma --- libs/preprocessor/src/processor/directives.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/preprocessor/src/processor/directives.rs b/libs/preprocessor/src/processor/directives.rs index a81178ab..cb5d4ff5 100644 --- a/libs/preprocessor/src/processor/directives.rs +++ b/libs/preprocessor/src/processor/directives.rs @@ -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), }))),