mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-01-14 03:31:08 +00:00
moderno
This commit is contained in:
parent
c7205a8d95
commit
86d2821d57
15
build.sbt
15
build.sbt
@ -1,7 +1,8 @@
|
|||||||
scalaVersion := "2.12.10"
|
lazy val root =
|
||||||
|
project
|
||||||
initialCommands in console := "import com.htmlism._"
|
.in(file("."))
|
||||||
|
.settings(
|
||||||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.0" % "test"
|
initialCommands in console := "import com.htmlism._",
|
||||||
|
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.1" % "test",
|
||||||
scalafmtOnCompile := true
|
scalafmtOnCompile := true
|
||||||
|
)
|
||||||
|
10
project/ProjectPlugin.scala
Normal file
10
project/ProjectPlugin.scala
Normal 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"
|
||||||
|
)
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.0")
|
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.2")
|
||||||
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.10")
|
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.11")
|
||||||
|
@ -92,7 +92,8 @@ object MatchOpcodes {
|
|||||||
case Some((ints, mode)) =>
|
case Some((ints, mode)) =>
|
||||||
val hex = f"$fullInt%2X"
|
val hex = f"$fullInt%2X"
|
||||||
out.print(
|
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 =>
|
case None =>
|
||||||
out.print(s"<td>UNDEF</td>")
|
out.print(s"<td>UNDEF</td>")
|
||||||
@ -128,7 +129,8 @@ object MatchOpcodes {
|
|||||||
case Some((ints, mode)) =>
|
case Some((ints, mode)) =>
|
||||||
val hex = f"$fullInt%2X"
|
val hex = f"$fullInt%2X"
|
||||||
out.print(
|
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 =>
|
case None =>
|
||||||
out.print(s"<td>UNDEF</td>")
|
out.print(s"<td>UNDEF</td>")
|
||||||
@ -183,7 +185,8 @@ object MatchOpcodes {
|
|||||||
case Some((ints, mode)) =>
|
case Some((ints, mode)) =>
|
||||||
val hex = f"$fullInt%2X"
|
val hex = f"$fullInt%2X"
|
||||||
out.print(
|
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 =>
|
case None =>
|
||||||
out.print(s"<td>UNDEF</td>")
|
out.print(s"<td>UNDEF</td>")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user