summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-06-15 12:42:38 +0000
committermihaylov <mihaylov@epfl.ch>2006-06-15 12:42:38 +0000
commitf451a2fc8de6a06cf7c42a2df811168253d2911a (patch)
tree394384441c993da519d6a4b821dc49bd62211f07 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parentab1b5de53f5dd0c22d7213b41b9f2515bc8f8bbf (diff)
downloadscala-f451a2fc8de6a06cf7c42a2df811168253d2911a.tar.gz
scala-f451a2fc8de6a06cf7c42a2df811168253d2911a.tar.bz2
scala-f451a2fc8de6a06cf7c42a2df811168253d2911a.zip
Requite the keyowrd 'val' in the extended attri...
Requite the keyowrd 'val' in the extended attribute syntax
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index c0eb751e06..5107db14ee 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);