Allow hex numbers.

This commit is contained in:
chriseth
2023-04-13 00:55:36 +02:00
committed by Leo Alt
parent c7ccb6e8bb
commit 0091369ddc

View File

@@ -105,5 +105,6 @@ Symbol: String = {
Number: i64 = {
r"-?[0-9][0-9_]*" => i64::from_str(<>).unwrap().into(),
r"0x[0-9A-Fa-f][0-9A-Fa-f_]*" => i64::from_str_radix(&<>[2..].replace('_', ""), 16).unwrap().into(),
}