# HG changeset patch # User Tuomo Valkonen # Date 1714766033 18000 # Node ID 87d632a18fc2579f63deb04fa17a33a800747fb2 # Parent 945a396340d20b1909a54489866ca4f61e3831dc Properly handle \% diff -r 945a396340d2 -r 87d632a18fc2 src/main.rs --- a/src/main.rs Fri Oct 20 14:59:15 2023 -0500 +++ b/src/main.rs Fri May 03 14:53:53 2024 -0500 @@ -148,7 +148,7 @@ impl ChainRule for CommandName { fn consume(mut self : Box, c : char, ctx : &Context) -> AnyChainRule { match c { - '}' | '{' | '\\' if self.command.len() <= 1 => { + '}' | '{' | '\\' | '%' if self.command.len() <= 1 => { self.command.push(c); self.handle(ctx) },