Allman struct and enum field style

This commit is contained in:
2026-07-04 09:38:13 +02:00
parent 409301b3d6
commit 4f3966d8d8
6 changed files with 21 additions and 20 deletions
+1 -5
View File
@@ -289,12 +289,8 @@ enum_field = _{
| enum_named
}
enum_fields = _{
enum_field ~ ";"
}
enum_decl = {
visibility? ~ "enum" ~ identifier ~ generics_decl? ~ "{" ~ enum_fields? ~ "}"
visibility? ~ "enum" ~ identifier ~ generics_decl? ~ "{" ~ (enum_field ~ ";")* ~ "}"
}
// ======================================================