Add parsing negative numbers

pull/43/head
Alex Bethel 2021-08-30 15:03:29 -06:00
parent 6000de6100
commit 3342419242
1 changed files with 1 additions and 1 deletions

View File

@ -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