| author | |
| committer | |
| log | e0ef61d46d0e8a7142cb8c6ac80a6ef39ac8374e |
| tree | dd1314375bb2f7257bdb39839392cd35081a569e |
| parent | fcca3cd1a3f5430dd9d813d80a0f0512c99e371f |
Noticed this grammar rule could be simplified using a repeating sequence
rather than recursion.2 files changed, 2 insertions(+), 10 deletions(-)
doc/langref.html.in+1-5| ... | ... | @@ -12373,11 +12373,7 @@ Root <- skip container_doc_comment? ContainerMembers eof |
| 12373 | 12373 | # *** Top level *** |
| 12374 | 12374 | ContainerMembers <- ContainerDeclarations (ContainerField COMMA)* (ContainerField / ContainerDeclarations) |
| 12375 | 12375 | |
| 12376 | ContainerDeclarations | |
| 12377 | <- TestDecl ContainerDeclarations | |
| 12378 | / ComptimeDecl ContainerDeclarations | |
| 12379 | / doc_comment? KEYWORD_pub? Decl ContainerDeclarations | |
| 12380 | / | |
| 12376 | ContainerDeclarations <- (TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl)* | |
| 12381 | 12377 | |
| 12382 | 12378 | TestDecl <- KEYWORD_test (STRINGLITERALSINGLE / IDENTIFIER)? Block |
| 12383 | 12379 |
lib/std/zig/Parse.zig+1-5| ... | ... | @@ -207,11 +207,7 @@ pub fn parseZon(p: *Parse) !void { |
| 207 | 207 | |
| 208 | 208 | /// ContainerMembers <- ContainerDeclarations (ContainerField COMMA)* (ContainerField / ContainerDeclarations) |
| 209 | 209 | /// |
| 210 | /// ContainerDeclarations | |
| 211 | /// <- TestDecl ContainerDeclarations | |
| 212 | /// / ComptimeDecl ContainerDeclarations | |
| 213 | /// / doc_comment? KEYWORD_pub? Decl ContainerDeclarations | |
| 214 | /// / | |
| 210 | /// ContainerDeclarations <- (TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl)* | |
| 215 | 211 | /// |
| 216 | 212 | /// ComptimeDecl <- KEYWORD_comptime Block |
| 217 | 213 | fn parseContainerMembers(p: *Parse) !Members { |