mirror of https://github.com/sbt/sbt.git
defer validation of ;-separated commands until individual command is run. fixes #201
This commit is contained in:
parent
7702d30f40
commit
2e38c8484b
|
|
@ -7,7 +7,7 @@ package sbt
|
|||
import complete.{DefaultParsers, HistoryCommands, Parser}
|
||||
import HistoryCommands.{Start => HistoryPrefix}
|
||||
import compiler.EvalImports
|
||||
import Types.idFun
|
||||
import Types.{const,idFun}
|
||||
|
||||
import Command.applyEffect
|
||||
import Keys.{analysis,historyPath,globalLogging,shellPrompt}
|
||||
|
|
@ -224,7 +224,7 @@ object BuiltinCommands
|
|||
}
|
||||
|
||||
def multiParser(s: State): Parser[Seq[String]] =
|
||||
( token(';' ~> OptSpace) flatMap { _ => matched(s.combinedParser) <~ token(OptSpace) } ).+
|
||||
( token(';' ~> OptSpace) flatMap { _ => matched(s.combinedParser | token(charClass(_ != ';').+, hide= const(true))) <~ token(OptSpace) } ).+
|
||||
def multiApplied(s: State) =
|
||||
Command.applyEffect( multiParser(s) )( _ ::: s )
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue