Skip to content

Commit

Permalink
Repalce * with rep to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippus committed Nov 16, 2020
1 parent e7b140a commit ac5c437
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class RegexParsersTest {
@Test
def ifElseTest: Unit = {
object parser extends RegexParsers {
def top: Parser[List[Unit]] = ifelse*
def top: Parser[List[Unit]] = rep(ifelse)
def ifelse: Parser[Unit] = "IF" ~ condition ~ "THEN" ~ "1"~ "END" ^^ { _ => }
def condition: Parser[String] = "TRUE" | "FALSE"
}
Expand Down

0 comments on commit ac5c437

Please sign in to comment.