From 6abab8e4b3232630b4f50a310866dc3b425ff49c Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Tue, 19 Apr 2011 17:56:12 -0400 Subject: [PATCH] fix tab completion issue with test-only --- main/Defaults.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/Defaults.scala b/main/Defaults.scala index 1041049ee..069edd59c 100644 --- a/main/Defaults.scala +++ b/main/Defaults.scala @@ -379,10 +379,10 @@ object Defaults { state => import DefaultParsers._ def distinctParser(exs: Set[String]): Parser[Seq[String]] = - token(Space ~> (NotSpace - "--").examples(exs) ).flatMap(ex => distinctParser(exs - ex).map(ex +: _)) ?? Nil + (token(Space) ~> token((NotSpace - "--") examples exs) ).flatMap(ex => distinctParser(exs - ex).map(ex +: _)) ?? Nil val tests = savedLines(state, resolved, definedTests) val selectTests = distinctParser(tests.toSet) // todo: proper IDs - val options = (token(Space ~> "--") ~> spaceDelimited("