mirror of https://github.com/sbt/sbt.git
make ; a hard delimiter for multi-commands. fixes #270
This commit is contained in:
parent
bca9ace1f7
commit
68027501f8
|
|
@ -268,7 +268,11 @@ object BuiltinCommands
|
|||
}
|
||||
|
||||
def multiParser(s: State): Parser[Seq[String]] =
|
||||
( token(';' ~> OptSpace) flatMap { _ => combinedLax(s, charClass(_ != ';').+) <~ token(OptSpace) } map (_.trim) ).+
|
||||
{
|
||||
val nonSemi = token(charClass(_ != ';').+, hide= const(true))
|
||||
( token(';' ~> OptSpace) flatMap { _ => matched((s.combinedParser&nonSemi) | nonSemi) <~ token(OptSpace) } map (_.trim) ).+
|
||||
}
|
||||
|
||||
def multiApplied(s: State) =
|
||||
Command.applyEffect( multiParser(s) )( _ ::: s )
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue