From 71115c522c1d129fa69eb735b9c9bb4d13ab1cf5 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Thu, 15 Jun 2006 12:42:38 +0000 Subject: [PATCH] Requite the keyowrd 'val' in the extended attribute syntax git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@7857 5e8d7ff9-d8ef-0310-90f0-a4852d11357a --- src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 0c05b8c31..7342ddfd4 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1792,6 +1792,7 @@ trait Parsers requires SyntaxAnalyzer { */ def attribute(): Tree = { def nameValuePair(): Tree = { + accept(VAL); var pos = in.currentPos; val aname = atPos(pos) { Ident(ident()) } accept(EQUALS);