You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/scala/scala/util/parsing/combinator/Parsers.scala
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,6 @@ trait Parsers {
161
161
/** A common super-class for unsuccessful parse results. */
162
162
sealedabstractclassNoSuccess(valmsg:String, overridevalnext:Input) extendsParseResult[Nothing] { // when we don't care about the difference between Failure and Error
163
163
valsuccessful=false
164
-
165
164
if (lastNoSuccessVar.value forall (v =>!(next.pos < v.next.pos)))
166
165
lastNoSuccessVar.value =Some(this)
167
166
@@ -438,7 +437,7 @@ trait Parsers {
438
437
*
439
438
* @return rep(this)
440
439
*/
441
-
def*=rep(this)
440
+
def*=rep1(this)
442
441
443
442
/** Returns a parser that repeatedly parses what this parser parses,
444
443
* interleaved with the `sep` parser. The `sep` parser specifies how
0 commit comments