| author | |
| committer | |
| log | 3a47bc715404752e7f4156177bfb7975cfa06aec |
| tree | 2dd97d3b455ec599dfd39fb33331565553d15900 |
| parent | 9e341a6da3a646dac7b1ed8d48c3ad6cc62418d0 |
`ContainerDeclarations` is an abstraction of `ContainerDeclaration*`.
Removing this abstraction allows the `ContainerMembers` rule to contain
more concrete information without having to look at the definition
of `ContainerDeclarations`.2 files changed, 4 insertions(+), 4 deletions(-)
doc/langref.html.in+2-2| ... | ... | @@ -12371,9 +12371,9 @@ fn readU32Be() u32 {} |
| 12371 | 12371 | Root <- skip container_doc_comment? ContainerMembers eof |
| 12372 | 12372 | |
| 12373 | 12373 | # *** Top level *** |
| 12374 | ContainerMembers <- ContainerDeclarations (ContainerField COMMA)* (ContainerField / ContainerDeclarations) | |
| 12374 | ContainerMembers <- ContainerDeclaration* (ContainerField COMMA)* (ContainerField / ContainerDeclaration*) | |
| 12375 | 12375 | |
| 12376 | ContainerDeclarations <- (TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl)* | |
| 12376 | ContainerDeclaration <- TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl | |
| 12377 | 12377 | |
| 12378 | 12378 | TestDecl <- KEYWORD_test (STRINGLITERALSINGLE / IDENTIFIER)? Block |
| 12379 | 12379 |
lib/std/zig/Parse.zig+2-2| ... | ... | @@ -205,9 +205,9 @@ pub fn parseZon(p: *Parse) !void { |
| 205 | 205 | }; |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | /// ContainerMembers <- ContainerDeclarations (ContainerField COMMA)* (ContainerField / ContainerDeclarations) | |
| 208 | /// ContainerMembers <- ContainerDeclaration* (ContainerField COMMA)* (ContainerField / ContainerDeclaration*) | |
| 209 | 209 | /// |
| 210 | /// ContainerDeclarations <- (TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl)* | |
| 210 | /// ContainerDeclaration <- TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl | |
| 211 | 211 | /// |
| 212 | 212 | /// ComptimeDecl <- KEYWORD_comptime Block |
| 213 | 213 | fn parseContainerMembers(p: *Parse) !Members { |