mirror of https://github.com/sbt/sbt.git
update completion example with newer combinators
This commit is contained in:
parent
8af2a0b7e0
commit
ac70b45c1c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue