Skip to content

Commit 39ddd53

Browse files
NIT
1 parent e2fdfbf commit 39ddd53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/build/src/main/scala/scala/build/preprocessing/TemporaryDirectivesParser.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ object TemporaryDirectivesParser {
2626
def quotedElem = P("\"" ~ charInQuote.rep ~ "\"").map(_.mkString)
2727
def elem = P(simpleElem | quotedElem)
2828

29-
P(tpe ~ ws ~ elem ~ (ws ~ elem).rep(0) ~ nl.? ~ sc.? ~ nl.?).map {
30-
case (tpe0, firstElem, otherElems) =>
31-
Directive(tpe0, firstElem +: otherElems)
29+
P(tpe ~ (ws ~ elem).rep(1) ~ nl.? ~ sc.? ~ nl.?).map {
30+
case (tpe0, elems) =>
31+
Directive(tpe0, elems)
3232
}
3333
}
3434

0 commit comments

Comments
 (0)