diff cmd2.py @ 94:414a78c16ce9

fixed paren bug in terminatorPattern resultsName
author catherine@dellzilla
date Wed, 24 Sep 2008 18:00:22 -0400
parents 88f2aa240af1
children 199a08e3ae72
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 + '#$-_~{},.!:\\/')