-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from olafurpg/scala-2.13
Add support for Scala 2.13
- Loading branch information
Showing
24 changed files
with
188 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-M9") | ||
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "2.0.0-RC3-3") |
9 changes: 9 additions & 0 deletions
9
tests/unit/src/test/scala-2.11/tests/markdown/EvilplotPostModifier.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package tests.markdown | ||
|
||
import mdoc.PostModifier | ||
import mdoc.PostModifierContext | ||
|
||
class EvilplotPostModifier extends PostModifier { | ||
val name = "evilplot" | ||
def process(ctx: PostModifierContext): String = "" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/unit/src/test/scala-2.11/tests/markdown/JsModifier.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package mdoc.modifiers | ||
|
||
class JsModifier extends mdoc.PreModifier { | ||
val name: String = "js" | ||
def process(ctx: mdoc.PreModifierContext): String = "" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/unit/src/test/scala-2.13/tests/markdown/EvilplotPostModifier.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package tests.markdown | ||
|
||
import mdoc.PostModifier | ||
import mdoc.PostModifierContext | ||
|
||
class EvilplotPostModifier extends PostModifier { | ||
val name = "evilplot" | ||
def process(ctx: PostModifierContext): String = "" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/unit/src/test/scala-2.13/tests/markdown/JsModifier.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package mdoc.modifiers | ||
|
||
class JsModifier extends mdoc.PreModifier { | ||
val name: String = "js" | ||
def process(ctx: mdoc.PreModifierContext): String = "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/unit/src/test/scala/tests/markdown/BulletPostModifier.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package tests.markdown | ||
|
||
import mdoc.PostModifier | ||
import mdoc.PostModifierContext | ||
|
||
class BulletPostModifier extends PostModifier { | ||
val name = "bullet" | ||
override def process(ctx: PostModifierContext): String = { | ||
ctx.lastValue match { | ||
case n: Int => | ||
1.to(n).map(i => s"$i. Bullet").mkString("\n") | ||
case els => | ||
ctx.reporter.error(s"expected int runtime value. Obtained $els") | ||
"" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.