mirror of https://github.com/sbt/sbt.git
need to explicitly trim whitespace in semicolon separated commands now. fixes #261.
This commit is contained in:
parent
e1652a2867
commit
03cd1ec3ab
|
|
@ -262,7 +262,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue