diff options
author | Martin Odersky <odersky@gmail.com> | 2006-05-21 13:56:49 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-05-21 13:56:49 +0000 |
commit | 06ab9264e8136bcf0da1bce6842e02371569049a (patch) | |
tree | eee6cb29bd7bf03b9e9f0e915b3c12fda1e83de6 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | 541b260c655666a67cd96c1909d13531cb365f48 (diff) | |
download | scala-06ab9264e8136bcf0da1bce6842e02371569049a.tar.gz scala-06ab9264e8136bcf0da1bce6842e02371569049a.tar.bz2 scala-06ab9264e8136bcf0da1bce6842e02371569049a.zip |
Fixed bug 604, 605, 607
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index cc9f077d0a..979f273529 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1419,12 +1419,12 @@ trait Parsers requires SyntaxAnalyzer { /** Def ::= val PatDef * | var VarDef * | def FunDef - * | type TypeDef + * | type [NewLine] TypeDef * | TmplDef * Dcl ::= val ValDcl * | var ValDcl * | def FunDcl - * | type TypeDcl + * | type [NewLine] TypeDcl */ def defOrDcl(mods: Modifiers): List[Tree] = { in.token match { @@ -1436,6 +1436,7 @@ trait Parsers requires SyntaxAnalyzer { List(funDefOrDcl(mods)); case TYPE => in.nextToken(); + newLineOpt(); List(typeDefOrDcl(mods)) case _ => List(tmplDef(mods)) |