File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/library/scala/util/parsing/combinator Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ abstract class Lexical extends Scanners with Tokens {
32
32
def digit = elem(" digit" , _.isDigit)
33
33
34
34
/** A character-parser that matches any character except the ones given in `cs` (and returns it).*/
35
- def chrExcept (cs : Char * ) = elem(" " , ch => (cs forall (ch != )))
35
+ def chrExcept (cs : Char * ) = elem(" " , ch => (cs forall (ch != _ )))
36
36
37
37
/** A character-parser that matches a white-space character (and returns it).*/
38
38
def whitespaceChar = elem(" space char" , ch => ch <= ' ' && ch != EofCh )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package scala.util.parsing.combinator.testing
3
3
4
4
import scala .util .parsing .combinator ._
5
5
import scala .util .parsing .input ._
6
+ import language .postfixOps
6
7
7
8
case class Ident (s : String )
8
9
case class Number (n : Int )
You can’t perform that action at this time.
0 commit comments