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)?;