Skip to content

Commit

Permalink
Make stoml cross compile with 2.10 also
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Nov 8, 2016
1 parent 140d92b commit 831484b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.sbt
Expand Up @@ -6,10 +6,13 @@ organization := "me.vican.jorge"

scalaVersion := "2.12.0"

crossScalaVersions := Seq("2.10.6", "2.11.7", "2.12.0")

libraryDependencies ++= Vector(
"com.lihaoyi" %% "fastparse" % "0.4.2",
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"org.scalatest" %% "scalatest" % "3.0.0" % "test"
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
)

homepage := Some(url("https://github.com/jvican/stoml"))
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/stoml/TomlParser.scala
Expand Up @@ -181,7 +181,7 @@ trait TomlParser extends ParserUtil with TomlSymbol {
WS ~ (string | boolean | double | integer | array | date) ~ WS
}

lazy val node: Parser[_ <: Node] = P(WS ~ (pair | table) ~ WS)
lazy val node: Parser[Node] = P(WS ~ (pair | table) ~ WS)
lazy val nodes: Parser[Seq[Node]] = P(node.rep(min = 1, sep = WS) ~ End)
}

Expand Down

0 comments on commit 831484b

Please sign in to comment.