support negative int

This commit is contained in:
Mylloon 2022-12-13 22:45:43 +01:00
parent 32b3476451
commit a01c827935
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -5,7 +5,7 @@
}
let alpha = ['a'-'z' 'A'-'Z']
let num = ['0'-'9']
let num = '-'? ['0'-'9']
let bool = "true" | "false"
let ident = alpha (alpha | num | '-' | '_')*