Skip to content

Commit

Permalink
Merge pull request #773 from Hackerpilot/issue-13979
Browse files Browse the repository at this point in the history
Issue 13979 - ForeachType grammar does not allow 'ref' to appear after t...
  • Loading branch information
9rnsr committed Jan 18, 2015
2 parents d054391 + 3fb2218 commit adf4faf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions grammar.dd
Expand Up @@ -663,8 +663,16 @@ $(GNAME ForeachTypeList):
$(GLINK ForeachType) , $(I ForeachTypeList)

$(GNAME ForeachType):
$(D ref)$(OPT) $(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK Declarator)
$(D ref)$(OPT) $(GLINK TypeCtors)$(OPT) $(I Identifier)
$(GLINK ForeachTypeAttributes)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator)
$(GLINK ForeachTypeAttributes)$(OPT) $(I Identifier)

$(GNAME ForeachTypeAttributes)
$(GLINK ForeachTypeAttribute)
$(GLINK ForeachTypeAttribute) $(GLINK ForeachTypeAttributes)$(OPT)

$(GNAME ForeachTypeAttribute):
$(D ref)
$(GLINK2 declaration, TypeCtor)

$(GNAME ForeachAggregate):
$(EXPRESSION)
Expand Down
12 changes: 10 additions & 2 deletions statement.dd
Expand Up @@ -426,8 +426,16 @@ $(GNAME ForeachTypeList):
$(GLINK ForeachType) , $(I ForeachTypeList)

$(GNAME ForeachType):
$(D ref)$(OPT) $(GLINK2 declaration, TypeCtors)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator)
$(D ref)$(OPT) $(GLINK2 declaration, TypeCtors)$(OPT) $(I Identifier)
$(GLINK ForeachTypeAttributes)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator)
$(GLINK ForeachTypeAttributes)$(OPT) $(I Identifier)

$(GNAME ForeachTypeAttributes)
$(GLINK ForeachTypeAttribute)
$(GLINK ForeachTypeAttribute) $(GLINK ForeachTypeAttributes)$(OPT)

$(GNAME ForeachTypeAttribute):
$(D ref)
$(GLINK2 declaration, TypeCtor)

$(GNAME ForeachAggregate):
$(EXPRESSION)
Expand Down

0 comments on commit adf4faf

Please sign in to comment.