aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2025-08-21 10:33:48 +0200
committerIsaac Freund <mail@isaacfreund.com>2025-08-21 17:12:38 +0200
commit52de06c3b0720223a8ee2d337152df9e214388f8 (patch)
tree19b21ede48a8318ef50151dac0b6857f9b39b4b4 /lib/std
parent01b5023868a2881d69e2947c0fd7d9bcf51a1698 (diff)
downloadzig-52de06c3b0720223a8ee2d337152df9e214388f8.tar.gz
zig-52de06c3b0720223a8ee2d337152df9e214388f8.zip
langref: sync with zig-spec grammar.peg
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/zig/Parse.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/zig/Parse.zig b/lib/std/zig/Parse.zig
index 428442c825..47834681c1 100644
--- a/lib/std/zig/Parse.zig
+++ b/lib/std/zig/Parse.zig
@@ -188,7 +188,7 @@ fn failMsg(p: *Parse, msg: Ast.Error) error{ ParseError, OutOfMemory } {
return error.ParseError;
}
-/// Root <- skip container_doc_comment? ContainerMembers eof
+/// Root <- skip ContainerMembers eof
pub fn parseRoot(p: *Parse) !void {
// Root node must be index 0.
p.nodes.appendAssumeCapacity(.{
@@ -227,7 +227,7 @@ pub fn parseZon(p: *Parse) !void {
p.nodes.items(.data)[0] = .{ .node = node_index };
}
-/// ContainerMembers <- ContainerDeclaration* (ContainerField COMMA)* (ContainerField / ContainerDeclaration*)
+/// ContainerMembers <- container_doc_comment? ContainerDeclaration* (ContainerField COMMA)* (ContainerField / ContainerDeclaration*)
///
/// ContainerDeclaration <- TestDecl / ComptimeDecl / doc_comment? KEYWORD_pub? Decl
///
@@ -2423,7 +2423,7 @@ fn parseSuffixExpr(p: *Parse) !?Node.Index {
///
/// ContainerDecl <- (KEYWORD_extern / KEYWORD_packed)? ContainerDeclAuto
///
-/// ContainerDeclAuto <- ContainerDeclType LBRACE container_doc_comment? ContainerMembers RBRACE
+/// ContainerDeclAuto <- ContainerDeclType LBRACE ContainerMembers RBRACE
///
/// InitList
/// <- LBRACE FieldInit (COMMA FieldInit)* COMMA? RBRACE
@@ -3317,7 +3317,7 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index {
/// Caller must have already verified the first token.
///
-/// ContainerDeclAuto <- ContainerDeclType LBRACE container_doc_comment? ContainerMembers RBRACE
+/// ContainerDeclAuto <- ContainerDeclType LBRACE ContainerMembers RBRACE
///
/// ContainerDeclType
/// <- KEYWORD_struct (LPAREN Expr RPAREN)?