We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a896f01 commit 5b02764Copy full SHA for 5b02764
shared/src/main/scala/scala/util/parsing/combinator/lexical/Lexical.scala
@@ -35,7 +35,7 @@ abstract class Lexical extends Scanners with Tokens {
35
def digit = elem("digit", _.isDigit)
36
37
/** A character-parser that matches any character except the ones given in `cs` (and returns it).*/
38
- def chrExcept(cs: Char*) = elem("", ch => (cs forall (ch != _)))
+ def chrExcept(cs: Char*) = elem("", ch => !cs.contains(ch))
39
40
/** A character-parser that matches a white-space character (and returns it).*/
41
def whitespaceChar = elem("space char", ch => ch <= ' ' && ch != EofCh)
0 commit comments