Add parsing negative numbers
This commit is contained in:
parent
1d24082ee8
commit
a3b6ae326e
|
@ -139,7 +139,7 @@ pub enum Token {
|
||||||
String(String),
|
String(String),
|
||||||
|
|
||||||
/// Integer
|
/// Integer
|
||||||
#[regex(r"[0-9]+", get_int)]
|
#[regex(r"-?[0-9]+", get_int)]
|
||||||
Integer(i32),
|
Integer(i32),
|
||||||
|
|
||||||
/// A C-complaint identifier
|
/// A C-complaint identifier
|
||||||
|
|
Loading…
Reference in a new issue