Skip to content

Commit

Permalink
Fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Haoyi committed Nov 30, 2014
1 parent 2089882 commit a0c39cd
Show file tree
Hide file tree
Showing 2 changed files with 922 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/scalaParser/ScalaSyntax.scala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ScalaSyntax (val input: ParserInput)
def DoWhile = rule( `do` ~ Expr0(G) ~ opt(Semi) ~ `while` ~ '(' ~ Expr ~ ")" )
def Enumerators(G: Boolean) = {
def Generator = rule( Pattern1 ~ `<-` ~ Expr0(G) ~ opt(Guard(G)) )
def Enumerator = rule( Semis ~ Generator | Guard(G) | Semis ~ Pattern1 ~ `=` ~ Expr0(G) )
def Enumerator = rule( Semis ~ Generator | optional(Semis) ~ Guard(G) | Semis ~ Pattern1 ~ `=` ~ Expr0(G) )
rule( Generator ~ rep(Enumerator) ~ WL )
}
def For = {
Expand Down

0 comments on commit a0c39cd

Please sign in to comment.