Mercurial > python-cmd2
comparison cmd2.py @ 142:c05afe3b5501
commenting finally ironed out
author | catherine@dellzilla |
---|---|
date | Mon, 17 Nov 2008 14:32:18 -0500 |
parents | fc31b73cb04d |
children | f0fa9965a985 |
comparison
equal
deleted
inserted
replaced
141:fc31b73cb04d | 142:c05afe3b5501 |
---|---|
264 if result.terminator: | 264 if result.terminator: |
265 result['statement'] = result.upToIncluding | 265 result['statement'] = result.upToIncluding |
266 result['unterminated'] = result.before | 266 result['unterminated'] = result.before |
267 result['parseable'] = result.after | 267 result['parseable'] = result.after |
268 else: | 268 else: |
269 result['statement'] = result['unterminated'] = result.before # does not catch output marks | 269 # does not catch output marks |
270 if command in self.multilineCommands: | 270 if command in self.multilineCommands: |
271 return result # don't bother with the rest, we're still collecting input | 271 return result # don't bother with the rest, we're still collecting input |
272 result += parseSearchResults(self.punctuationPattern, s) | 272 result += parseSearchResults(self.punctuationPattern, s) |
273 result['statement'] = result['unterminated'] = result.before | |
273 result += parseSearchResults(self.pipePattern, result.parseable) | 274 result += parseSearchResults(self.pipePattern, result.parseable) |
274 result += parseSearchResults(self.redirectInPattern, result.parseable) | 275 result += parseSearchResults(self.redirectInPattern, result.parseable) |
275 result += parseSearchResults(self.redirectOutPattern, result.parseable) | 276 result += parseSearchResults(self.redirectOutPattern, result.parseable) |
276 result += parseSearchResults(self.argSeparatorPattern, result.statement) | 277 result += parseSearchResults(self.argSeparatorPattern, result.statement) |
277 if self.caseInsensitive: | 278 if self.caseInsensitive: |