This commit is contained in:
Mark Canlas 2020-03-20 23:45:13 -04:00
parent c7205a8d95
commit 86d2821d57
4 changed files with 26 additions and 12 deletions

View File

@ -1,7 +1,8 @@
scalaVersion := "2.12.10"
initialCommands in console := "import com.htmlism._"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.0" % "test"
scalafmtOnCompile := true
lazy val root =
project
.in(file("."))
.settings(
initialCommands in console := "import com.htmlism._",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.1" % "test",
scalafmtOnCompile := true
)

View File

@ -0,0 +1,10 @@
import sbt.Keys._
import sbt._
object ProjectPlugin extends AutoPlugin {
override def trigger = allRequirements
override lazy val projectSettings = Seq(
scalaVersion := "2.13.1"
)
}

View File

@ -1,2 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.0")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.10")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.2")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.11")

View File

@ -92,7 +92,8 @@ object MatchOpcodes {
case Some((ints, mode)) =>
val hex = f"$fullInt%2X"
out.print(
s"<th class=${'"' + ints.theme + '"'} style=${'"' + "background-color: " + ints.color + '"'}>$ints $mode<br>$hex</th>")
s"<th class=${'"' + ints.theme + '"'} style=${'"' + "background-color: " + ints.color + '"'}>$ints $mode<br>$hex</th>"
)
case None =>
out.print(s"<td>UNDEF</td>")
@ -128,7 +129,8 @@ object MatchOpcodes {
case Some((ints, mode)) =>
val hex = f"$fullInt%2X"
out.print(
s"<th class=${'"' + ints.theme + '"'} style=${'"' + "background-color: " + ints.color + '"'}>$ints $mode<br>$hex</th>")
s"<th class=${'"' + ints.theme + '"'} style=${'"' + "background-color: " + ints.color + '"'}>$ints $mode<br>$hex</th>"
)
case None =>
out.print(s"<td>UNDEF</td>")
@ -183,7 +185,8 @@ object MatchOpcodes {
case Some((ints, mode)) =>
val hex = f"$fullInt%2X"
out.print(
s"<th class=${'"' + ints.theme + '"'} style=${'"' + "background-color: " + ints.color + '"'}>$ints $mode<br>$hex</th>")
s"<th class=${'"' + ints.theme + '"'} style=${'"' + "background-color: " + ints.color + '"'}>$ints $mode<br>$hex</th>"
)
case None =>
out.print(s"<td>UNDEF</td>")