Skip to content

Commit

Permalink
Merge pull request #562 from scala-steward/update/scala-library-2.13.15
Browse files Browse the repository at this point in the history
Update scala-library to 2.13.15
  • Loading branch information
Philippus authored Oct 18, 2024
2 parents f84e2d0 + 9b5cc10 commit 6bbf7a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ThisBuild / startYear := Some(2004)
val commonSettings = Seq(
versionScheme := Some("early-semver"),
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
crossScalaVersions := Seq("2.13.14", "2.12.20", "3.3.4"),
crossScalaVersions := Seq("2.13.15", "2.12.20", "3.3.4"),
scalaVersion := crossScalaVersions.value.head,
)

Expand Down
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
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 6bbf7a8

Please sign in to comment.