Allow TYPE_NAME or IDENTIFIER to follow struct/union
This commit is contained in:
1 parent
aa6ef6b8d6
commit
fa32c9bba6
1 file changed
+7
-2
@@ -354,9 +354,14 @@ type_specifier
|
|||||||
;
|
;
|
||||||
|
|
||||||
struct_or_union_specifier
|
struct_or_union_specifier
|
||||||
: struct_or_union IDENTIFIER LCURLY struct_declaration_list RCURLY
|
: struct_or_union identifier_or_type_name LCURLY struct_declaration_list RCURLY
|
||||||
| struct_or_union LCURLY struct_declaration_list RCURLY
|
| struct_or_union LCURLY struct_declaration_list RCURLY
|
||||||
| struct_or_union IDENTIFIER
|
| struct_or_union identifier_or_type_name
|
||||||
|
;
|
||||||
|
|
||||||
|
identifier_or_type_name
|
||||||
|
: IDENTIFIER
|
||||||
|
| TYPE_NAME
|
||||||
;
|
;
|
||||||
|
|
||||||
struct_or_union
|
struct_or_union
|
||||||
|
|||||||
Reference in new issue
Block a user