Skip to content

Commit

Permalink
Added a void internally, as well as removed types on final val
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jan 16, 2024
1 parent 4e80320 commit 83d13a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ abstract class CharacterParsers private[text] {
}

private [text] object CharacterParsers {
final val MaxAscii: Int = 0x7f
final val MaxLatin1: Int = 0xff
final val MaxAscii = 0x7f
final val MaxLatin1 = 0xff

def letter(terminalLead: Char, allowsAllSpace: Boolean, isGraphic: CharPredicate): CharPredicate = isGraphic match {
case Unicode(g) if allowsAllSpace => Unicode(c => c != terminalLead.toInt && (g(c) || c.toChar.isWhitespace))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ private [token] class Escape(desc: EscapeDesc, err: ErrorConfig, generic: numeri
private val binaryEscape = fromDesc(radix = 2, desc.binaryEscape, generic.zeroAllowedBinary(NotConfigured))
private val numericEscape = decimalEscape <|> hexadecimalEscape <|> octalEscape <|> binaryEscape
val escapeCode = err.labelEscapeEnd(escMapped <|> numericEscape)
val escapeBegin = err.labelEscapeSequence(char(desc.escBegin))
val escapeBegin = err.labelEscapeSequence(char(desc.escBegin)).void
val escapeChar = escapeBegin *> escapeCode
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private [token] class OriginalEscape(desc: EscapeDesc, err: ErrorConfig, generic
private val binaryEscape = fromDesc(radix = 2, desc.binaryEscape, generic.zeroAllowedBinary(NotConfigured), bit)
private val numericEscape = decimalEscape <|> hexadecimalEscape <|> octalEscape <|> binaryEscape
val escapeCode = err.labelEscapeEnd(escMapped <|> numericEscape)
val escapeBegin = err.labelEscapeSequence(char(desc.escBegin))
val escapeBegin = err.labelEscapeSequence(char(desc.escBegin)).void
val escapeChar = escapeBegin *> escapeCode
}
// $COVERAGE-ON$

0 comments on commit 83d13a7

Please sign in to comment.