From 6896967669feeb333ea7987ca42cce49bd727b68 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Tue, 9 Jul 2024 02:28:34 +0200 Subject: [PATCH] bump dependencies --- Cargo.toml | 10 +++++----- adana-script/src/parser.rs | 13 ++----------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e00e868..6611cb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,16 +26,16 @@ exclude = ["vscode/", "dist/", ".vscode", ".history", ".git", ".github"] anyhow = "1.0.86" bincode = "1.3.3" dirs = "5.0.1" # todo maybe replace by the home crate -log = "0.4.21" +log = "0.4.22" nom = "7.1.3" -libloading = "0.8.3" +libloading = "0.8.4" nu-ansi-term = "0.50.0" rustyline = "14.0.0" rustyline-derive = "0.10.0" -serde = { version = "1.0.203", features = ['serde_derive', 'rc'] } -serde_json = "1.0.117" +serde = { version = "1.0.204", features = ['serde_derive', 'rc'] } +serde_json = "1.0.120" slab_tree = "0.3.2" -strum = { version = "0.26.2", features = ["derive"] } +strum = { version = "0.26.3", features = ["derive"] } ctrlc = "3.4.4" env_logger = { version = "0.11.3", default-features = false } arboard = "3.4.0" diff --git a/adana-script/src/parser.rs b/adana-script/src/parser.rs index e742aea..3f329bd 100644 --- a/adana-script/src/parser.rs +++ b/adana-script/src/parser.rs @@ -40,20 +40,11 @@ fn recognize_hexadecimal(input: &str) -> Res<&str> { // <'a, E: ParseError<&'a str>> preceded( alt((tag("0x"), tag("0X"))), - recognize(many1(terminated( - one_of("0123456789abcdefABCDEF"), - many0(nom::character::complete::char('_')), - ))), + recognize(many1(one_of("0123456789abcdefABCDEF"))), )(input) } fn recognize_binary(input: &str) -> Res<&str> { - preceded( - alt((tag("0b"), tag("0B"))), - recognize(many1(terminated( - one_of("01"), - many0(nom::character::complete::char('_')), - ))), - )(input) + preceded(alt((tag("0b"), tag("0B"))), recognize(many1(one_of("01"))))(input) } fn parse_u8_binary(s: &str) -> Res {