Properly handle \% draft default tip

Fri, 03 May 2024 14:53:53 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 03 May 2024 14:53:53 -0500
changeset 9
87d632a18fc2
parent 8
945a396340d2

Properly handle \%

src/main.rs file | annotate | diff | comparison | revisions
--- 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