diff options
author | catherine <catherine@dellzilla> | 2008-11-20 16:35:35 -0500 |
---|---|---|
committer | catherine <catherine@dellzilla> | 2008-11-20 16:35:35 -0500 |
commit | 40a472df29a07d2147e124b47dfb13cf4973ca7b (patch) | |
tree | 30bdb8e9d0e79aab3289e571e58a3376b93804a7 /ignoreBug.py | |
parent | d2c91503d321ed49bcf1416d10abd79cfb17c715 (diff) | |
download | cmd2-hg-40a472df29a07d2147e124b47dfb13cf4973ca7b.tar.gz |
all but ignore seems to work
Diffstat (limited to 'ignoreBug.py')
-rw-r--r-- | ignoreBug.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ignoreBug.py b/ignoreBug.py index 4f50230..7696b86 100644 --- a/ignoreBug.py +++ b/ignoreBug.py @@ -1,5 +1,8 @@ import pyparsing statementParser = pyparsing.Combine(pyparsing.Word(pyparsing.printables)('command') + - pyparsing.SkipTo('|' + pyparsing.stringEnd)('args') + pyparsing.SkipTo('|' ^ pyparsing.stringEnd)('args') )('statement') -print statementParser.parseString('hello there /* you | fish */ box').dump()
\ No newline at end of file +print statementParser.parseString('hello there /* you | fish */ box').dump() +statementParser.ignore(pyparsing.cStyleComment) +print statementParser.parseString('hello there /* you | fish */ box').dump() +
\ No newline at end of file |