mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Comment on SI-8450
This commit is contained in:
@@ -61,6 +61,7 @@ object Escapes extends Properties("Escapes") {
|
|||||||
final case class EscapeAndNot(escape: EscapeSequence, notEscape: String) {
|
final case class EscapeAndNot(escape: EscapeSequence, notEscape: String) {
|
||||||
override def toString = s"EscapeAntNot(escape = [$escape], notEscape = [${notEscape.map(_.toInt)}])"
|
override def toString = s"EscapeAntNot(escape = [$escape], notEscape = [${notEscape.map(_.toInt)}])"
|
||||||
}
|
}
|
||||||
|
// 2.10.5 warns on "implicit numeric widening" but it looks like a bug: https://issues.scala-lang.org/browse/SI-8450
|
||||||
final case class EscapeSequence(content: String, terminator: Char) {
|
final case class EscapeSequence(content: String, terminator: Char) {
|
||||||
if (!content.isEmpty) {
|
if (!content.isEmpty) {
|
||||||
assert(content.tail.forall(c => !isEscapeTerminator(c)), "Escape sequence content contains an escape terminator: '" + content + "'")
|
assert(content.tail.forall(c => !isEscapeTerminator(c)), "Escape sequence content contains an escape terminator: '" + content + "'")
|
||||||
|
|||||||
Reference in New Issue
Block a user