update completion example with newer combinators

This commit is contained in:
Mark Harrah 2010-12-18 12:40:23 -05:00
parent 8af2a0b7e0
commit ac70b45c1c
1 changed files with 2 additions and 2 deletions

View File

@ -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