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
This commit is contained in:
mihaylov 2006-06-15 12:42:38 +00:00
parent c6ca71d854
commit 71115c522c
1 changed files with 1 additions and 0 deletions

View File

@ -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);