diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-02-16 23:10:49 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-02-16 23:10:49 +0000 |
commit | 71d0e5a22958dbac293dd0b6f5a1af1afee4ee79 (patch) | |
tree | 8d1823d725368f7b497c5bca7e6e92ba04e751f1 | |
parent | 01443e42ed009c7125fe5b5c07ec20ff5eadbd17 (diff) | |
download | scala-71d0e5a22958dbac293dd0b6f5a1af1afee4ee79.tar.gz scala-71d0e5a22958dbac293dd0b6f5a1af1afee4ee79.tar.bz2 scala-71d0e5a22958dbac293dd0b6f5a1af1afee4ee79.zip |
allow templateStatSeq to work when a statement is
terminated by EOF instead of a semicolon
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |