mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Add inline to enums #1819.
This commit is contained in:
@@ -514,6 +514,7 @@ identifier_list
|
||||
|
||||
enum_param_decl
|
||||
: type IDENT
|
||||
| INLINE type IDENT
|
||||
;
|
||||
|
||||
base_type
|
||||
@@ -1045,9 +1046,12 @@ struct_member_decl
|
||||
| INLINE type opt_attributes ';'
|
||||
;
|
||||
|
||||
|
||||
enum_spec
|
||||
: ':' base_type '(' enum_params ')'
|
||||
| ':' INLINE base_type '(' enum_params ')'
|
||||
| ':' base_type
|
||||
| ':' INLINE base_type
|
||||
| ':' '(' enum_params ')'
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user