Skip to content

Commit

Permalink
removed implicit to make it clearer in StringCharacter
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jan 16, 2024
1 parent 9063571 commit 362731d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package parsley.token.text

import parsley.Parsley, Parsley.{empty, some}
import parsley.character.{char, satisfyMap}
import parsley.syntax.character.charLift
import parsley.token.descriptions.text.EscapeDesc
import parsley.token.errors.ErrorConfig
import parsley.token.predicate.{Basic, CharPredicate, NotRequired, Unicode}
Expand All @@ -33,7 +32,7 @@ private [token] class EscapableCharacter(desc: EscapeDesc, escapes: Escape, spac
override def isRaw: Boolean = false
private lazy val escapeEmpty = err.labelStringEscapeEmpty(desc.emptyEscape.fold[Parsley[Char]](empty)(char))
private lazy val escapeGap = {
if (desc.gapsSupported) some(err.labelStringEscapeGap(space)) ~> err.labelStringEscapeGapEnd(desc.escBegin)
if (desc.gapsSupported) some(err.labelStringEscapeGap(space)) ~> err.labelStringEscapeGapEnd(char(desc.escBegin))
else empty
}
private lazy val stringEscape: Parsley[Option[Int]] =
Expand Down

0 comments on commit 362731d

Please sign in to comment.