From ac70b45c1c4dea22f8bb895cfdf1638e5eaf75bf Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sat, 18 Dec 2010 12:40:23 -0500 Subject: [PATCH] update completion example with newer combinators --- util/complete/src/test/scala/ParserTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/complete/src/test/scala/ParserTest.scala b/util/complete/src/test/scala/ParserTest.scala index 2cb907bc1..257171016 100644 --- a/util/complete/src/test/scala/ParserTest.scala +++ b/util/complete/src/test/scala/ParserTest.scala @@ -63,8 +63,8 @@ object ParserExample val notws = charClass(!_.isWhitespace)+ val name = token("test") - val options = (ws ~ token("quick" | "failed" | "new") )* - val include = (ws ~ token(examples(notws, Set("am", "is", "are", "was", "were") )) )* + val options = (ws ~> token("quick" | "failed" | "new") )* + val include = (ws ~> token(examples(notws.string, Set("am", "is", "are", "was", "were") )) )* val t = name ~ options ~ include