From 651907f388e508a3020243424d4d6c2f4e398fa9 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Sat, 21 Sep 2024 19:37:53 +0200 Subject: [PATCH] chore: minor changes in comments --- parser/src/parser/mod.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/parser/src/parser/mod.rs b/parser/src/parser/mod.rs index 0f2b9843..bf6e1c5b 100644 --- a/parser/src/parser/mod.rs +++ b/parser/src/parser/mod.rs @@ -1558,7 +1558,7 @@ impl<'src> ParserImpl<'src> { /// Parses `of` expression. /// /// ```text - /// OF := QUANTIFIER ( + /// OF_EXPR := QUANTIFIER ( /// `of` ( `them` | PATTERN_IDENT_TUPLE ) ( `at` EXPR | `in` RANGE )? | /// BOOLEAN_EXPR_TUPLE /// ) @@ -1586,11 +1586,7 @@ impl<'src> ParserImpl<'src> { /// Parses `with` expression. /// /// ```text - /// WITH_EXPR := - /// `with` WITH_DECLS `:` - /// `(` - /// BOOLEAN_EXPR - /// `)` + /// WITH_EXPR := `with` WITH_DECLS `:` `(` BOOLEAN_EXPR `)` /// ``` fn with_expr(&mut self) -> &mut Self { self.begin(WITH_EXPR) @@ -1606,8 +1602,7 @@ impl<'src> ParserImpl<'src> { /// Parses `with` identifiers. /// /// ```text - /// WITH_DECLS := - /// WITH_DECL (`,` WITH_DECL)* + /// WITH_DECLS := WITH_DECL (`,` WITH_DECL)* /// fn with_declarations(&mut self) -> &mut Self { self.begin(WITH_DECLS) @@ -1621,8 +1616,7 @@ impl<'src> ParserImpl<'src> { /// Parses a `with` declaration. /// /// ```text - /// WITH_DECL := - /// IDENT `=` EXPR + /// WITH_DECL := IDENT `=` EXPR /// ``` fn with_declaration(&mut self) -> &mut Self { self.begin(WITH_DECL)