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)));