Skip to content

Commit

Permalink
fix #1456
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Oct 31, 2015
1 parent 2e6f66a commit 16d36cd
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions Ceylon.g
Original file line number Diff line number Diff line change
Expand Up @@ -1848,11 +1848,10 @@ primary returns [Primary primary]
specifierParametersStart
: LPAREN
(
RPAREN (SPECIFY|COMPUTE|specifierParametersStart)
|
compilerAnnotations annotatedDeclarationStart
)
(
compilerAnnotations annotatedDeclarationStart
| RPAREN (SPECIFY | COMPUTE | specifierParametersStart)
)
;
qualifiedReference returns [Identifier identifier, MemberOperator operator,
Expand Down Expand Up @@ -2422,16 +2421,27 @@ spreadArgument returns [SpreadArgument positionalArgument]
anonParametersStart
: typeParameters?
LPAREN
(
RPAREN
| LIDENTIFIER (COMMA | RPAREN (COMPUTE|LBRACE|TYPE_CONSTRAINT|anonParametersStart))
| compilerAnnotations annotatedDeclarationStart
)
LPAREN
(
RPAREN
| compilerAnnotations annotatedDeclarationStart
| LIDENTIFIER (COMMA | RPAREN anonParametersStart2)
)
;
nonemptyParametersStart
: LPAREN compilerAnnotations annotatedDeclarationStart
anonParametersStart2
: LPAREN
(
RPAREN anonParametersStart2
| (LIDENTIFIER COMMA)*
(
compilerAnnotations annotatedDeclarationStart
| LIDENTIFIER RPAREN anonParametersStart2
)
)
| COMPUTE
| LBRACE
| TYPE_CONSTRAINT
;
functionOrExpression returns [Expression expression]
Expand Down

0 comments on commit 16d36cd

Please sign in to comment.