Skip to content

Commit

Permalink
Update package.scala
Browse files Browse the repository at this point in the history
.
  • Loading branch information
He-Pin authored Dec 8, 2024
1 parent 77a2fd0 commit 5edb560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastparse/src-3/fastparse/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ package object fastparse extends fastparse.SharedPackageDefs {
/**
* Used by for-comprehensions.
*/
inline def withFilter(f: T => Boolean)(using ctx: P[Any]): P[T] = filter(f)
inline def withFilter(f: T => Boolean)(using ctx: P[Any]): P[T] =
MacroInlineImpls.filterInline[T](parse0)(f)(ctx)

/** Either-or operator: tries to parse the left-hand-side, and if that
* fails it backtracks and tries to pass the right-hand-side. Can be
Expand Down

0 comments on commit 5edb560

Please sign in to comment.