Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 327a951

Browse files
PhilippusSethTisue
authored andcommitted
Indent properly
1 parent 9c3b059 commit 327a951

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ private object grammars1 extends StandardTokenParsers with PackratParsers {
151151
*/
152152

153153

154-
val term: PackratParser[Int] = (term~("+"~>fact) ^^ {case x~y => x+y}
155-
|term~("-"~>fact) ^^ {case x~y => x-y}
156-
|fact)
157-
158-
val fact: PackratParser[Int] = (fact~("*"~>numericLit) ^^ {case x~y => x*y.toInt}
159-
|fact~("/"~>numericLit) ^^ {case x~y => x/y.toInt}
160-
|"("~>term<~")"
161-
|numericLit ^^ {_.toInt})
154+
val term: PackratParser[Int] = (term~("+"~>fact) ^^ {case x~y => x+y}
155+
|term~("-"~>fact) ^^ {case x~y => x-y}
156+
|fact)
157+
158+
val fact: PackratParser[Int] = (fact~("*"~>numericLit) ^^ {case x~y => x*y.toInt}
159+
|fact~("/"~>numericLit) ^^ {case x~y => x/y.toInt}
160+
|"("~>term<~")"
161+
|numericLit ^^ {_.toInt})
162162
}
163163

164164
private object grammars2 extends StandardTokenParsers with PackratParsers {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class T1100 {
2424
def p1: Parser[Char] = accept('a') | err("errors are propagated")
2525
}
2626

27-
val expected = """[1.4] error: errors are propagated
27+
val expected = """[1.4] error: errors are propagated
2828
2929
aaab
3030
^"""

0 commit comments

Comments
 (0)