Skip to content

Commit

Permalink
Added old charUtf16 just in case, removed junk from sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jun 24, 2023
1 parent e8b0e13 commit 5b8958d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.typesafe.tools.mima.core._
import com.github.sbt.git.SbtGit.git

val projectName = "parsley"
val Scala213 = "2.13.11"
Expand Down Expand Up @@ -96,10 +95,7 @@ lazy val parsley = crossProject(JSPlatform, JVMPlatform, NativePlatform)
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oI"),

scalacOptions ++= {
if (!isSnapshot.value && !(noReleaseFlagsScala3 && scalaBinaryVersion.value == "3")) {
println("enabling the release flags!")
releaseFlags
} else Seq.empty
if (!isSnapshot.value && !(noReleaseFlagsScala3 && scalaBinaryVersion.value == "3")) releaseFlags else Seq.empty
},

Compile / doc / scalacOptions ++= Seq("-groups", "-doc-root-content", s"${baseDirectory.value.getParentFile.getPath}/rootdoc.md"),
Expand Down
2 changes: 2 additions & 0 deletions parsley/shared/src/main/scala/parsley/character.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ object character {
if (Character.isBmpCodePoint(c)) char(c.toChar) #> c
else new Parsley(new singletons.SupplementaryCharTok(c, NotConfigured))
}
@deprecated("this is an old naming, which I believe was never exposed but to be safe it'll remain till 5.0.0", "4.3.0")
private [parsley] def charUtf16(c: Int): Parsley[Int] = codePoint(c)

/** This combinator tries to parse a single character from the input that matches the given predicate.
*
Expand Down

0 comments on commit 5b8958d

Please sign in to comment.