src/main.rs

changeset 9
87d632a18fc2
parent 8
945a396340d2
--- 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<W : Write + 'static> ChainRule<W> for CommandName<W> {
     fn consume(mut self : Box<Self>, c : char, ctx : &Context) -> AnyChainRule<W> {
         match c {
-            '}' | '{' | '\\' if self.command.len() <= 1 => {
+            '}' | '{' | '\\' | '%' if self.command.len() <= 1 => {
                 self.command.push(c);
                 self.handle(ctx)
             },

mercurial