Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar/patterns.rs')
| -rw-r--r-- | crates/parser/src/grammar/patterns.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/parser/src/grammar/patterns.rs b/crates/parser/src/grammar/patterns.rs index fed5cca512..81e2051abb 100644 --- a/crates/parser/src/grammar/patterns.rs +++ b/crates/parser/src/grammar/patterns.rs @@ -17,7 +17,7 @@ pub(crate) fn pattern(p: &mut Parser) { pattern_r(p, PAT_RECOVERY_SET); } -/// Parses a pattern list separated by pipes `|` +/// Parses a pattern list separated by pipes `|`. pub(super) fn pattern_top(p: &mut Parser) { pattern_top_r(p, PAT_RECOVERY_SET) } @@ -27,14 +27,15 @@ pub(crate) fn pattern_single(p: &mut Parser) { } /// Parses a pattern list separated by pipes `|` -/// using the given `recovery_set` +/// using the given `recovery_set`. pub(super) fn pattern_top_r(p: &mut Parser, recovery_set: TokenSet) { p.eat(T![|]); pattern_r(p, recovery_set); } /// Parses a pattern list separated by pipes `|`, with no leading `|`,using the -/// given `recovery_set` +/// given `recovery_set`. + // test or_pattern // fn main() { // match () { |