Skip to content

Commit

Permalink
Add note to grammar about why UDT member rule deviates from VBA speci…
Browse files Browse the repository at this point in the history
…fication
  • Loading branch information
tommy9 committed Jan 27, 2024
1 parent 2d21124 commit 411d825
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rubberduck.Parsing/Grammar/VBAParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ subroutineName : identifier;

// 5.2.3.3 User Defined Type Declarations
// member list includes trailing endOfStatement
// To support actual VBA behaviour, had to change optionalArrayClause to allow a standalone arrayDim without the asTypeClause - see issue #6194
udtDeclaration : (visibility whiteSpace)? TYPE whiteSpace untypedIdentifier endOfStatement udtMemberList END_TYPE;
udtMemberList : (udtMember endOfStatement)+;
udtMember : reservedNameMemberDeclaration | untypedNameMemberDeclaration;
Expand Down

0 comments on commit 411d825

Please sign in to comment.