# HG changeset patch # User catherine@dellzilla # Date 1227216935 18000 # Node ID cc569f68a47810e5d983da0fefae702c5b377dc0 # Parent 17fa16ca832995370353e0785d79fcd5bdf4e478 all but ignore seems to work diff -r 17fa16ca8329 -r cc569f68a478 ignoreBug.py --- a/ignoreBug.py Thu Nov 20 16:34:17 2008 -0500 +++ b/ignoreBug.py Thu Nov 20 16:35:35 2008 -0500 @@ -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