From ce1560808be0bcd1a7f26ddceb7045c68d9a3a53 Mon Sep 17 00:00:00 2001 From: dan <70999565+belovdv@users.noreply.github.com> Date: Tue, 23 Jun 2026 17:09:50 +0300 Subject: [PATCH] 3 [rust/lira/ir_ser_txt] relax syntax constraint --- rust/lira/src/ir_ser_txt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/lira/src/ir_ser_txt.rs b/rust/lira/src/ir_ser_txt.rs index caa074b..70b4477 100644 --- a/rust/lira/src/ir_ser_txt.rs +++ b/rust/lira/src/ir_ser_txt.rs @@ -42,7 +42,7 @@ impl std::fmt::Display for Statement { impl Statement { pub fn parse(s: &str) -> anyhow::Result { static RE: LazyLock = - LazyLock::new(|| Regex::new(r"^(\w+)\s+(.*?)\s*=\s*(\w+)\s+(\S+)\s*(.*)$").unwrap()); + LazyLock::new(|| Regex::new(r"^(\S+)\s+(.*?)\s*=\s*(\S+)\s+(\S+)\s*(.*)$").unwrap()); let err = || anyhow::anyhow!("failed to parse {s}"); let caps = RE.captures(s).ok_or_else(err)?;