Add parsing negative numbers
This commit is contained in:
parent
2c36b2a5f7
commit
6f8a49b711
|
@ -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