diff --git a/ablescript/src/lexer.rs b/ablescript/src/lexer.rs index 1ac49d6..c622800 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -139,7 +139,7 @@ pub enum Token { String(String), /// Integer - #[regex(r"[0-9]+", get_int)] + #[regex(r"-?[0-9]+", get_int)] Integer(i32), /// A C-complaint identifier