Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Dec 21, 2023
1 parent 4ffbc2c commit 372978e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions zio-parser/shared/src/main/scala/zio/parser/Regex.scala
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,13 @@ object Regex {
}

sealed trait Tabular extends Compiled { self =>
@nowarn def ~(that: Tabular): Tabular = {
@nowarn def ~(that: Tabular): Tabular =
(self, that) match {
case (Empty, lookup: LookupFunction) => lookup
case (lookup: LookupFunction, Empty) => lookup
case (Empty, lookup: LookupFunction) => lookup
case (lookup: LookupFunction, Empty) => lookup
case (left: LookupFunction, right: LookupFunction) => (left ~ right): LookupFunction
case _ => Empty
case _ => Empty
}
}

@nowarn def |(that: Tabular): Tabular =
(self, that) match {
Expand Down

0 comments on commit 372978e

Please sign in to comment.