From c5c85ddb962c09fa6fdbec3c37c67ae7c4c9707f Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Fri, 10 Nov 2017 18:38:51 -0800 Subject: [PATCH] Treat #warning like #warn --- src/dreammaker/preprocessor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dreammaker/preprocessor.rs b/src/dreammaker/preprocessor.rs index d3a54852..8a547087 100644 --- a/src/dreammaker/preprocessor.rs +++ b/src/dreammaker/preprocessor.rs @@ -419,7 +419,7 @@ impl Preprocessor { expect_token!(() = Token::Punct(Punctuation::Newline)); self.defines.remove(&define_name); // TODO: warn if none } - "warn" | "error" => { + "warning" | "warn" | "error" => { // TODO: report warnings as warnings rather than errors expect_token!((text) = Token::String(text)); return Err(DMError::new(self.last_input_loc, format!("#{} {}", ident, text)));