]> Repositorios git - scryer-prolog.git/commitdiff
reorder print_constant comments for unsupported escape characters
authorMark Thom <[email protected]>
Tue, 29 May 2018 02:30:13 +0000 (20:30 -0600)
committerMark Thom <[email protected]>
Tue, 29 May 2018 02:30:13 +0000 (20:30 -0600)
src/prolog/heap_print.rs

index c8ca8a9dae581bb701b43ca06059e82e55a87068..dfff11cbe53d6f8d53e87810fed4447a748dd42c 100644 (file)
@@ -238,23 +238,23 @@ impl<'a, Formatter: HCValueFormatter, Outputter: HCValueOutputter>
         match c {
             Constant::Char(c) if c == '\n' =>
                 self.outputter.append("'\\n'"),
-            //            Constant::Char(c) if c == '\f' =>
-            //                self.outputter.append("\\f"),
             Constant::Char(c) if c == '\r' =>
                 self.outputter.append("'\\r'"),
             Constant::Char(c) if c == '\t' =>
                 self.outputter.append("'\\t'"),
+//          Constant::Char(c) if c == '\f' =>
+//              self.outputter.append("\\f"),            
+//          Constant::Char(c) if c == '\b' =>
+//              self.outputter.append("\\b"),
+//          Constant::Char(c) if c == '\\a' =>
+//              self.outputter.append("\a"),
+//          Constant::Char(c) if c == '\\v' =>
+//              self.outputter.append("\\v"),            
             Constant::Char(c) => {
                 self.outputter.append("'");
                 self.outputter.push_char(c);
                 self.outputter.append("'");
             },
-//            Constant::Char(c) if c == '\b' =>
-//                self.outputter.append("\\b"),
-//            Constant::Char(c) if c == '\\a' =>
-//                self.outputter.append("\a"),
-//            Constant::Char(c) if c == '\\v' =>
-//                self.outputter.append("\\v"),
             _ =>
                 self.outputter.append(format!("{}", c).as_str())
         }