fix a grammar to allow multiple annotations on method parameter
[IRC.git] / Robust / src / Parse / java14.cup
index b6287157849b87641d55c6e1ef4f14e23e6dd72f..7e8f0d886e6d8ca1798d1aa56f5373a613747fd9 100644 (file)
@@ -1179,7 +1179,7 @@ formal_parameter ::=
                pn.addChild(name);
                RESULT=pn;
        :}
-       |       annotation:an type:type variable_declarator_id:name {:
+       |       annotations:an type:type variable_declarator_id:name {:
                ParseNode pn=new ParseNode("annotation_parameter",parser.lexer.line_num);
                pn.addChild(type);
                pn.addChild(name);