Permalink
Browse files

need to explicitly trim whitespace in semicolon separated commands no…

…w. fixes #261.
  • Loading branch information...
1 parent 6109846 commit c50fb19c7c4a984facd3056f07137ecf61e091f1 @harrah harrah committed Nov 9, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 main/Main.scala
  2. +2 −1 sbt/src/sbt-test/actions/join/test
View
@@ -261,7 +261,7 @@ object BuiltinCommands
}
def multiParser(s: State): Parser[Seq[String]] =
- ( token(';' ~> OptSpace) flatMap { _ => matched(s.combinedParser | token(charClass(_ != ';').+, hide= const(true))) <~ token(OptSpace) } ).+
+ ( token(';' ~> OptSpace) flatMap { _ => matched(s.combinedParser | token(charClass(_ != ';').+, hide= const(true))) <~ token(OptSpace) } map (_.trim) ).+
def multiApplied(s: State) =
Command.applyEffect( multiParser(s) )( _ ::: s )
@@ -1 +1,2 @@
-> compile
+# the ; clean ; part is to test that semicolon-separated commands work with spaces
+> ; clean ; compile

0 comments on commit c50fb19

Please sign in to comment.