Skip to content

Commit

Permalink
Silence specific category
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippus committed Sep 29, 2024
1 parent 80940d4 commit 9b5cc10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private object grammars3 extends StandardTokenParsers with PackratParsers {
| success(Nil)
)

@annotation.nowarn // Some(xs) in pattern isn't exhaustive
@annotation.nowarn("cat=other-match-analysis")
def repMany1[T](p: => Parser[T], q: => Parser[T]): Parser[List[T]] =
p~opt(repMany(p,q))~q ^^ {case x~Some(xs)~y => x::xs:::(y::Nil)}

Expand Down

0 comments on commit 9b5cc10

Please sign in to comment.