Skip to content

Commit e0e031c

Browse files
committed
Indent properly
1 parent e3e104f commit e0e031c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

shared/src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala

+8-8
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ private object grammars1 extends StandardTokenParsers with PackratParsers {
140140
*/
141141

142142

143-
val term: PackratParser[Int] = (term~("+"~>fact) ^^ {case x~y => x+y}
144-
|term~("-"~>fact) ^^ {case x~y => x-y}
145-
|fact)
146-
147-
val fact: PackratParser[Int] = (fact~("*"~>numericLit) ^^ {case x~y => x*y.toInt}
148-
|fact~("/"~>numericLit) ^^ {case x~y => x/y.toInt}
149-
|"("~>term<~")"
150-
|numericLit ^^ {_.toInt})
143+
val term: PackratParser[Int] = (term~("+"~>fact) ^^ {case x~y => x+y}
144+
|term~("-"~>fact) ^^ {case x~y => x-y}
145+
|fact)
146+
147+
val fact: PackratParser[Int] = (fact~("*"~>numericLit) ^^ {case x~y => x*y.toInt}
148+
|fact~("/"~>numericLit) ^^ {case x~y => x/y.toInt}
149+
|"("~>term<~")"
150+
|numericLit ^^ {_.toInt})
151151
}
152152

153153
private object grammars2 extends StandardTokenParsers with PackratParsers {

shared/src/test/scala/scala/util/parsing/combinator/t1100.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class T1100 {
1212
def p1: Parser[Char] = accept('a') | err("errors are propagated")
1313
}
1414

15-
val expected = """[1.4] error: errors are propagated
15+
val expected = """[1.4] error: errors are propagated
1616
1717
aaab
1818
^"""

0 commit comments

Comments
 (0)