Skip to content

Commit

Permalink
Silence infer any
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippus committed Sep 29, 2024
1 parent dd324be commit 80940d4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package lexical

import token._
import input.CharArrayReader.EofCh
import scala.annotation.nowarn
import scala.collection.mutable

/** This component provides a standard lexical parser for a simple,
Expand Down Expand Up @@ -54,6 +55,7 @@ class StdLexical extends Lexical with StdTokens {
}

// see `whitespace in `Scanners`
@nowarn("cat=lint-infer-any")
def whitespace: Parser[Any] = rep[Any](
whitespaceChar
| '/' ~ '*' ~ comment
Expand Down

0 comments on commit 80940d4

Please sign in to comment.