Add inline to enums #1819.

This commit is contained in:
Christoffer Lerno
2025-02-03 22:51:44 +01:00
parent 70a849cbb5
commit 9d2f4e72c2
8 changed files with 156 additions and 39 deletions

View File

@@ -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 ')'
;