From 71d0e5a22958dbac293dd0b6f5a1af1afee4ee79 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Thu, 16 Feb 2006 23:10:49 +0000 Subject: allow templateStatSeq to work when a statement is terminated by EOF instead of a semicolon --- src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 329b2604c7..467c6acf8b 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1743,7 +1743,7 @@ mixin class Parsers requires SyntaxAnalyzer { } else if (in.token != SEMI && in.token != NEWLINE) { syntaxError("illegal start of definition", true); } - if (in.token != RBRACE) acceptStatSep(); + if (in.token != RBRACE && in.token != EOF) acceptStatSep(); } stats.toList } -- cgit v1.2.3