changeset 94:414a78c16ce9

fixed paren bug in terminatorPattern resultsName
author catherine@dellzilla
date Wed, 24 Sep 2008 18:00:22 -0400
parents f54e3e842f21
children 199a08e3ae72
files cmd2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Wed Sep 24 05:44:08 2008 -0400
+++ b/cmd2.py	Wed Sep 24 18:00:22 2008 -0400
@@ -193,8 +193,8 @@
         result = "\n".join('%s: %s' % (sc[0], sc[1]) for sc in self.shortcuts.items())
         self.stdout.write("Single-key shortcuts for other commands:\n%s\n" % (result))
 
-    terminatorPattern = (pyparsing.Literal(';') ^ pyparsing.Literal('\n\n')) \
-                  ^ (pyparsing.Literal('\nEOF') + pyparsing.lineEnd) ('terminator')
+    terminatorPattern = ((pyparsing.Literal(';') ^ pyparsing.Literal('\n\n'))
+                  ^ (pyparsing.Literal('\nEOF') + pyparsing.lineEnd))('terminator')
     argSeparatorPattern = pyparsing.Word(pyparsing.printables)('command') \
                           + pyparsing.SkipTo(pyparsing.StringEnd())('args')
     filenamePattern = pyparsing.Word(pyparsing.alphanums + '#$-_~{},.!:\\/')