Add Scala 2.13 milestone support for inliner

This commit is contained in:
Sarah Gerweck 2017-10-29 19:05:08 -07:00
parent b9de235e55
commit 1b084d35e4
No known key found for this signature in database
GPG Key ID: AFCB37207DB3F226

View File

@ -28,7 +28,7 @@ object HelpersImpl {
} }
final lazy val forceOldInlineSyntax: Def.Initialize[Boolean] = { final lazy val forceOldInlineSyntax: Def.Initialize[Boolean] = {
val pat = """(?x)^ 2\.12\.[0-2] (?:[^\d].*)? $""".r val pat = """(?x)^ (?: 2\.12\.[0-2] (?:[^\d].*)? ) | (?: 2\.13\.0 .+ ) $""".r
Def.map(scalaVersion) { Def.map(scalaVersion) {
case pat() => true case pat() => true
case _ => false case _ => false