# HG changeset patch # User catherine@dellzilla # Date 1226950338 18000 # Node ID c05afe3b550101af3d156c072f2f825c3b9b6b21 # Parent fc31b73cb04debe3cf78aeb599bab1ed5f5404c7 commenting finally ironed out diff -r fc31b73cb04d -r c05afe3b5501 .hgtags diff -r fc31b73cb04d -r c05afe3b5501 README.txt diff -r fc31b73cb04d -r c05afe3b5501 buildout.cfg diff -r fc31b73cb04d -r c05afe3b5501 cmd2.py --- a/cmd2.py Mon Nov 17 09:17:00 2008 -0500 +++ b/cmd2.py Mon Nov 17 14:32:18 2008 -0500 @@ -266,10 +266,11 @@ result['unterminated'] = result.before result['parseable'] = result.after else: - result['statement'] = result['unterminated'] = result.before # does not catch output marks + # does not catch output marks if command in self.multilineCommands: return result # don't bother with the rest, we're still collecting input result += parseSearchResults(self.punctuationPattern, s) + result['statement'] = result['unterminated'] = result.before result += parseSearchResults(self.pipePattern, result.parseable) result += parseSearchResults(self.redirectInPattern, result.parseable) result += parseSearchResults(self.redirectOutPattern, result.parseable) diff -r fc31b73cb04d -r c05afe3b5501 example/example.py diff -r fc31b73cb04d -r c05afe3b5501 example/exampleSession.txt diff -r fc31b73cb04d -r c05afe3b5501 setup.py