summaryrefslogtreecommitdiff
path: root/ignoreBug.py
diff options
context:
space:
mode:
authorcatherine <catherine@dellzilla>2008-11-20 16:35:35 -0500
committercatherine <catherine@dellzilla>2008-11-20 16:35:35 -0500
commit40a472df29a07d2147e124b47dfb13cf4973ca7b (patch)
tree30bdb8e9d0e79aab3289e571e58a3376b93804a7 /ignoreBug.py
parentd2c91503d321ed49bcf1416d10abd79cfb17c715 (diff)
downloadcmd2-hg-40a472df29a07d2147e124b47dfb13cf4973ca7b.tar.gz
all but ignore seems to work
Diffstat (limited to 'ignoreBug.py')
-rw-r--r--ignoreBug.py7
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