added multiline support for repl by using checkSyntax().